iking-web-ui-pro 0.0.1

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.
Files changed (107) hide show
  1. package/dist/Demo/index.es.js +13 -0
  2. package/dist/Demo/index.umd.js +1 -0
  3. package/dist/Demo/package.json +7 -0
  4. package/dist/IKApprovalProcess/index.es.js +13026 -0
  5. package/dist/IKApprovalProcess/index.umd.js +32 -0
  6. package/dist/IKApprovalProcess/package.json +7 -0
  7. package/dist/IKApprovalProcess/style.css +7 -0
  8. package/dist/IKApprovalProcessDetail/index.es.js +630 -0
  9. package/dist/IKApprovalProcessDetail/index.umd.js +1 -0
  10. package/dist/IKApprovalProcessDetail/package.json +7 -0
  11. package/dist/IKApprovalProcessDetail/style.css +1 -0
  12. package/dist/IKCalendar/index.es.js +22495 -0
  13. package/dist/IKCalendar/index.umd.js +32 -0
  14. package/dist/IKCalendar/package.json +7 -0
  15. package/dist/IKCalendar/style.css +7 -0
  16. package/dist/IKDescription/index.es.js +105 -0
  17. package/dist/IKDescription/index.umd.js +1 -0
  18. package/dist/IKDescription/style.css +1 -0
  19. package/dist/IKDetailPreviewFiles/index.es.js +1599 -0
  20. package/dist/IKDetailPreviewFiles/index.umd.js +1 -0
  21. package/dist/IKDetailPreviewFiles/style.css +1 -0
  22. package/dist/IKExpandCollapse/index.es.js +1388 -0
  23. package/dist/IKExpandCollapse/index.umd.js +1 -0
  24. package/dist/IKExpandCollapse/style.css +1 -0
  25. package/dist/IKHorizontalStepBar/index.es.js +251 -0
  26. package/dist/IKHorizontalStepBar/index.umd.js +1 -0
  27. package/dist/IKHorizontalStepBar/package.json +7 -0
  28. package/dist/IKHorizontalStepBar/style.css +1 -0
  29. package/dist/IKPreviewFile/index.es.js +108 -0
  30. package/dist/IKPreviewFile/index.umd.js +1 -0
  31. package/dist/IKPreviewFile/style.css +1 -0
  32. package/dist/IKSearch/index.es.js +13406 -0
  33. package/dist/IKSearch/index.umd.js +57 -0
  34. package/dist/IKSearch/package.json +7 -0
  35. package/dist/IKSearch/style.css +7 -0
  36. package/dist/IKSearchHead/index.es.js +116 -0
  37. package/dist/IKSearchHead/index.umd.js +1 -0
  38. package/dist/IKSearchHead/package.json +7 -0
  39. package/dist/IKSearchHead/style.css +1 -0
  40. package/dist/IKVerticalStepBar/index.es.js +1481 -0
  41. package/dist/IKVerticalStepBar/index.umd.js +9 -0
  42. package/dist/IKVerticalStepBar/package.json +7 -0
  43. package/dist/IKVerticalStepBar/style.css +1 -0
  44. package/dist/IkBottomOperate/index.es.js +210 -0
  45. package/dist/IkBottomOperate/index.umd.js +1 -0
  46. package/dist/IkBottomOperate/style.css +1 -0
  47. package/dist/IkBtnContent/index.es.js +101 -0
  48. package/dist/IkBtnContent/index.umd.js +1 -0
  49. package/dist/IkBtnContent/style.css +1 -0
  50. package/dist/IkBtnSetting/index.es.js +12854 -0
  51. package/dist/IkBtnSetting/index.umd.js +32 -0
  52. package/dist/IkBtnSetting/style.css +7 -0
  53. package/dist/IkDragList/index.es.js +11071 -0
  54. package/dist/IkDragList/index.umd.js +32 -0
  55. package/dist/IkDragList/style.css +7 -0
  56. package/dist/IkFullCalendar/index.es.js +20327 -0
  57. package/dist/IkFullCalendar/index.umd.js +32 -0
  58. package/dist/IkFullCalendar/style.css +7 -0
  59. package/dist/IkIconPicker/index.es.js +13693 -0
  60. package/dist/IkIconPicker/index.umd.js +32 -0
  61. package/dist/IkIconPicker/style.css +7 -0
  62. package/dist/IkOnlyOffice/index.es.js +393 -0
  63. package/dist/IkOnlyOffice/index.umd.js +1 -0
  64. package/dist/IkOnlyOffice/style.css +0 -0
  65. package/dist/IkPageFull/index.es.js +15725 -0
  66. package/dist/IkPageFull/index.umd.js +48 -0
  67. package/dist/IkPageFull/style.css +7 -0
  68. package/dist/IkPageTabs/index.es.js +135 -0
  69. package/dist/IkPageTabs/index.umd.js +1 -0
  70. package/dist/IkPageTabs/style.css +1 -0
  71. package/dist/IkPicker/index.es.js +12629 -0
  72. package/dist/IkPicker/index.umd.js +32 -0
  73. package/dist/IkPicker/style.css +7 -0
  74. package/dist/IkPickerUser/index.es.js +12508 -0
  75. package/dist/IkPickerUser/index.umd.js +32 -0
  76. package/dist/IkPickerUser/style.css +7 -0
  77. package/dist/IkPrintConfig/index.es.js +62 -0
  78. package/dist/IkPrintConfig/index.umd.js +1 -0
  79. package/dist/IkPrintView/index.es.js +79 -0
  80. package/dist/IkPrintView/index.umd.js +1 -0
  81. package/dist/IkRadioGroup/index.es.js +75 -0
  82. package/dist/IkRadioGroup/index.umd.js +1 -0
  83. package/dist/IkRadioGroup/style.css +1 -0
  84. package/dist/IkSchedule/index.es.js +22228 -0
  85. package/dist/IkSchedule/index.umd.js +32 -0
  86. package/dist/IkSchedule/style.css +7 -0
  87. package/dist/IkStatu/index.es.js +119 -0
  88. package/dist/IkStatu/index.umd.js +1 -0
  89. package/dist/IkStatu/style.css +1 -0
  90. package/dist/IkSvgIcon/index.es.js +1343 -0
  91. package/dist/IkSvgIcon/index.umd.js +1 -0
  92. package/dist/IkSvgIcon/style.css +1 -0
  93. package/dist/IkTemplateOfficeConfig/index.es.js +805 -0
  94. package/dist/IkTemplateOfficeConfig/index.umd.js +1 -0
  95. package/dist/IkTemplateOfficeConfig/style.css +1 -0
  96. package/dist/IkTooltip/index.es.js +49 -0
  97. package/dist/IkTooltip/index.umd.js +1 -0
  98. package/dist/IkUploadFile/index.es.js +12098 -0
  99. package/dist/IkUploadFile/index.umd.js +32 -0
  100. package/dist/IkUploadFile/style.css +7 -0
  101. package/dist/IkUploadImage/index.es.js +11442 -0
  102. package/dist/IkUploadImage/index.umd.js +32 -0
  103. package/dist/IkUploadImage/style.css +7 -0
  104. package/dist/index.es.js +33843 -0
  105. package/dist/index.umd.js +81 -0
  106. package/dist/style.css +7 -0
  107. package/package.json +66 -0
@@ -0,0 +1,32 @@
1
+ (function(Re,s){typeof exports=="object"&&typeof module<"u"?s(exports,require("vue"),require("lodash-es"),require("element-plus"),require("vuedraggable"),require("axios")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es","element-plus","vuedraggable","axios"],s):(Re=typeof globalThis<"u"?globalThis:Re||self,s(Re.index={},Re.Vue,Re.n,Re["element-plus"],Re.vuedraggable,Re.axios))})(this,function(Re,s,Ct,xe,ki,Fi){"use strict";var Rf=Object.defineProperty;var Lf=(Re,s,Ct)=>s in Re?Rf(Re,s,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):Re[s]=Ct;var z0=(Re,s,Ct)=>(Lf(Re,typeof s!="symbol"?s+"":s,Ct),Ct);function Si(r){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(r){for(const t in r)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(r,t);Object.defineProperty(e,t,n.get?n:{enumerable:!0,get:()=>r[t]})}}return e.default=r,Object.freeze(e)}const Ni=Si(Ct),H0=(r,e)=>{if(r.install=t=>{for(const n of[r,...Object.values(e??{})])t.component(n.name,n)},e)for(const[t,n]of Object.entries(e))r[t]=n;return r},Qe=(r,e)=>{const t=r.__vccOpts||r;for(const[n,i]of e)t[n]=i;return t};var ce=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ti(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Ri(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var i=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,i.get?i:{enumerable:!0,get:function(){return r[n]}})}),t}var Li={exports:{}};function It(r){throw new Error('Could not dynamically require "'+r+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var mr={exports:{}};const Oi=Ri(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var q0;function pe(){return q0||(q0=1,function(r,e){(function(t,n){r.exports=n()})(ce,function(){var t=t||function(n,i){var o;if(typeof window<"u"&&window.crypto&&(o=window.crypto),typeof self<"u"&&self.crypto&&(o=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window<"u"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof ce<"u"&&ce.crypto&&(o=ce.crypto),!o&&typeof It=="function")try{o=Oi}catch{}var f=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},c=Object.create||function(){function B(){}return function(v){var b;return B.prototype=v,b=new B,B.prototype=null,b}}(),x={},a=x.lib={},h=a.Base=function(){return{extend:function(B){var v=c(this);return B&&v.mixIn(B),(!v.hasOwnProperty("init")||this.init===v.init)&&(v.init=function(){v.$super.init.apply(this,arguments)}),v.init.prototype=v,v.$super=this,v},create:function(){var B=this.extend();return B.init.apply(B,arguments),B},init:function(){},mixIn:function(B){for(var v in B)B.hasOwnProperty(v)&&(this[v]=B[v]);B.hasOwnProperty("toString")&&(this.toString=B.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),d=a.WordArray=h.extend({init:function(B,v){B=this.words=B||[],v!=i?this.sigBytes=v:this.sigBytes=B.length*4},toString:function(B){return(B||l).stringify(this)},concat:function(B){var v=this.words,b=B.words,E=this.sigBytes,A=B.sigBytes;if(this.clamp(),E%4)for(var _=0;_<A;_++){var S=b[_>>>2]>>>24-_%4*8&255;v[E+_>>>2]|=S<<24-(E+_)%4*8}else for(var $=0;$<A;$+=4)v[E+$>>>2]=b[$>>>2];return this.sigBytes+=A,this},clamp:function(){var B=this.words,v=this.sigBytes;B[v>>>2]&=4294967295<<32-v%4*8,B.length=n.ceil(v/4)},clone:function(){var B=h.clone.call(this);return B.words=this.words.slice(0),B},random:function(B){for(var v=[],b=0;b<B;b+=4)v.push(f());return new d.init(v,B)}}),u=x.enc={},l=u.Hex={stringify:function(B){for(var v=B.words,b=B.sigBytes,E=[],A=0;A<b;A++){var _=v[A>>>2]>>>24-A%4*8&255;E.push((_>>>4).toString(16)),E.push((_&15).toString(16))}return E.join("")},parse:function(B){for(var v=B.length,b=[],E=0;E<v;E+=2)b[E>>>3]|=parseInt(B.substr(E,2),16)<<24-E%8*4;return new d.init(b,v/2)}},m=u.Latin1={stringify:function(B){for(var v=B.words,b=B.sigBytes,E=[],A=0;A<b;A++){var _=v[A>>>2]>>>24-A%4*8&255;E.push(String.fromCharCode(_))}return E.join("")},parse:function(B){for(var v=B.length,b=[],E=0;E<v;E++)b[E>>>2]|=(B.charCodeAt(E)&255)<<24-E%4*8;return new d.init(b,v)}},p=u.Utf8={stringify:function(B){try{return decodeURIComponent(escape(m.stringify(B)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(B){return m.parse(unescape(encodeURIComponent(B)))}},y=a.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new d.init,this._nDataBytes=0},_append:function(B){typeof B=="string"&&(B=p.parse(B)),this._data.concat(B),this._nDataBytes+=B.sigBytes},_process:function(B){var v,b=this._data,E=b.words,A=b.sigBytes,_=this.blockSize,S=_*4,$=A/S;B?$=n.ceil($):$=n.max(($|0)-this._minBufferSize,0);var w=$*_,D=n.min(w*4,A);if(w){for(var O=0;O<w;O+=_)this._doProcessBlock(E,O);v=E.splice(0,w),b.sigBytes-=D}return new d.init(v,D)},clone:function(){var B=h.clone.call(this);return B._data=this._data.clone(),B},_minBufferSize:0});a.Hasher=y.extend({cfg:h.extend(),init:function(B){this.cfg=this.cfg.extend(B),this.reset()},reset:function(){y.reset.call(this),this._doReset()},update:function(B){return this._append(B),this._process(),this},finalize:function(B){B&&this._append(B);var v=this._doFinalize();return v},blockSize:16,_createHelper:function(B){return function(v,b){return new B.init(b).finalize(v)}},_createHmacHelper:function(B){return function(v,b){return new F.HMAC.init(B,b).finalize(v)}}});var F=x.algo={};return x}(Math);return t})}(mr)),mr.exports}var yr={exports:{}},U0;function Gt(){return U0||(U0=1,function(r,e){(function(t,n){r.exports=n(pe())})(ce,function(t){return function(n){var i=t,o=i.lib,f=o.Base,c=o.WordArray,x=i.x64={};x.Word=f.extend({init:function(a,h){this.high=a,this.low=h}}),x.WordArray=f.extend({init:function(a,h){a=this.words=a||[],h!=n?this.sigBytes=h:this.sigBytes=a.length*8},toX32:function(){for(var a=this.words,h=a.length,d=[],u=0;u<h;u++){var l=a[u];d.push(l.high),d.push(l.low)}return c.create(d,this.sigBytes)},clone:function(){for(var a=f.clone.call(this),h=a.words=this.words.slice(0),d=h.length,u=0;u<d;u++)h[u]=h[u].clone();return a}})}(),t})}(yr)),yr.exports}var Er={exports:{}},W0;function Ii(){return W0||(W0=1,function(r,e){(function(t,n){r.exports=n(pe())})(ce,function(t){return function(){if(typeof ArrayBuffer=="function"){var n=t,i=n.lib,o=i.WordArray,f=o.init,c=o.init=function(x){if(x instanceof ArrayBuffer&&(x=new Uint8Array(x)),(x instanceof Int8Array||typeof Uint8ClampedArray<"u"&&x instanceof Uint8ClampedArray||x instanceof Int16Array||x instanceof Uint16Array||x instanceof Int32Array||x instanceof Uint32Array||x instanceof Float32Array||x instanceof Float64Array)&&(x=new Uint8Array(x.buffer,x.byteOffset,x.byteLength)),x instanceof Uint8Array){for(var a=x.byteLength,h=[],d=0;d<a;d++)h[d>>>2]|=x[d]<<24-d%4*8;f.call(this,h,a)}else f.apply(this,arguments)};c.prototype=o}}(),t.lib.WordArray})}(Er)),Er.exports}var Br={exports:{}},Y0;function Pi(){return Y0||(Y0=1,function(r,e){(function(t,n){r.exports=n(pe())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.WordArray,f=n.enc;f.Utf16=f.Utf16BE={stringify:function(x){for(var a=x.words,h=x.sigBytes,d=[],u=0;u<h;u+=2){var l=a[u>>>2]>>>16-u%4*8&65535;d.push(String.fromCharCode(l))}return d.join("")},parse:function(x){for(var a=x.length,h=[],d=0;d<a;d++)h[d>>>1]|=x.charCodeAt(d)<<16-d%2*16;return o.create(h,a*2)}},f.Utf16LE={stringify:function(x){for(var a=x.words,h=x.sigBytes,d=[],u=0;u<h;u+=2){var l=c(a[u>>>2]>>>16-u%4*8&65535);d.push(String.fromCharCode(l))}return d.join("")},parse:function(x){for(var a=x.length,h=[],d=0;d<a;d++)h[d>>>1]|=c(x.charCodeAt(d)<<16-d%2*16);return o.create(h,a*2)}};function c(x){return x<<8&4278255360|x>>>8&16711935}}(),t.enc.Utf16})}(Br)),Br.exports}var _r={exports:{}},K0;function vt(){return K0||(K0=1,function(r,e){(function(t,n){r.exports=n(pe())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.WordArray,f=n.enc;f.Base64={stringify:function(x){var a=x.words,h=x.sigBytes,d=this._map;x.clamp();for(var u=[],l=0;l<h;l+=3)for(var m=a[l>>>2]>>>24-l%4*8&255,p=a[l+1>>>2]>>>24-(l+1)%4*8&255,y=a[l+2>>>2]>>>24-(l+2)%4*8&255,F=m<<16|p<<8|y,B=0;B<4&&l+B*.75<h;B++)u.push(d.charAt(F>>>6*(3-B)&63));var v=d.charAt(64);if(v)for(;u.length%4;)u.push(v);return u.join("")},parse:function(x){var a=x.length,h=this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var u=0;u<h.length;u++)d[h.charCodeAt(u)]=u}var l=h.charAt(64);if(l){var m=x.indexOf(l);m!==-1&&(a=m)}return c(x,a,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function c(x,a,h){for(var d=[],u=0,l=0;l<a;l++)if(l%4){var m=h[x.charCodeAt(l-1)]<<l%4*2,p=h[x.charCodeAt(l)]>>>6-l%4*2,y=m|p;d[u>>>2]|=y<<24-u%4*8,u++}return o.create(d,u)}}(),t.enc.Base64})}(_r)),_r.exports}var Cr={exports:{}},G0;function Vi(){return G0||(G0=1,function(r,e){(function(t,n){r.exports=n(pe())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.WordArray,f=n.enc;f.Base64url={stringify:function(x,a){a===void 0&&(a=!0);var h=x.words,d=x.sigBytes,u=a?this._safe_map:this._map;x.clamp();for(var l=[],m=0;m<d;m+=3)for(var p=h[m>>>2]>>>24-m%4*8&255,y=h[m+1>>>2]>>>24-(m+1)%4*8&255,F=h[m+2>>>2]>>>24-(m+2)%4*8&255,B=p<<16|y<<8|F,v=0;v<4&&m+v*.75<d;v++)l.push(u.charAt(B>>>6*(3-v)&63));var b=u.charAt(64);if(b)for(;l.length%4;)l.push(b);return l.join("")},parse:function(x,a){a===void 0&&(a=!0);var h=x.length,d=a?this._safe_map:this._map,u=this._reverseMap;if(!u){u=this._reverseMap=[];for(var l=0;l<d.length;l++)u[d.charCodeAt(l)]=l}var m=d.charAt(64);if(m){var p=x.indexOf(m);p!==-1&&(h=p)}return c(x,h,u)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function c(x,a,h){for(var d=[],u=0,l=0;l<a;l++)if(l%4){var m=h[x.charCodeAt(l-1)]<<l%4*2,p=h[x.charCodeAt(l)]>>>6-l%4*2,y=m|p;d[u>>>2]|=y<<24-u%4*8,u++}return o.create(d,u)}}(),t.enc.Base64url})}(Cr)),Cr.exports}var Ar={exports:{}},j0;function bt(){return j0||(j0=1,function(r,e){(function(t,n){r.exports=n(pe())})(ce,function(t){return function(n){var i=t,o=i.lib,f=o.WordArray,c=o.Hasher,x=i.algo,a=[];(function(){for(var p=0;p<64;p++)a[p]=n.abs(n.sin(p+1))*4294967296|0})();var h=x.MD5=c.extend({_doReset:function(){this._hash=new f.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(p,y){for(var F=0;F<16;F++){var B=y+F,v=p[B];p[B]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360}var b=this._hash.words,E=p[y+0],A=p[y+1],_=p[y+2],S=p[y+3],$=p[y+4],w=p[y+5],D=p[y+6],O=p[y+7],z=p[y+8],U=p[y+9],M=p[y+10],P=p[y+11],X=p[y+12],G=p[y+13],ee=p[y+14],re=p[y+15],I=b[0],q=b[1],W=b[2],H=b[3];I=d(I,q,W,H,E,7,a[0]),H=d(H,I,q,W,A,12,a[1]),W=d(W,H,I,q,_,17,a[2]),q=d(q,W,H,I,S,22,a[3]),I=d(I,q,W,H,$,7,a[4]),H=d(H,I,q,W,w,12,a[5]),W=d(W,H,I,q,D,17,a[6]),q=d(q,W,H,I,O,22,a[7]),I=d(I,q,W,H,z,7,a[8]),H=d(H,I,q,W,U,12,a[9]),W=d(W,H,I,q,M,17,a[10]),q=d(q,W,H,I,P,22,a[11]),I=d(I,q,W,H,X,7,a[12]),H=d(H,I,q,W,G,12,a[13]),W=d(W,H,I,q,ee,17,a[14]),q=d(q,W,H,I,re,22,a[15]),I=u(I,q,W,H,A,5,a[16]),H=u(H,I,q,W,D,9,a[17]),W=u(W,H,I,q,P,14,a[18]),q=u(q,W,H,I,E,20,a[19]),I=u(I,q,W,H,w,5,a[20]),H=u(H,I,q,W,M,9,a[21]),W=u(W,H,I,q,re,14,a[22]),q=u(q,W,H,I,$,20,a[23]),I=u(I,q,W,H,U,5,a[24]),H=u(H,I,q,W,ee,9,a[25]),W=u(W,H,I,q,S,14,a[26]),q=u(q,W,H,I,z,20,a[27]),I=u(I,q,W,H,G,5,a[28]),H=u(H,I,q,W,_,9,a[29]),W=u(W,H,I,q,O,14,a[30]),q=u(q,W,H,I,X,20,a[31]),I=l(I,q,W,H,w,4,a[32]),H=l(H,I,q,W,z,11,a[33]),W=l(W,H,I,q,P,16,a[34]),q=l(q,W,H,I,ee,23,a[35]),I=l(I,q,W,H,A,4,a[36]),H=l(H,I,q,W,$,11,a[37]),W=l(W,H,I,q,O,16,a[38]),q=l(q,W,H,I,M,23,a[39]),I=l(I,q,W,H,G,4,a[40]),H=l(H,I,q,W,E,11,a[41]),W=l(W,H,I,q,S,16,a[42]),q=l(q,W,H,I,D,23,a[43]),I=l(I,q,W,H,U,4,a[44]),H=l(H,I,q,W,X,11,a[45]),W=l(W,H,I,q,re,16,a[46]),q=l(q,W,H,I,_,23,a[47]),I=m(I,q,W,H,E,6,a[48]),H=m(H,I,q,W,O,10,a[49]),W=m(W,H,I,q,ee,15,a[50]),q=m(q,W,H,I,w,21,a[51]),I=m(I,q,W,H,X,6,a[52]),H=m(H,I,q,W,S,10,a[53]),W=m(W,H,I,q,M,15,a[54]),q=m(q,W,H,I,A,21,a[55]),I=m(I,q,W,H,z,6,a[56]),H=m(H,I,q,W,re,10,a[57]),W=m(W,H,I,q,D,15,a[58]),q=m(q,W,H,I,G,21,a[59]),I=m(I,q,W,H,$,6,a[60]),H=m(H,I,q,W,P,10,a[61]),W=m(W,H,I,q,_,15,a[62]),q=m(q,W,H,I,U,21,a[63]),b[0]=b[0]+I|0,b[1]=b[1]+q|0,b[2]=b[2]+W|0,b[3]=b[3]+H|0},_doFinalize:function(){var p=this._data,y=p.words,F=this._nDataBytes*8,B=p.sigBytes*8;y[B>>>5]|=128<<24-B%32;var v=n.floor(F/4294967296),b=F;y[(B+64>>>9<<4)+15]=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,y[(B+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,p.sigBytes=(y.length+1)*4,this._process();for(var E=this._hash,A=E.words,_=0;_<4;_++){var S=A[_];A[_]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return E},clone:function(){var p=c.clone.call(this);return p._hash=this._hash.clone(),p}});function d(p,y,F,B,v,b,E){var A=p+(y&F|~y&B)+v+E;return(A<<b|A>>>32-b)+y}function u(p,y,F,B,v,b,E){var A=p+(y&B|F&~B)+v+E;return(A<<b|A>>>32-b)+y}function l(p,y,F,B,v,b,E){var A=p+(y^F^B)+v+E;return(A<<b|A>>>32-b)+y}function m(p,y,F,B,v,b,E){var A=p+(F^(y|~B))+v+E;return(A<<b|A>>>32-b)+y}i.MD5=c._createHelper(h),i.HmacMD5=c._createHmacHelper(h)}(Math),t.MD5})}(Ar)),Ar.exports}var wr={exports:{}},X0;function Z0(){return X0||(X0=1,function(r,e){(function(t,n){r.exports=n(pe())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.WordArray,f=i.Hasher,c=n.algo,x=[],a=c.SHA1=f.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,d){for(var u=this._hash.words,l=u[0],m=u[1],p=u[2],y=u[3],F=u[4],B=0;B<80;B++){if(B<16)x[B]=h[d+B]|0;else{var v=x[B-3]^x[B-8]^x[B-14]^x[B-16];x[B]=v<<1|v>>>31}var b=(l<<5|l>>>27)+F+x[B];B<20?b+=(m&p|~m&y)+1518500249:B<40?b+=(m^p^y)+1859775393:B<60?b+=(m&p|m&y|p&y)-1894007588:b+=(m^p^y)-899497514,F=y,y=p,p=m<<30|m>>>2,m=l,l=b}u[0]=u[0]+l|0,u[1]=u[1]+m|0,u[2]=u[2]+p|0,u[3]=u[3]+y|0,u[4]=u[4]+F|0},_doFinalize:function(){var h=this._data,d=h.words,u=this._nDataBytes*8,l=h.sigBytes*8;return d[l>>>5]|=128<<24-l%32,d[(l+64>>>9<<4)+14]=Math.floor(u/4294967296),d[(l+64>>>9<<4)+15]=u,h.sigBytes=d.length*4,this._process(),this._hash},clone:function(){var h=f.clone.call(this);return h._hash=this._hash.clone(),h}});n.SHA1=f._createHelper(a),n.HmacSHA1=f._createHmacHelper(a)}(),t.SHA1})}(wr)),wr.exports}var Dr={exports:{}},Q0;function kr(){return Q0||(Q0=1,function(r,e){(function(t,n){r.exports=n(pe())})(ce,function(t){return function(n){var i=t,o=i.lib,f=o.WordArray,c=o.Hasher,x=i.algo,a=[],h=[];(function(){function l(F){for(var B=n.sqrt(F),v=2;v<=B;v++)if(!(F%v))return!1;return!0}function m(F){return(F-(F|0))*4294967296|0}for(var p=2,y=0;y<64;)l(p)&&(y<8&&(a[y]=m(n.pow(p,1/2))),h[y]=m(n.pow(p,1/3)),y++),p++})();var d=[],u=x.SHA256=c.extend({_doReset:function(){this._hash=new f.init(a.slice(0))},_doProcessBlock:function(l,m){for(var p=this._hash.words,y=p[0],F=p[1],B=p[2],v=p[3],b=p[4],E=p[5],A=p[6],_=p[7],S=0;S<64;S++){if(S<16)d[S]=l[m+S]|0;else{var $=d[S-15],w=($<<25|$>>>7)^($<<14|$>>>18)^$>>>3,D=d[S-2],O=(D<<15|D>>>17)^(D<<13|D>>>19)^D>>>10;d[S]=w+d[S-7]+O+d[S-16]}var z=b&E^~b&A,U=y&F^y&B^F&B,M=(y<<30|y>>>2)^(y<<19|y>>>13)^(y<<10|y>>>22),P=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),X=_+P+z+h[S]+d[S],G=M+U;_=A,A=E,E=b,b=v+X|0,v=B,B=F,F=y,y=X+G|0}p[0]=p[0]+y|0,p[1]=p[1]+F|0,p[2]=p[2]+B|0,p[3]=p[3]+v|0,p[4]=p[4]+b|0,p[5]=p[5]+E|0,p[6]=p[6]+A|0,p[7]=p[7]+_|0},_doFinalize:function(){var l=this._data,m=l.words,p=this._nDataBytes*8,y=l.sigBytes*8;return m[y>>>5]|=128<<24-y%32,m[(y+64>>>9<<4)+14]=n.floor(p/4294967296),m[(y+64>>>9<<4)+15]=p,l.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var l=c.clone.call(this);return l._hash=this._hash.clone(),l}});i.SHA256=c._createHelper(u),i.HmacSHA256=c._createHmacHelper(u)}(Math),t.SHA256})}(Dr)),Dr.exports}var Fr={exports:{}},J0;function $i(){return J0||(J0=1,function(r,e){(function(t,n,i){r.exports=n(pe(),kr())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.WordArray,f=n.algo,c=f.SHA256,x=f.SHA224=c.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var a=c._doFinalize.call(this);return a.sigBytes-=4,a}});n.SHA224=c._createHelper(x),n.HmacSHA224=c._createHmacHelper(x)}(),t.SHA224})}(Fr)),Fr.exports}var Sr={exports:{}},en;function tn(){return en||(en=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Gt())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.Hasher,f=n.x64,c=f.Word,x=f.WordArray,a=n.algo;function h(){return c.create.apply(c,arguments)}var d=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],u=[];(function(){for(var m=0;m<80;m++)u[m]=h()})();var l=a.SHA512=o.extend({_doReset:function(){this._hash=new x.init([new c.init(1779033703,4089235720),new c.init(3144134277,2227873595),new c.init(1013904242,4271175723),new c.init(2773480762,1595750129),new c.init(1359893119,2917565137),new c.init(2600822924,725511199),new c.init(528734635,4215389547),new c.init(1541459225,327033209)])},_doProcessBlock:function(m,p){for(var y=this._hash.words,F=y[0],B=y[1],v=y[2],b=y[3],E=y[4],A=y[5],_=y[6],S=y[7],$=F.high,w=F.low,D=B.high,O=B.low,z=v.high,U=v.low,M=b.high,P=b.low,X=E.high,G=E.low,ee=A.high,re=A.low,I=_.high,q=_.low,W=S.high,H=S.low,ue=$,de=w,Ee=D,ae=O,Ie=z,Be=U,Me=M,ze=P,De=X,ke=G,Ce=ee,Ue=re,xt=I,Ke=q,pt=W,rt=H,Le=0;Le<80;Le++){var Te,We,nt=u[Le];if(Le<16)We=nt.high=m[p+Le*2]|0,Te=nt.low=m[p+Le*2+1]|0;else{var wt=u[Le-15],Ge=wt.high,ft=wt.low,V=(Ge>>>1|ft<<31)^(Ge>>>8|ft<<24)^Ge>>>7,Z=(ft>>>1|Ge<<31)^(ft>>>8|Ge<<24)^(ft>>>7|Ge<<25),L=u[Le-2],ne=L.high,be=L.low,Ye=(ne>>>19|be<<13)^(ne<<3|be>>>29)^ne>>>6,je=(be>>>19|ne<<13)^(be<<3|ne>>>29)^(be>>>6|ne<<26),lt=u[Le-7],Rt=lt.high,_e=lt.low,Pe=u[Le-16],F0=Pe.high,it=Pe.low;Te=Z+_e,We=V+Rt+(Te>>>0<Z>>>0?1:0),Te=Te+je,We=We+Ye+(Te>>>0<je>>>0?1:0),Te=Te+it,We=We+F0+(Te>>>0<it>>>0?1:0),nt.high=We,nt.low=Te}var S0=De&Ce^~De&xt,hr=ke&Ue^~ke&Ke,xr=ue&Ee^ue&Ie^Ee&Ie,N0=de&ae^de&Be^ae&Be,T0=(ue>>>28|de<<4)^(ue<<30|de>>>2)^(ue<<25|de>>>7),pr=(de>>>28|ue<<4)^(de<<30|ue>>>2)^(de<<25|ue>>>7),R0=(De>>>14|ke<<18)^(De>>>18|ke<<14)^(De<<23|ke>>>9),L0=(ke>>>14|De<<18)^(ke>>>18|De<<14)^(ke<<23|De>>>9),vr=d[Le],O0=vr.high,br=vr.low,He=rt+L0,ut=pt+R0+(He>>>0<rt>>>0?1:0),He=He+hr,ut=ut+S0+(He>>>0<hr>>>0?1:0),He=He+br,ut=ut+O0+(He>>>0<br>>>0?1:0),He=He+Te,ut=ut+We+(He>>>0<Te>>>0?1:0),Wt=pr+N0,I0=T0+xr+(Wt>>>0<pr>>>0?1:0);pt=xt,rt=Ke,xt=Ce,Ke=Ue,Ce=De,Ue=ke,ke=ze+He|0,De=Me+ut+(ke>>>0<ze>>>0?1:0)|0,Me=Ie,ze=Be,Ie=Ee,Be=ae,Ee=ue,ae=de,de=He+Wt|0,ue=ut+I0+(de>>>0<He>>>0?1:0)|0}w=F.low=w+de,F.high=$+ue+(w>>>0<de>>>0?1:0),O=B.low=O+ae,B.high=D+Ee+(O>>>0<ae>>>0?1:0),U=v.low=U+Be,v.high=z+Ie+(U>>>0<Be>>>0?1:0),P=b.low=P+ze,b.high=M+Me+(P>>>0<ze>>>0?1:0),G=E.low=G+ke,E.high=X+De+(G>>>0<ke>>>0?1:0),re=A.low=re+Ue,A.high=ee+Ce+(re>>>0<Ue>>>0?1:0),q=_.low=q+Ke,_.high=I+xt+(q>>>0<Ke>>>0?1:0),H=S.low=H+rt,S.high=W+pt+(H>>>0<rt>>>0?1:0)},_doFinalize:function(){var m=this._data,p=m.words,y=this._nDataBytes*8,F=m.sigBytes*8;p[F>>>5]|=128<<24-F%32,p[(F+128>>>10<<5)+30]=Math.floor(y/4294967296),p[(F+128>>>10<<5)+31]=y,m.sigBytes=p.length*4,this._process();var B=this._hash.toX32();return B},clone:function(){var m=o.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});n.SHA512=o._createHelper(l),n.HmacSHA512=o._createHmacHelper(l)}(),t.SHA512})}(Sr)),Sr.exports}var Nr={exports:{}},rn;function Mi(){return rn||(rn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Gt(),tn())})(ce,function(t){return function(){var n=t,i=n.x64,o=i.Word,f=i.WordArray,c=n.algo,x=c.SHA512,a=c.SHA384=x.extend({_doReset:function(){this._hash=new f.init([new o.init(3418070365,3238371032),new o.init(1654270250,914150663),new o.init(2438529370,812702999),new o.init(355462360,4144912697),new o.init(1731405415,4290775857),new o.init(2394180231,1750603025),new o.init(3675008525,1694076839),new o.init(1203062813,3204075428)])},_doFinalize:function(){var h=x._doFinalize.call(this);return h.sigBytes-=16,h}});n.SHA384=x._createHelper(a),n.HmacSHA384=x._createHmacHelper(a)}(),t.SHA384})}(Nr)),Nr.exports}var Tr={exports:{}},nn;function zi(){return nn||(nn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Gt())})(ce,function(t){return function(n){var i=t,o=i.lib,f=o.WordArray,c=o.Hasher,x=i.x64,a=x.Word,h=i.algo,d=[],u=[],l=[];(function(){for(var y=1,F=0,B=0;B<24;B++){d[y+5*F]=(B+1)*(B+2)/2%64;var v=F%5,b=(2*y+3*F)%5;y=v,F=b}for(var y=0;y<5;y++)for(var F=0;F<5;F++)u[y+5*F]=F+(2*y+3*F)%5*5;for(var E=1,A=0;A<24;A++){for(var _=0,S=0,$=0;$<7;$++){if(E&1){var w=(1<<$)-1;w<32?S^=1<<w:_^=1<<w-32}E&128?E=E<<1^113:E<<=1}l[A]=a.create(_,S)}})();var m=[];(function(){for(var y=0;y<25;y++)m[y]=a.create()})();var p=h.SHA3=c.extend({cfg:c.cfg.extend({outputLength:512}),_doReset:function(){for(var y=this._state=[],F=0;F<25;F++)y[F]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(y,F){for(var B=this._state,v=this.blockSize/2,b=0;b<v;b++){var E=y[F+2*b],A=y[F+2*b+1];E=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,A=(A<<8|A>>>24)&16711935|(A<<24|A>>>8)&4278255360;var _=B[b];_.high^=A,_.low^=E}for(var S=0;S<24;S++){for(var $=0;$<5;$++){for(var w=0,D=0,O=0;O<5;O++){var _=B[$+5*O];w^=_.high,D^=_.low}var z=m[$];z.high=w,z.low=D}for(var $=0;$<5;$++)for(var U=m[($+4)%5],M=m[($+1)%5],P=M.high,X=M.low,w=U.high^(P<<1|X>>>31),D=U.low^(X<<1|P>>>31),O=0;O<5;O++){var _=B[$+5*O];_.high^=w,_.low^=D}for(var G=1;G<25;G++){var w,D,_=B[G],ee=_.high,re=_.low,I=d[G];I<32?(w=ee<<I|re>>>32-I,D=re<<I|ee>>>32-I):(w=re<<I-32|ee>>>64-I,D=ee<<I-32|re>>>64-I);var q=m[u[G]];q.high=w,q.low=D}var W=m[0],H=B[0];W.high=H.high,W.low=H.low;for(var $=0;$<5;$++)for(var O=0;O<5;O++){var G=$+5*O,_=B[G],ue=m[G],de=m[($+1)%5+5*O],Ee=m[($+2)%5+5*O];_.high=ue.high^~de.high&Ee.high,_.low=ue.low^~de.low&Ee.low}var _=B[0],ae=l[S];_.high^=ae.high,_.low^=ae.low}},_doFinalize:function(){var y=this._data,F=y.words;this._nDataBytes*8;var B=y.sigBytes*8,v=this.blockSize*32;F[B>>>5]|=1<<24-B%32,F[(n.ceil((B+1)/v)*v>>>5)-1]|=128,y.sigBytes=F.length*4,this._process();for(var b=this._state,E=this.cfg.outputLength/8,A=E/8,_=[],S=0;S<A;S++){var $=b[S],w=$.high,D=$.low;w=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,_.push(D),_.push(w)}return new f.init(_,E)},clone:function(){for(var y=c.clone.call(this),F=y._state=this._state.slice(0),B=0;B<25;B++)F[B]=F[B].clone();return y}});i.SHA3=c._createHelper(p),i.HmacSHA3=c._createHmacHelper(p)}(Math),t.SHA3})}(Tr)),Tr.exports}var Rr={exports:{}},on;function Hi(){return on||(on=1,function(r,e){(function(t,n){r.exports=n(pe())})(ce,function(t){/** @preserve
2
+ (c) 2012 by Cédric Mesnil. All rights reserved.
3
+
4
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
5
+
6
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
7
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
+
9
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
10
+ */return function(n){var i=t,o=i.lib,f=o.WordArray,c=o.Hasher,x=i.algo,a=f.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=f.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),d=f.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),u=f.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),l=f.create([0,1518500249,1859775393,2400959708,2840853838]),m=f.create([1352829926,1548603684,1836072691,2053994217,0]),p=x.RIPEMD160=c.extend({_doReset:function(){this._hash=f.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(A,_){for(var S=0;S<16;S++){var $=_+S,w=A[$];A[$]=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360}var D=this._hash.words,O=l.words,z=m.words,U=a.words,M=h.words,P=d.words,X=u.words,G,ee,re,I,q,W,H,ue,de,Ee;W=G=D[0],H=ee=D[1],ue=re=D[2],de=I=D[3],Ee=q=D[4];for(var ae,S=0;S<80;S+=1)ae=G+A[_+U[S]]|0,S<16?ae+=y(ee,re,I)+O[0]:S<32?ae+=F(ee,re,I)+O[1]:S<48?ae+=B(ee,re,I)+O[2]:S<64?ae+=v(ee,re,I)+O[3]:ae+=b(ee,re,I)+O[4],ae=ae|0,ae=E(ae,P[S]),ae=ae+q|0,G=q,q=I,I=E(re,10),re=ee,ee=ae,ae=W+A[_+M[S]]|0,S<16?ae+=b(H,ue,de)+z[0]:S<32?ae+=v(H,ue,de)+z[1]:S<48?ae+=B(H,ue,de)+z[2]:S<64?ae+=F(H,ue,de)+z[3]:ae+=y(H,ue,de)+z[4],ae=ae|0,ae=E(ae,X[S]),ae=ae+Ee|0,W=Ee,Ee=de,de=E(ue,10),ue=H,H=ae;ae=D[1]+re+de|0,D[1]=D[2]+I+Ee|0,D[2]=D[3]+q+W|0,D[3]=D[4]+G+H|0,D[4]=D[0]+ee+ue|0,D[0]=ae},_doFinalize:function(){var A=this._data,_=A.words,S=this._nDataBytes*8,$=A.sigBytes*8;_[$>>>5]|=128<<24-$%32,_[($+64>>>9<<4)+14]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360,A.sigBytes=(_.length+1)*4,this._process();for(var w=this._hash,D=w.words,O=0;O<5;O++){var z=D[O];D[O]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return w},clone:function(){var A=c.clone.call(this);return A._hash=this._hash.clone(),A}});function y(A,_,S){return A^_^S}function F(A,_,S){return A&_|~A&S}function B(A,_,S){return(A|~_)^S}function v(A,_,S){return A&S|_&~S}function b(A,_,S){return A^(_|~S)}function E(A,_){return A<<_|A>>>32-_}i.RIPEMD160=c._createHelper(p),i.HmacRIPEMD160=c._createHmacHelper(p)}(),t.RIPEMD160})}(Rr)),Rr.exports}var Lr={exports:{}},sn;function Or(){return sn||(sn=1,function(r,e){(function(t,n){r.exports=n(pe())})(ce,function(t){(function(){var n=t,i=n.lib,o=i.Base,f=n.enc,c=f.Utf8,x=n.algo;x.HMAC=o.extend({init:function(a,h){a=this._hasher=new a.init,typeof h=="string"&&(h=c.parse(h));var d=a.blockSize,u=d*4;h.sigBytes>u&&(h=a.finalize(h)),h.clamp();for(var l=this._oKey=h.clone(),m=this._iKey=h.clone(),p=l.words,y=m.words,F=0;F<d;F++)p[F]^=1549556828,y[F]^=909522486;l.sigBytes=m.sigBytes=u,this.reset()},reset:function(){var a=this._hasher;a.reset(),a.update(this._iKey)},update:function(a){return this._hasher.update(a),this},finalize:function(a){var h=this._hasher,d=h.finalize(a);h.reset();var u=h.finalize(this._oKey.clone().concat(d));return u}})})()})}(Lr)),Lr.exports}var Ir={exports:{}},an;function qi(){return an||(an=1,function(r,e){(function(t,n,i){r.exports=n(pe(),kr(),Or())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.Base,f=i.WordArray,c=n.algo,x=c.SHA256,a=c.HMAC,h=c.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:x,iterations:25e4}),init:function(d){this.cfg=this.cfg.extend(d)},compute:function(d,u){for(var l=this.cfg,m=a.create(l.hasher,d),p=f.create(),y=f.create([1]),F=p.words,B=y.words,v=l.keySize,b=l.iterations;F.length<v;){var E=m.update(u).finalize(y);m.reset();for(var A=E.words,_=A.length,S=E,$=1;$<b;$++){S=m.finalize(S),m.reset();for(var w=S.words,D=0;D<_;D++)A[D]^=w[D]}p.concat(E),B[0]++}return p.sigBytes=v*4,p}});n.PBKDF2=function(d,u,l){return h.create(l).compute(d,u)}}(),t.PBKDF2})}(Ir)),Ir.exports}var Pr={exports:{}},cn;function gt(){return cn||(cn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Z0(),Or())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.Base,f=i.WordArray,c=n.algo,x=c.MD5,a=c.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:x,iterations:1}),init:function(h){this.cfg=this.cfg.extend(h)},compute:function(h,d){for(var u,l=this.cfg,m=l.hasher.create(),p=f.create(),y=p.words,F=l.keySize,B=l.iterations;y.length<F;){u&&m.update(u),u=m.update(h).finalize(d),m.reset();for(var v=1;v<B;v++)u=m.finalize(u),m.reset();p.concat(u)}return p.sigBytes=F*4,p}});n.EvpKDF=function(h,d,u){return a.create(u).compute(h,d)}}(),t.EvpKDF})}(Pr)),Pr.exports}var Vr={exports:{}},fn;function Se(){return fn||(fn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),gt())})(ce,function(t){t.lib.Cipher||function(n){var i=t,o=i.lib,f=o.Base,c=o.WordArray,x=o.BufferedBlockAlgorithm,a=i.enc;a.Utf8;var h=a.Base64,d=i.algo,u=d.EvpKDF,l=o.Cipher=x.extend({cfg:f.extend(),createEncryptor:function(w,D){return this.create(this._ENC_XFORM_MODE,w,D)},createDecryptor:function(w,D){return this.create(this._DEC_XFORM_MODE,w,D)},init:function(w,D,O){this.cfg=this.cfg.extend(O),this._xformMode=w,this._key=D,this.reset()},reset:function(){x.reset.call(this),this._doReset()},process:function(w){return this._append(w),this._process()},finalize:function(w){w&&this._append(w);var D=this._doFinalize();return D},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function w(D){return typeof D=="string"?$:A}return function(D){return{encrypt:function(O,z,U){return w(z).encrypt(D,O,z,U)},decrypt:function(O,z,U){return w(z).decrypt(D,O,z,U)}}}}()});o.StreamCipher=l.extend({_doFinalize:function(){var w=this._process(!0);return w},blockSize:1});var m=i.mode={},p=o.BlockCipherMode=f.extend({createEncryptor:function(w,D){return this.Encryptor.create(w,D)},createDecryptor:function(w,D){return this.Decryptor.create(w,D)},init:function(w,D){this._cipher=w,this._iv=D}}),y=m.CBC=function(){var w=p.extend();w.Encryptor=w.extend({processBlock:function(O,z){var U=this._cipher,M=U.blockSize;D.call(this,O,z,M),U.encryptBlock(O,z),this._prevBlock=O.slice(z,z+M)}}),w.Decryptor=w.extend({processBlock:function(O,z){var U=this._cipher,M=U.blockSize,P=O.slice(z,z+M);U.decryptBlock(O,z),D.call(this,O,z,M),this._prevBlock=P}});function D(O,z,U){var M,P=this._iv;P?(M=P,this._iv=n):M=this._prevBlock;for(var X=0;X<U;X++)O[z+X]^=M[X]}return w}(),F=i.pad={},B=F.Pkcs7={pad:function(w,D){for(var O=D*4,z=O-w.sigBytes%O,U=z<<24|z<<16|z<<8|z,M=[],P=0;P<z;P+=4)M.push(U);var X=c.create(M,z);w.concat(X)},unpad:function(w){var D=w.words[w.sigBytes-1>>>2]&255;w.sigBytes-=D}};o.BlockCipher=l.extend({cfg:l.cfg.extend({mode:y,padding:B}),reset:function(){var w;l.reset.call(this);var D=this.cfg,O=D.iv,z=D.mode;this._xformMode==this._ENC_XFORM_MODE?w=z.createEncryptor:(w=z.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==w?this._mode.init(this,O&&O.words):(this._mode=w.call(z,this,O&&O.words),this._mode.__creator=w)},_doProcessBlock:function(w,D){this._mode.processBlock(w,D)},_doFinalize:function(){var w,D=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(D.pad(this._data,this.blockSize),w=this._process(!0)):(w=this._process(!0),D.unpad(w)),w},blockSize:128/32});var v=o.CipherParams=f.extend({init:function(w){this.mixIn(w)},toString:function(w){return(w||this.formatter).stringify(this)}}),b=i.format={},E=b.OpenSSL={stringify:function(w){var D,O=w.ciphertext,z=w.salt;return z?D=c.create([1398893684,1701076831]).concat(z).concat(O):D=O,D.toString(h)},parse:function(w){var D,O=h.parse(w),z=O.words;return z[0]==1398893684&&z[1]==1701076831&&(D=c.create(z.slice(2,4)),z.splice(0,4),O.sigBytes-=16),v.create({ciphertext:O,salt:D})}},A=o.SerializableCipher=f.extend({cfg:f.extend({format:E}),encrypt:function(w,D,O,z){z=this.cfg.extend(z);var U=w.createEncryptor(O,z),M=U.finalize(D),P=U.cfg;return v.create({ciphertext:M,key:O,iv:P.iv,algorithm:w,mode:P.mode,padding:P.padding,blockSize:w.blockSize,formatter:z.format})},decrypt:function(w,D,O,z){z=this.cfg.extend(z),D=this._parse(D,z.format);var U=w.createDecryptor(O,z).finalize(D.ciphertext);return U},_parse:function(w,D){return typeof w=="string"?D.parse(w,this):w}}),_=i.kdf={},S=_.OpenSSL={execute:function(w,D,O,z,U){if(z||(z=c.random(64/8)),U)var M=u.create({keySize:D+O,hasher:U}).compute(w,z);else var M=u.create({keySize:D+O}).compute(w,z);var P=c.create(M.words.slice(D),O*4);return M.sigBytes=D*4,v.create({key:M,iv:P,salt:z})}},$=o.PasswordBasedCipher=A.extend({cfg:A.cfg.extend({kdf:S}),encrypt:function(w,D,O,z){z=this.cfg.extend(z);var U=z.kdf.execute(O,w.keySize,w.ivSize,z.salt,z.hasher);z.iv=U.iv;var M=A.encrypt.call(this,w,D,U.key,z);return M.mixIn(U),M},decrypt:function(w,D,O,z){z=this.cfg.extend(z),D=this._parse(D,z.format);var U=z.kdf.execute(O,w.keySize,w.ivSize,D.salt,z.hasher);z.iv=U.iv;var M=A.decrypt.call(this,w,D,U.key,z);return M}})}()})}(Vr)),Vr.exports}var $r={exports:{}},ln;function Ui(){return ln||(ln=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Se())})(ce,function(t){return t.mode.CFB=function(){var n=t.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(o,f){var c=this._cipher,x=c.blockSize;i.call(this,o,f,x,c),this._prevBlock=o.slice(f,f+x)}}),n.Decryptor=n.extend({processBlock:function(o,f){var c=this._cipher,x=c.blockSize,a=o.slice(f,f+x);i.call(this,o,f,x,c),this._prevBlock=a}});function i(o,f,c,x){var a,h=this._iv;h?(a=h.slice(0),this._iv=void 0):a=this._prevBlock,x.encryptBlock(a,0);for(var d=0;d<c;d++)o[f+d]^=a[d]}return n}(),t.mode.CFB})}($r)),$r.exports}var Mr={exports:{}},un;function Wi(){return un||(un=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Se())})(ce,function(t){return t.mode.CTR=function(){var n=t.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,f){var c=this._cipher,x=c.blockSize,a=this._iv,h=this._counter;a&&(h=this._counter=a.slice(0),this._iv=void 0);var d=h.slice(0);c.encryptBlock(d,0),h[x-1]=h[x-1]+1|0;for(var u=0;u<x;u++)o[f+u]^=d[u]}});return n.Decryptor=i,n}(),t.mode.CTR})}(Mr)),Mr.exports}var zr={exports:{}},dn;function Yi(){return dn||(dn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Se())})(ce,function(t){/** @preserve
11
+ * Counter block mode compatible with Dr Brian Gladman fileenc.c
12
+ * derived from CryptoJS.mode.CTR
13
+ * Jan Hruby jhruby.web@gmail.com
14
+ */return t.mode.CTRGladman=function(){var n=t.lib.BlockCipherMode.extend();function i(c){if((c>>24&255)===255){var x=c>>16&255,a=c>>8&255,h=c&255;x===255?(x=0,a===255?(a=0,h===255?h=0:++h):++a):++x,c=0,c+=x<<16,c+=a<<8,c+=h}else c+=1<<24;return c}function o(c){return(c[0]=i(c[0]))===0&&(c[1]=i(c[1])),c}var f=n.Encryptor=n.extend({processBlock:function(c,x){var a=this._cipher,h=a.blockSize,d=this._iv,u=this._counter;d&&(u=this._counter=d.slice(0),this._iv=void 0),o(u);var l=u.slice(0);a.encryptBlock(l,0);for(var m=0;m<h;m++)c[x+m]^=l[m]}});return n.Decryptor=f,n}(),t.mode.CTRGladman})}(zr)),zr.exports}var Hr={exports:{}},hn;function Ki(){return hn||(hn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Se())})(ce,function(t){return t.mode.OFB=function(){var n=t.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,f){var c=this._cipher,x=c.blockSize,a=this._iv,h=this._keystream;a&&(h=this._keystream=a.slice(0),this._iv=void 0),c.encryptBlock(h,0);for(var d=0;d<x;d++)o[f+d]^=h[d]}});return n.Decryptor=i,n}(),t.mode.OFB})}(Hr)),Hr.exports}var qr={exports:{}},xn;function pn(){return xn||(xn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Se())})(ce,function(t){return t.mode.ECB=function(){var n=t.lib.BlockCipherMode.extend();return n.Encryptor=n.extend({processBlock:function(i,o){this._cipher.encryptBlock(i,o)}}),n.Decryptor=n.extend({processBlock:function(i,o){this._cipher.decryptBlock(i,o)}}),n}(),t.mode.ECB})}(qr)),qr.exports}var Ur={exports:{}},vn;function Gi(){return vn||(vn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Se())})(ce,function(t){return t.pad.AnsiX923={pad:function(n,i){var o=n.sigBytes,f=i*4,c=f-o%f,x=o+c-1;n.clamp(),n.words[x>>>2]|=c<<24-x%4*8,n.sigBytes+=c},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},t.pad.Ansix923})}(Ur)),Ur.exports}var Wr={exports:{}},bn;function ji(){return bn||(bn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Se())})(ce,function(t){return t.pad.Iso10126={pad:function(n,i){var o=i*4,f=o-n.sigBytes%o;n.concat(t.lib.WordArray.random(f-1)).concat(t.lib.WordArray.create([f<<24],1))},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},t.pad.Iso10126})}(Wr)),Wr.exports}var Yr={exports:{}},gn;function Xi(){return gn||(gn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Se())})(ce,function(t){return t.pad.Iso97971={pad:function(n,i){n.concat(t.lib.WordArray.create([2147483648],1)),t.pad.ZeroPadding.pad(n,i)},unpad:function(n){t.pad.ZeroPadding.unpad(n),n.sigBytes--}},t.pad.Iso97971})}(Yr)),Yr.exports}var Kr={exports:{}},mn;function Zi(){return mn||(mn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Se())})(ce,function(t){return t.pad.ZeroPadding={pad:function(n,i){var o=i*4;n.clamp(),n.sigBytes+=o-(n.sigBytes%o||o)},unpad:function(n){for(var i=n.words,o=n.sigBytes-1,o=n.sigBytes-1;o>=0;o--)if(i[o>>>2]>>>24-o%4*8&255){n.sigBytes=o+1;break}}},t.pad.ZeroPadding})}(Kr)),Kr.exports}var Gr={exports:{}},yn;function Qi(){return yn||(yn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Se())})(ce,function(t){return t.pad.NoPadding={pad:function(){},unpad:function(){}},t.pad.NoPadding})}(Gr)),Gr.exports}var jr={exports:{}},En;function Ji(){return En||(En=1,function(r,e){(function(t,n,i){r.exports=n(pe(),Se())})(ce,function(t){return function(n){var i=t,o=i.lib,f=o.CipherParams,c=i.enc,x=c.Hex,a=i.format;a.Hex={stringify:function(h){return h.ciphertext.toString(x)},parse:function(h){var d=x.parse(h);return f.create({ciphertext:d})}}}(),t.format.Hex})}(jr)),jr.exports}var Xr={exports:{}},Bn;function _n(){return Bn||(Bn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),vt(),bt(),gt(),Se())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.BlockCipher,f=n.algo,c=[],x=[],a=[],h=[],d=[],u=[],l=[],m=[],p=[],y=[];(function(){for(var v=[],b=0;b<256;b++)b<128?v[b]=b<<1:v[b]=b<<1^283;for(var E=0,A=0,b=0;b<256;b++){var _=A^A<<1^A<<2^A<<3^A<<4;_=_>>>8^_&255^99,c[E]=_,x[_]=E;var S=v[E],$=v[S],w=v[$],D=v[_]*257^_*16843008;a[E]=D<<24|D>>>8,h[E]=D<<16|D>>>16,d[E]=D<<8|D>>>24,u[E]=D;var D=w*16843009^$*65537^S*257^E*16843008;l[_]=D<<24|D>>>8,m[_]=D<<16|D>>>16,p[_]=D<<8|D>>>24,y[_]=D,E?(E=S^v[v[v[w^S]]],A^=v[v[A]]):E=A=1}})();var F=[0,1,2,4,8,16,32,64,128,27,54],B=f.AES=o.extend({_doReset:function(){var v;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,E=b.words,A=b.sigBytes/4,_=this._nRounds=A+6,S=(_+1)*4,$=this._keySchedule=[],w=0;w<S;w++)w<A?$[w]=E[w]:(v=$[w-1],w%A?A>6&&w%A==4&&(v=c[v>>>24]<<24|c[v>>>16&255]<<16|c[v>>>8&255]<<8|c[v&255]):(v=v<<8|v>>>24,v=c[v>>>24]<<24|c[v>>>16&255]<<16|c[v>>>8&255]<<8|c[v&255],v^=F[w/A|0]<<24),$[w]=$[w-A]^v);for(var D=this._invKeySchedule=[],O=0;O<S;O++){var w=S-O;if(O%4)var v=$[w];else var v=$[w-4];O<4||w<=4?D[O]=v:D[O]=l[c[v>>>24]]^m[c[v>>>16&255]]^p[c[v>>>8&255]]^y[c[v&255]]}}},encryptBlock:function(v,b){this._doCryptBlock(v,b,this._keySchedule,a,h,d,u,c)},decryptBlock:function(v,b){var E=v[b+1];v[b+1]=v[b+3],v[b+3]=E,this._doCryptBlock(v,b,this._invKeySchedule,l,m,p,y,x);var E=v[b+1];v[b+1]=v[b+3],v[b+3]=E},_doCryptBlock:function(v,b,E,A,_,S,$,w){for(var D=this._nRounds,O=v[b]^E[0],z=v[b+1]^E[1],U=v[b+2]^E[2],M=v[b+3]^E[3],P=4,X=1;X<D;X++){var G=A[O>>>24]^_[z>>>16&255]^S[U>>>8&255]^$[M&255]^E[P++],ee=A[z>>>24]^_[U>>>16&255]^S[M>>>8&255]^$[O&255]^E[P++],re=A[U>>>24]^_[M>>>16&255]^S[O>>>8&255]^$[z&255]^E[P++],I=A[M>>>24]^_[O>>>16&255]^S[z>>>8&255]^$[U&255]^E[P++];O=G,z=ee,U=re,M=I}var G=(w[O>>>24]<<24|w[z>>>16&255]<<16|w[U>>>8&255]<<8|w[M&255])^E[P++],ee=(w[z>>>24]<<24|w[U>>>16&255]<<16|w[M>>>8&255]<<8|w[O&255])^E[P++],re=(w[U>>>24]<<24|w[M>>>16&255]<<16|w[O>>>8&255]<<8|w[z&255])^E[P++],I=(w[M>>>24]<<24|w[O>>>16&255]<<16|w[z>>>8&255]<<8|w[U&255])^E[P++];v[b]=G,v[b+1]=ee,v[b+2]=re,v[b+3]=I},keySize:256/32});n.AES=o._createHelper(B)}(),t.AES})}(Xr)),Xr.exports}var Zr={exports:{}},Cn;function eo(){return Cn||(Cn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),vt(),bt(),gt(),Se())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.WordArray,f=i.BlockCipher,c=n.algo,x=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],a=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],d=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],u=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],l=c.DES=f.extend({_doReset:function(){for(var F=this._key,B=F.words,v=[],b=0;b<56;b++){var E=x[b]-1;v[b]=B[E>>>5]>>>31-E%32&1}for(var A=this._subKeys=[],_=0;_<16;_++){for(var S=A[_]=[],$=h[_],b=0;b<24;b++)S[b/6|0]|=v[(a[b]-1+$)%28]<<31-b%6,S[4+(b/6|0)]|=v[28+(a[b+24]-1+$)%28]<<31-b%6;S[0]=S[0]<<1|S[0]>>>31;for(var b=1;b<7;b++)S[b]=S[b]>>>(b-1)*4+3;S[7]=S[7]<<5|S[7]>>>27}for(var w=this._invSubKeys=[],b=0;b<16;b++)w[b]=A[15-b]},encryptBlock:function(F,B){this._doCryptBlock(F,B,this._subKeys)},decryptBlock:function(F,B){this._doCryptBlock(F,B,this._invSubKeys)},_doCryptBlock:function(F,B,v){this._lBlock=F[B],this._rBlock=F[B+1],m.call(this,4,252645135),m.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),m.call(this,1,1431655765);for(var b=0;b<16;b++){for(var E=v[b],A=this._lBlock,_=this._rBlock,S=0,$=0;$<8;$++)S|=d[$][((_^E[$])&u[$])>>>0];this._lBlock=_,this._rBlock=A^S}var w=this._lBlock;this._lBlock=this._rBlock,this._rBlock=w,m.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),F[B]=this._lBlock,F[B+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(F,B){var v=(this._lBlock>>>F^this._rBlock)&B;this._rBlock^=v,this._lBlock^=v<<F}function p(F,B){var v=(this._rBlock>>>F^this._lBlock)&B;this._lBlock^=v,this._rBlock^=v<<F}n.DES=f._createHelper(l);var y=c.TripleDES=f.extend({_doReset:function(){var F=this._key,B=F.words;if(B.length!==2&&B.length!==4&&B.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var v=B.slice(0,2),b=B.length<4?B.slice(0,2):B.slice(2,4),E=B.length<6?B.slice(0,2):B.slice(4,6);this._des1=l.createEncryptor(o.create(v)),this._des2=l.createEncryptor(o.create(b)),this._des3=l.createEncryptor(o.create(E))},encryptBlock:function(F,B){this._des1.encryptBlock(F,B),this._des2.decryptBlock(F,B),this._des3.encryptBlock(F,B)},decryptBlock:function(F,B){this._des3.decryptBlock(F,B),this._des2.encryptBlock(F,B),this._des1.decryptBlock(F,B)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=f._createHelper(y)}(),t.TripleDES})}(Zr)),Zr.exports}var Qr={exports:{}},An;function to(){return An||(An=1,function(r,e){(function(t,n,i){r.exports=n(pe(),vt(),bt(),gt(),Se())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.StreamCipher,f=n.algo,c=f.RC4=o.extend({_doReset:function(){for(var h=this._key,d=h.words,u=h.sigBytes,l=this._S=[],m=0;m<256;m++)l[m]=m;for(var m=0,p=0;m<256;m++){var y=m%u,F=d[y>>>2]>>>24-y%4*8&255;p=(p+l[m]+F)%256;var B=l[m];l[m]=l[p],l[p]=B}this._i=this._j=0},_doProcessBlock:function(h,d){h[d]^=x.call(this)},keySize:256/32,ivSize:0});function x(){for(var h=this._S,d=this._i,u=this._j,l=0,m=0;m<4;m++){d=(d+1)%256,u=(u+h[d])%256;var p=h[d];h[d]=h[u],h[u]=p,l|=h[(h[d]+h[u])%256]<<24-m*8}return this._i=d,this._j=u,l}n.RC4=o._createHelper(c);var a=f.RC4Drop=c.extend({cfg:c.cfg.extend({drop:192}),_doReset:function(){c._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)x.call(this)}});n.RC4Drop=o._createHelper(a)}(),t.RC4})}(Qr)),Qr.exports}var Jr={exports:{}},wn;function ro(){return wn||(wn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),vt(),bt(),gt(),Se())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.StreamCipher,f=n.algo,c=[],x=[],a=[],h=f.Rabbit=o.extend({_doReset:function(){for(var u=this._key.words,l=this.cfg.iv,m=0;m<4;m++)u[m]=(u[m]<<8|u[m]>>>24)&16711935|(u[m]<<24|u[m]>>>8)&4278255360;var p=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],y=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var m=0;m<4;m++)d.call(this);for(var m=0;m<8;m++)y[m]^=p[m+4&7];if(l){var F=l.words,B=F[0],v=F[1],b=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,E=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,A=b>>>16|E&4294901760,_=E<<16|b&65535;y[0]^=b,y[1]^=A,y[2]^=E,y[3]^=_,y[4]^=b,y[5]^=A,y[6]^=E,y[7]^=_;for(var m=0;m<4;m++)d.call(this)}},_doProcessBlock:function(u,l){var m=this._X;d.call(this),c[0]=m[0]^m[5]>>>16^m[3]<<16,c[1]=m[2]^m[7]>>>16^m[5]<<16,c[2]=m[4]^m[1]>>>16^m[7]<<16,c[3]=m[6]^m[3]>>>16^m[1]<<16;for(var p=0;p<4;p++)c[p]=(c[p]<<8|c[p]>>>24)&16711935|(c[p]<<24|c[p]>>>8)&4278255360,u[l+p]^=c[p]},blockSize:128/32,ivSize:64/32});function d(){for(var u=this._X,l=this._C,m=0;m<8;m++)x[m]=l[m];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0<x[0]>>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0<x[1]>>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0<x[2]>>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0<x[3]>>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0<x[4]>>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0<x[5]>>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0<x[6]>>>0?1:0)|0,this._b=l[7]>>>0<x[7]>>>0?1:0;for(var m=0;m<8;m++){var p=u[m]+l[m],y=p&65535,F=p>>>16,B=((y*y>>>17)+y*F>>>15)+F*F,v=((p&4294901760)*p|0)+((p&65535)*p|0);a[m]=B^v}u[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,u[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,u[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,u[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,u[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,u[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,u[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,u[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}n.Rabbit=o._createHelper(h)}(),t.Rabbit})}(Jr)),Jr.exports}var e0={exports:{}},Dn;function no(){return Dn||(Dn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),vt(),bt(),gt(),Se())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.StreamCipher,f=n.algo,c=[],x=[],a=[],h=f.RabbitLegacy=o.extend({_doReset:function(){var u=this._key.words,l=this.cfg.iv,m=this._X=[u[0],u[3]<<16|u[2]>>>16,u[1],u[0]<<16|u[3]>>>16,u[2],u[1]<<16|u[0]>>>16,u[3],u[2]<<16|u[1]>>>16],p=this._C=[u[2]<<16|u[2]>>>16,u[0]&4294901760|u[1]&65535,u[3]<<16|u[3]>>>16,u[1]&4294901760|u[2]&65535,u[0]<<16|u[0]>>>16,u[2]&4294901760|u[3]&65535,u[1]<<16|u[1]>>>16,u[3]&4294901760|u[0]&65535];this._b=0;for(var y=0;y<4;y++)d.call(this);for(var y=0;y<8;y++)p[y]^=m[y+4&7];if(l){var F=l.words,B=F[0],v=F[1],b=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,E=(v<<8|v>>>24)&16711935|(v<<24|v>>>8)&4278255360,A=b>>>16|E&4294901760,_=E<<16|b&65535;p[0]^=b,p[1]^=A,p[2]^=E,p[3]^=_,p[4]^=b,p[5]^=A,p[6]^=E,p[7]^=_;for(var y=0;y<4;y++)d.call(this)}},_doProcessBlock:function(u,l){var m=this._X;d.call(this),c[0]=m[0]^m[5]>>>16^m[3]<<16,c[1]=m[2]^m[7]>>>16^m[5]<<16,c[2]=m[4]^m[1]>>>16^m[7]<<16,c[3]=m[6]^m[3]>>>16^m[1]<<16;for(var p=0;p<4;p++)c[p]=(c[p]<<8|c[p]>>>24)&16711935|(c[p]<<24|c[p]>>>8)&4278255360,u[l+p]^=c[p]},blockSize:128/32,ivSize:64/32});function d(){for(var u=this._X,l=this._C,m=0;m<8;m++)x[m]=l[m];l[0]=l[0]+1295307597+this._b|0,l[1]=l[1]+3545052371+(l[0]>>>0<x[0]>>>0?1:0)|0,l[2]=l[2]+886263092+(l[1]>>>0<x[1]>>>0?1:0)|0,l[3]=l[3]+1295307597+(l[2]>>>0<x[2]>>>0?1:0)|0,l[4]=l[4]+3545052371+(l[3]>>>0<x[3]>>>0?1:0)|0,l[5]=l[5]+886263092+(l[4]>>>0<x[4]>>>0?1:0)|0,l[6]=l[6]+1295307597+(l[5]>>>0<x[5]>>>0?1:0)|0,l[7]=l[7]+3545052371+(l[6]>>>0<x[6]>>>0?1:0)|0,this._b=l[7]>>>0<x[7]>>>0?1:0;for(var m=0;m<8;m++){var p=u[m]+l[m],y=p&65535,F=p>>>16,B=((y*y>>>17)+y*F>>>15)+F*F,v=((p&4294901760)*p|0)+((p&65535)*p|0);a[m]=B^v}u[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,u[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,u[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,u[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,u[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,u[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,u[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,u[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}n.RabbitLegacy=o._createHelper(h)}(),t.RabbitLegacy})}(e0)),e0.exports}var t0={exports:{}},kn;function io(){return kn||(kn=1,function(r,e){(function(t,n,i){r.exports=n(pe(),vt(),bt(),gt(),Se())})(ce,function(t){return function(){var n=t,i=n.lib,o=i.BlockCipher,f=n.algo;const c=16,x=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],a=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var h={pbox:[],sbox:[]};function d(y,F){let B=F>>24&255,v=F>>16&255,b=F>>8&255,E=F&255,A=y.sbox[0][B]+y.sbox[1][v];return A=A^y.sbox[2][b],A=A+y.sbox[3][E],A}function u(y,F,B){let v=F,b=B,E;for(let A=0;A<c;++A)v=v^y.pbox[A],b=d(y,v)^b,E=v,v=b,b=E;return E=v,v=b,b=E,b=b^y.pbox[c],v=v^y.pbox[c+1],{left:v,right:b}}function l(y,F,B){let v=F,b=B,E;for(let A=c+1;A>1;--A)v=v^y.pbox[A],b=d(y,v)^b,E=v,v=b,b=E;return E=v,v=b,b=E,b=b^y.pbox[1],v=v^y.pbox[0],{left:v,right:b}}function m(y,F,B){for(let _=0;_<4;_++){y.sbox[_]=[];for(let S=0;S<256;S++)y.sbox[_][S]=a[_][S]}let v=0;for(let _=0;_<c+2;_++)y.pbox[_]=x[_]^F[v],v++,v>=B&&(v=0);let b=0,E=0,A=0;for(let _=0;_<c+2;_+=2)A=u(y,b,E),b=A.left,E=A.right,y.pbox[_]=b,y.pbox[_+1]=E;for(let _=0;_<4;_++)for(let S=0;S<256;S+=2)A=u(y,b,E),b=A.left,E=A.right,y.sbox[_][S]=b,y.sbox[_][S+1]=E;return!0}var p=f.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var y=this._keyPriorReset=this._key,F=y.words,B=y.sigBytes/4;m(h,F,B)}},encryptBlock:function(y,F){var B=u(h,y[F],y[F+1]);y[F]=B.left,y[F+1]=B.right},decryptBlock:function(y,F){var B=l(h,y[F],y[F+1]);y[F]=B.left,y[F+1]=B.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=o._createHelper(p)}(),t.Blowfish})}(t0)),t0.exports}(function(r,e){(function(t,n,i){r.exports=n(pe(),Gt(),Ii(),Pi(),vt(),Vi(),bt(),Z0(),kr(),$i(),tn(),Mi(),zi(),Hi(),Or(),qi(),gt(),Se(),Ui(),Wi(),Yi(),Ki(),pn(),Gi(),ji(),Xi(),Zi(),Qi(),Ji(),_n(),eo(),to(),ro(),no(),io())})(ce,function(t){return t})})(Li);var oo={exports:{}};(function(r,e){(function(t,n){r.exports=n()})(ce,function(){var t=1e3,n=6e4,i=36e5,o="millisecond",f="second",c="minute",x="hour",a="day",h="week",d="month",u="quarter",l="year",m="date",p="Invalid Date",y=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,B={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(U){var M=["th","st","nd","rd"],P=U%100;return"["+U+(M[(P-20)%10]||M[P]||M[0])+"]"}},v=function(U,M,P){var X=String(U);return!X||X.length>=M?U:""+Array(M+1-X.length).join(P)+U},b={s:v,z:function(U){var M=-U.utcOffset(),P=Math.abs(M),X=Math.floor(P/60),G=P%60;return(M<=0?"+":"-")+v(X,2,"0")+":"+v(G,2,"0")},m:function U(M,P){if(M.date()<P.date())return-U(P,M);var X=12*(P.year()-M.year())+(P.month()-M.month()),G=M.clone().add(X,d),ee=P-G<0,re=M.clone().add(X+(ee?-1:1),d);return+(-(X+(P-G)/(ee?G-re:re-G))||0)},a:function(U){return U<0?Math.ceil(U)||0:Math.floor(U)},p:function(U){return{M:d,y:l,w:h,d:a,D:m,h:x,m:c,s:f,ms:o,Q:u}[U]||String(U||"").toLowerCase().replace(/s$/,"")},u:function(U){return U===void 0}},E="en",A={};A[E]=B;var _="$isDayjsObject",S=function(U){return U instanceof O||!(!U||!U[_])},$=function U(M,P,X){var G;if(!M)return E;if(typeof M=="string"){var ee=M.toLowerCase();A[ee]&&(G=ee),P&&(A[ee]=P,G=ee);var re=M.split("-");if(!G&&re.length>1)return U(re[0])}else{var I=M.name;A[I]=M,G=I}return!X&&G&&(E=G),G||!X&&E},w=function(U,M){if(S(U))return U.clone();var P=typeof M=="object"?M:{};return P.date=U,P.args=arguments,new O(P)},D=b;D.l=$,D.i=S,D.w=function(U,M){return w(U,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var O=function(){function U(P){this.$L=$(P.locale,null,!0),this.parse(P),this.$x=this.$x||P.x||{},this[_]=!0}var M=U.prototype;return M.parse=function(P){this.$d=function(X){var G=X.date,ee=X.utc;if(G===null)return new Date(NaN);if(D.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var re=G.match(y);if(re){var I=re[2]-1||0,q=(re[7]||"0").substring(0,3);return ee?new Date(Date.UTC(re[1],I,re[3]||1,re[4]||0,re[5]||0,re[6]||0,q)):new Date(re[1],I,re[3]||1,re[4]||0,re[5]||0,re[6]||0,q)}}return new Date(G)}(P),this.init()},M.init=function(){var P=this.$d;this.$y=P.getFullYear(),this.$M=P.getMonth(),this.$D=P.getDate(),this.$W=P.getDay(),this.$H=P.getHours(),this.$m=P.getMinutes(),this.$s=P.getSeconds(),this.$ms=P.getMilliseconds()},M.$utils=function(){return D},M.isValid=function(){return this.$d.toString()!==p},M.isSame=function(P,X){var G=w(P);return this.startOf(X)<=G&&G<=this.endOf(X)},M.isAfter=function(P,X){return w(P)<this.startOf(X)},M.isBefore=function(P,X){return this.endOf(X)<w(P)},M.$g=function(P,X,G){return D.u(P)?this[X]:this.set(G,P)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(P,X){var G=this,ee=!!D.u(X)||X,re=D.p(P),I=function(Ie,Be){var Me=D.w(G.$u?Date.UTC(G.$y,Be,Ie):new Date(G.$y,Be,Ie),G);return ee?Me:Me.endOf(a)},q=function(Ie,Be){return D.w(G.toDate()[Ie].apply(G.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(Be)),G)},W=this.$W,H=this.$M,ue=this.$D,de="set"+(this.$u?"UTC":"");switch(re){case l:return ee?I(1,0):I(31,11);case d:return ee?I(1,H):I(0,H+1);case h:var Ee=this.$locale().weekStart||0,ae=(W<Ee?W+7:W)-Ee;return I(ee?ue-ae:ue+(6-ae),H);case a:case m:return q(de+"Hours",0);case x:return q(de+"Minutes",1);case c:return q(de+"Seconds",2);case f:return q(de+"Milliseconds",3);default:return this.clone()}},M.endOf=function(P){return this.startOf(P,!1)},M.$set=function(P,X){var G,ee=D.p(P),re="set"+(this.$u?"UTC":""),I=(G={},G[a]=re+"Date",G[m]=re+"Date",G[d]=re+"Month",G[l]=re+"FullYear",G[x]=re+"Hours",G[c]=re+"Minutes",G[f]=re+"Seconds",G[o]=re+"Milliseconds",G)[ee],q=ee===a?this.$D+(X-this.$W):X;if(ee===d||ee===l){var W=this.clone().set(m,1);W.$d[I](q),W.init(),this.$d=W.set(m,Math.min(this.$D,W.daysInMonth())).$d}else I&&this.$d[I](q);return this.init(),this},M.set=function(P,X){return this.clone().$set(P,X)},M.get=function(P){return this[D.p(P)]()},M.add=function(P,X){var G,ee=this;P=Number(P);var re=D.p(X),I=function(H){var ue=w(ee);return D.w(ue.date(ue.date()+Math.round(H*P)),ee)};if(re===d)return this.set(d,this.$M+P);if(re===l)return this.set(l,this.$y+P);if(re===a)return I(1);if(re===h)return I(7);var q=(G={},G[c]=n,G[x]=i,G[f]=t,G)[re]||1,W=this.$d.getTime()+P*q;return D.w(W,this)},M.subtract=function(P,X){return this.add(-1*P,X)},M.format=function(P){var X=this,G=this.$locale();if(!this.isValid())return G.invalidDate||p;var ee=P||"YYYY-MM-DDTHH:mm:ssZ",re=D.z(this),I=this.$H,q=this.$m,W=this.$M,H=G.weekdays,ue=G.months,de=G.meridiem,Ee=function(Be,Me,ze,De){return Be&&(Be[Me]||Be(X,ee))||ze[Me].slice(0,De)},ae=function(Be){return D.s(I%12||12,Be,"0")},Ie=de||function(Be,Me,ze){var De=Be<12?"AM":"PM";return ze?De.toLowerCase():De};return ee.replace(F,function(Be,Me){return Me||function(ze){switch(ze){case"YY":return String(X.$y).slice(-2);case"YYYY":return D.s(X.$y,4,"0");case"M":return W+1;case"MM":return D.s(W+1,2,"0");case"MMM":return Ee(G.monthsShort,W,ue,3);case"MMMM":return Ee(ue,W);case"D":return X.$D;case"DD":return D.s(X.$D,2,"0");case"d":return String(X.$W);case"dd":return Ee(G.weekdaysMin,X.$W,H,2);case"ddd":return Ee(G.weekdaysShort,X.$W,H,3);case"dddd":return H[X.$W];case"H":return String(I);case"HH":return D.s(I,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return Ie(I,q,!0);case"A":return Ie(I,q,!1);case"m":return String(q);case"mm":return D.s(q,2,"0");case"s":return String(X.$s);case"ss":return D.s(X.$s,2,"0");case"SSS":return D.s(X.$ms,3,"0");case"Z":return re}return null}(Be)||re.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(P,X,G){var ee,re=this,I=D.p(X),q=w(P),W=(q.utcOffset()-this.utcOffset())*n,H=this-q,ue=function(){return D.m(re,q)};switch(I){case l:ee=ue()/12;break;case d:ee=ue();break;case u:ee=ue()/3;break;case h:ee=(H-W)/6048e5;break;case a:ee=(H-W)/864e5;break;case x:ee=H/i;break;case c:ee=H/n;break;case f:ee=H/t;break;default:ee=H}return G?ee:D.a(ee)},M.daysInMonth=function(){return this.endOf(d).$D},M.$locale=function(){return A[this.$L]},M.locale=function(P,X){if(!P)return this.$L;var G=this.clone(),ee=$(P,X,!0);return ee&&(G.$L=ee),G},M.clone=function(){return D.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},U}(),z=O.prototype;return w.prototype=z,[["$ms",o],["$s",f],["$m",c],["$H",x],["$W",a],["$M",d],["$y",l],["$D",m]].forEach(function(U){z[U[1]]=function(M){return this.$g(M,U[0],U[1])}}),w.extend=function(U,M){return U.$i||(U(M,O,w),U.$i=!0),w},w.locale=$,w.isDayjs=S,w.unix=function(U){return w(1e3*U)},w.en=A[E],w.Ls=A,w.p={},w})})(oo);var Fn=function(){if(typeof Map<"u")return Map;function r(e,t){var n=-1;return e.some(function(i,o){return i[0]===t?(n=o,!0):!1}),n}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var n=r(this.__entries__,t),i=this.__entries__[n];return i&&i[1]},e.prototype.set=function(t,n){var i=r(this.__entries__,t);~i?this.__entries__[i][1]=n:this.__entries__.push([t,n])},e.prototype.delete=function(t){var n=this.__entries__,i=r(n,t);~i&&n.splice(i,1)},e.prototype.has=function(t){return!!~r(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,n){n===void 0&&(n=null);for(var i=0,o=this.__entries__;i<o.length;i++){var f=o[i];t.call(n,f[1],f[0])}},e}()}(),r0=typeof window<"u"&&typeof document<"u"&&window.document===document,jt=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),so=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(jt):function(r){return setTimeout(function(){return r(Date.now())},1e3/60)}}(),ao=2;function co(r,e){var t=!1,n=!1,i=0;function o(){t&&(t=!1,r()),n&&c()}function f(){so(o)}function c(){var x=Date.now();if(t){if(x-i<ao)return;n=!0}else t=!0,n=!1,setTimeout(f,e);i=x}return c}var fo=20,lo=["top","right","bottom","left","width","height","size","weight"],uo=typeof MutationObserver<"u",ho=function(){function r(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=co(this.refresh.bind(this),fo)}return r.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},r.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},r.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},r.prototype.updateObservers_=function(){var e=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return e.forEach(function(t){return t.broadcastActive()}),e.length>0},r.prototype.connect_=function(){!r0||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),uo?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},r.prototype.disconnect_=function(){!r0||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},r.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=t===void 0?"":t,i=lo.some(function(o){return!!~n.indexOf(o)});i&&this.refresh()},r.getInstance=function(){return this.instance_||(this.instance_=new r),this.instance_},r.instance_=null,r}(),Sn=function(r,e){for(var t=0,n=Object.keys(e);t<n.length;t++){var i=n[t];Object.defineProperty(r,i,{value:e[i],enumerable:!1,writable:!1,configurable:!0})}return r},Dt=function(r){var e=r&&r.ownerDocument&&r.ownerDocument.defaultView;return e||jt},Nn=Zt(0,0,0,0);function Xt(r){return parseFloat(r)||0}function Tn(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return e.reduce(function(n,i){var o=r["border-"+i+"-width"];return n+Xt(o)},0)}function xo(r){for(var e=["top","right","bottom","left"],t={},n=0,i=e;n<i.length;n++){var o=i[n],f=r["padding-"+o];t[o]=Xt(f)}return t}function po(r){var e=r.getBBox();return Zt(0,0,e.width,e.height)}function vo(r){var e=r.clientWidth,t=r.clientHeight;if(!e&&!t)return Nn;var n=Dt(r).getComputedStyle(r),i=xo(n),o=i.left+i.right,f=i.top+i.bottom,c=Xt(n.width),x=Xt(n.height);if(n.boxSizing==="border-box"&&(Math.round(c+o)!==e&&(c-=Tn(n,"left","right")+o),Math.round(x+f)!==t&&(x-=Tn(n,"top","bottom")+f)),!go(r)){var a=Math.round(c+o)-e,h=Math.round(x+f)-t;Math.abs(a)!==1&&(c-=a),Math.abs(h)!==1&&(x-=h)}return Zt(i.left,i.top,c,x)}var bo=function(){return typeof SVGGraphicsElement<"u"?function(r){return r instanceof Dt(r).SVGGraphicsElement}:function(r){return r instanceof Dt(r).SVGElement&&typeof r.getBBox=="function"}}();function go(r){return r===Dt(r).document.documentElement}function mo(r){return r0?bo(r)?po(r):vo(r):Nn}function yo(r){var e=r.x,t=r.y,n=r.width,i=r.height,o=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,f=Object.create(o.prototype);return Sn(f,{x:e,y:t,width:n,height:i,top:t,right:e+n,bottom:i+t,left:e}),f}function Zt(r,e,t,n){return{x:r,y:e,width:t,height:n}}var Eo=function(){function r(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Zt(0,0,0,0),this.target=e}return r.prototype.isActive=function(){var e=mo(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},r.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},r}(),Bo=function(){function r(e,t){var n=yo(t);Sn(this,{target:e,contentRect:n})}return r}(),_o=function(){function r(e,t,n){if(this.activeObservations_=[],this.observations_=new Fn,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=n}return r.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Dt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new Eo(e)),this.controller_.addObserver(this),this.controller_.refresh())}},r.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof Dt(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},r.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},r.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},r.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(n){return new Bo(n.target,n.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},r.prototype.clearActive=function(){this.activeObservations_.splice(0)},r.prototype.hasActive=function(){return this.activeObservations_.length>0},r}(),Rn=typeof WeakMap<"u"?new WeakMap:new Fn,Ln=function(){function r(e){if(!(this instanceof r))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=ho.getInstance(),n=new _o(e,t,this);Rn.set(this,n)}return r}();["observe","unobserve","disconnect"].forEach(function(r){Ln.prototype[r]=function(){var e;return(e=Rn.get(this))[r].apply(e,arguments)}}),function(){return typeof jt.ResizeObserver<"u"?jt.ResizeObserver:Ln}(),_n(),vt();var Co={exports:{}};(function(r,e){(function(t,n){r.exports=n(pe())})(ce,function(t){return t.enc.Utf8})})(Co),bt(),pn();var Ao={exports:{}};(function(r,e){(function(t,n,i){r.exports=n(pe(),Se())})(ce,function(t){return t.pad.Pkcs7})})(Ao);function wo(r){var e=[],t="";for(t in r)e.push(t);return e}function n0(r){return r=JSON.stringify(r),!(typeof r!="string"||!/^\{[\s\S]*\}$/.test(r))}function Do(r){return r instanceof Array}function ko(r){return Array.prototype.slice.call(r)}function kt(){if(!(this instanceof kt))return new kt}kt.prototype={get:function(r){for(var e=r+"=",t=document.cookie.split(";"),n=0;n<t.length;n++){for(var i=t[n];i.charAt(0)==" ";)i=i.substring(1,i.length);if(i.indexOf(e)==0)return decodeURI(i.substring(e.length,i.length))}return!1},set:function(r,e,t){if(n0(r))for(const n in r)this.set(n,r[n],e,t);else if(typeof r=="string"){const n=n0(t)?t:{expires:t},i=n.path!==void 0?`;path=${n.path};path=/`:";path=/",o=n.domain?`;domain=${n.domain}`:"",f=n.secure?";secure":"";let c=n.expires!==void 0?n.expires:"";typeof c=="string"&&c!==""?c=new Date(c):typeof c=="number"&&(c=new Date(+new Date+1e3*60*60*24*c)),c!==""&&"toGMTString"in c&&(c=`;expires=${c.toGMTString()}`);const x=n.sameSite?`;SameSite=${n.sameSite}`:"";document.cookie=`${r}=${encodeURI(e)+c+i+o+f+x}`}},remove:function(r){r=Do(r)?r:ko(arguments);for(var e=0,t=r.length;e<t;e++)this.set(r[e],"",-1);return r},clear:function(r){return r?this.remove(r):this.remove(wo(this.all()))},all:function(){if(document.cookie==="")return{};for(var r=document.cookie.split("; "),e={},t=0,n=r.length;t<n;t++){var i=r[t].split("=");e[decodeURI(i[0])]=decodeURI(i[1])}return e}};let At=null;const On=function(r,e,t){const n=arguments;if(At||(At=kt()),n.length===0)return At.all();if(n.length===1&&r===null)return At.clear();if(n.length===2&&!e)return At.clear(r);if(typeof r=="string"&&!e)return At.get(r);if(typeof r=="string"&&e||n0(r))return At.set(r,e,t)};for(const r in kt.prototype)On[r]=kt.prototype[r];var In={exports:{}};/*!
15
+ localForage -- Offline Storage, Improved
16
+ Version 1.10.0
17
+ https://localforage.github.io/localForage
18
+ (c) 2013-2017 Mozilla, Apache License 2.0
19
+ */(function(r,e){(function(t){r.exports=t()})(function(){return function t(n,i,o){function f(a,h){if(!i[a]){if(!n[a]){var d=typeof It=="function"&&It;if(!h&&d)return d(a,!0);if(c)return c(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var l=i[a]={exports:{}};n[a][0].call(l.exports,function(m){var p=n[a][1][m];return f(p||m)},l,l.exports,t,n,i,o)}return i[a].exports}for(var c=typeof It=="function"&&It,x=0;x<o.length;x++)f(o[x]);return f}({1:[function(t,n,i){(function(o){var f=o.MutationObserver||o.WebKitMutationObserver,c;if(f){var x=0,a=new f(m),h=o.document.createTextNode("");a.observe(h,{characterData:!0}),c=function(){h.data=x=++x%2}}else if(!o.setImmediate&&typeof o.MessageChannel<"u"){var d=new o.MessageChannel;d.port1.onmessage=m,c=function(){d.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?c=function(){var y=o.document.createElement("script");y.onreadystatechange=function(){m(),y.onreadystatechange=null,y.parentNode.removeChild(y),y=null},o.document.documentElement.appendChild(y)}:c=function(){setTimeout(m,0)};var u,l=[];function m(){u=!0;for(var y,F,B=l.length;B;){for(F=l,l=[],y=-1;++y<B;)F[y]();B=l.length}u=!1}n.exports=p;function p(y){l.push(y)===1&&!u&&c()}}).call(this,typeof ce<"u"?ce:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(t,n,i){var o=t(1);function f(){}var c={},x=["REJECTED"],a=["FULFILLED"],h=["PENDING"];n.exports=d;function d(E){if(typeof E!="function")throw new TypeError("resolver must be a function");this.state=h,this.queue=[],this.outcome=void 0,E!==f&&p(this,E)}d.prototype.catch=function(E){return this.then(null,E)},d.prototype.then=function(E,A){if(typeof E!="function"&&this.state===a||typeof A!="function"&&this.state===x)return this;var _=new this.constructor(f);if(this.state!==h){var S=this.state===a?E:A;l(_,S,this.outcome)}else this.queue.push(new u(_,E,A));return _};function u(E,A,_){this.promise=E,typeof A=="function"&&(this.onFulfilled=A,this.callFulfilled=this.otherCallFulfilled),typeof _=="function"&&(this.onRejected=_,this.callRejected=this.otherCallRejected)}u.prototype.callFulfilled=function(E){c.resolve(this.promise,E)},u.prototype.otherCallFulfilled=function(E){l(this.promise,this.onFulfilled,E)},u.prototype.callRejected=function(E){c.reject(this.promise,E)},u.prototype.otherCallRejected=function(E){l(this.promise,this.onRejected,E)};function l(E,A,_){o(function(){var S;try{S=A(_)}catch($){return c.reject(E,$)}S===E?c.reject(E,new TypeError("Cannot resolve promise with itself")):c.resolve(E,S)})}c.resolve=function(E,A){var _=y(m,A);if(_.status==="error")return c.reject(E,_.value);var S=_.value;if(S)p(E,S);else{E.state=a,E.outcome=A;for(var $=-1,w=E.queue.length;++$<w;)E.queue[$].callFulfilled(A)}return E},c.reject=function(E,A){E.state=x,E.outcome=A;for(var _=-1,S=E.queue.length;++_<S;)E.queue[_].callRejected(A);return E};function m(E){var A=E&&E.then;if(E&&(typeof E=="object"||typeof E=="function")&&typeof A=="function")return function(){A.apply(E,arguments)}}function p(E,A){var _=!1;function S(O){_||(_=!0,c.reject(E,O))}function $(O){_||(_=!0,c.resolve(E,O))}function w(){A($,S)}var D=y(w);D.status==="error"&&S(D.value)}function y(E,A){var _={};try{_.value=E(A),_.status="success"}catch(S){_.status="error",_.value=S}return _}d.resolve=F;function F(E){return E instanceof this?E:c.resolve(new this(f),E)}d.reject=B;function B(E){var A=new this(f);return c.reject(A,E)}d.all=v;function v(E){var A=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=E.length,S=!1;if(!_)return this.resolve([]);for(var $=new Array(_),w=0,D=-1,O=new this(f);++D<_;)z(E[D],D);return O;function z(U,M){A.resolve(U).then(P,function(X){S||(S=!0,c.reject(O,X))});function P(X){$[M]=X,++w===_&&!S&&(S=!0,c.resolve(O,$))}}}d.race=b;function b(E){var A=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var _=E.length,S=!1;if(!_)return this.resolve([]);for(var $=-1,w=new this(f);++$<_;)D(E[$]);return w;function D(O){A.resolve(O).then(function(z){S||(S=!0,c.resolve(w,z))},function(z){S||(S=!0,c.reject(w,z))})}}},{1:1}],3:[function(t,n,i){(function(o){typeof o.Promise!="function"&&(o.Promise=t(2))}).call(this,typeof ce<"u"?ce:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(t,n,i){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(g){return typeof g}:function(g){return g&&typeof Symbol=="function"&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g};function f(g,k){if(!(g instanceof k))throw new TypeError("Cannot call a class as a function")}function c(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var x=c();function a(){try{if(!x||!x.open)return!1;var g=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),k=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!g||k)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function h(g,k){g=g||[],k=k||{};try{return new Blob(g,k)}catch(N){if(N.name!=="TypeError")throw N;for(var C=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,T=new C,R=0;R<g.length;R+=1)T.append(g[R]);return T.getBlob(k.type)}}typeof Promise>"u"&&t(3);var d=Promise;function u(g,k){k&&g.then(function(C){k(null,C)},function(C){k(C)})}function l(g,k,C){typeof k=="function"&&g.then(k),typeof C=="function"&&g.catch(C)}function m(g){return typeof g!="string"&&(console.warn(g+" used as a key, but it is not a string."),g=String(g)),g}function p(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var y="local-forage-detect-blob-support",F=void 0,B={},v=Object.prototype.toString,b="readonly",E="readwrite";function A(g){for(var k=g.length,C=new ArrayBuffer(k),T=new Uint8Array(C),R=0;R<k;R++)T[R]=g.charCodeAt(R);return C}function _(g){return new d(function(k){var C=g.transaction(y,E),T=h([""]);C.objectStore(y).put(T,"key"),C.onabort=function(R){R.preventDefault(),R.stopPropagation(),k(!1)},C.oncomplete=function(){var R=navigator.userAgent.match(/Chrome\/(\d+)/),N=navigator.userAgent.match(/Edge\//);k(N||!R||parseInt(R[1],10)>=43)}}).catch(function(){return!1})}function S(g){return typeof F=="boolean"?d.resolve(F):_(g).then(function(k){return F=k,F})}function $(g){var k=B[g.name],C={};C.promise=new d(function(T,R){C.resolve=T,C.reject=R}),k.deferredOperations.push(C),k.dbReady?k.dbReady=k.dbReady.then(function(){return C.promise}):k.dbReady=C.promise}function w(g){var k=B[g.name],C=k.deferredOperations.pop();if(C)return C.resolve(),C.promise}function D(g,k){var C=B[g.name],T=C.deferredOperations.pop();if(T)return T.reject(k),T.promise}function O(g,k){return new d(function(C,T){if(B[g.name]=B[g.name]||q(),g.db)if(k)$(g),g.db.close();else return C(g.db);var R=[g.name];k&&R.push(g.version);var N=x.open.apply(x,R);k&&(N.onupgradeneeded=function(Y){var j=N.result;try{j.createObjectStore(g.storeName),Y.oldVersion<=1&&j.createObjectStore(y)}catch(Q){if(Q.name==="ConstraintError")console.warn('The database "'+g.name+'" has been upgraded from version '+Y.oldVersion+" to version "+Y.newVersion+', but the storage "'+g.storeName+'" already exists.');else throw Q}}),N.onerror=function(Y){Y.preventDefault(),T(N.error)},N.onsuccess=function(){var Y=N.result;Y.onversionchange=function(j){j.target.close()},C(Y),w(g)}})}function z(g){return O(g,!1)}function U(g){return O(g,!0)}function M(g,k){if(!g.db)return!0;var C=!g.db.objectStoreNames.contains(g.storeName),T=g.version<g.db.version,R=g.version>g.db.version;if(T&&(g.version!==k&&console.warn('The database "'+g.name+`" can't be downgraded from version `+g.db.version+" to version "+g.version+"."),g.version=g.db.version),R||C){if(C){var N=g.db.version+1;N>g.version&&(g.version=N)}return!0}return!1}function P(g){return new d(function(k,C){var T=new FileReader;T.onerror=C,T.onloadend=function(R){var N=btoa(R.target.result||"");k({__local_forage_encoded_blob:!0,data:N,type:g.type})},T.readAsBinaryString(g)})}function X(g){var k=A(atob(g.data));return h([k],{type:g.type})}function G(g){return g&&g.__local_forage_encoded_blob}function ee(g){var k=this,C=k._initReady().then(function(){var T=B[k._dbInfo.name];if(T&&T.dbReady)return T.dbReady});return l(C,g,g),C}function re(g){$(g);for(var k=B[g.name],C=k.forages,T=0;T<C.length;T++){var R=C[T];R._dbInfo.db&&(R._dbInfo.db.close(),R._dbInfo.db=null)}return g.db=null,z(g).then(function(N){return g.db=N,M(g)?U(g):N}).then(function(N){g.db=k.db=N;for(var Y=0;Y<C.length;Y++)C[Y]._dbInfo.db=N}).catch(function(N){throw D(g,N),N})}function I(g,k,C,T){T===void 0&&(T=1);try{var R=g.db.transaction(g.storeName,k);C(null,R)}catch(N){if(T>0&&(!g.db||N.name==="InvalidStateError"||N.name==="NotFoundError"))return d.resolve().then(function(){if(!g.db||N.name==="NotFoundError"&&!g.db.objectStoreNames.contains(g.storeName)&&g.version<=g.db.version)return g.db&&(g.version=g.db.version+1),U(g)}).then(function(){return re(g).then(function(){I(g,k,C,T-1)})}).catch(C);C(N)}}function q(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function W(g){var k=this,C={db:null};if(g)for(var T in g)C[T]=g[T];var R=B[C.name];R||(R=q(),B[C.name]=R),R.forages.push(k),k._initReady||(k._initReady=k.ready,k.ready=ee);var N=[];function Y(){return d.resolve()}for(var j=0;j<R.forages.length;j++){var Q=R.forages[j];Q!==k&&N.push(Q._initReady().catch(Y))}var J=R.forages.slice(0);return d.all(N).then(function(){return C.db=R.db,z(C)}).then(function(te){return C.db=te,M(C,k._defaultConfig.version)?U(C):te}).then(function(te){C.db=R.db=te,k._dbInfo=C;for(var ie=0;ie<J.length;ie++){var he=J[ie];he!==k&&(he._dbInfo.db=C.db,he._dbInfo.version=C.version)}})}function H(g,k){var C=this;g=m(g);var T=new d(function(R,N){C.ready().then(function(){I(C._dbInfo,b,function(Y,j){if(Y)return N(Y);try{var Q=j.objectStore(C._dbInfo.storeName),J=Q.get(g);J.onsuccess=function(){var te=J.result;te===void 0&&(te=null),G(te)&&(te=X(te)),R(te)},J.onerror=function(){N(J.error)}}catch(te){N(te)}})}).catch(N)});return u(T,k),T}function ue(g,k){var C=this,T=new d(function(R,N){C.ready().then(function(){I(C._dbInfo,b,function(Y,j){if(Y)return N(Y);try{var Q=j.objectStore(C._dbInfo.storeName),J=Q.openCursor(),te=1;J.onsuccess=function(){var ie=J.result;if(ie){var he=ie.value;G(he)&&(he=X(he));var ge=g(he,ie.key,te++);ge!==void 0?R(ge):ie.continue()}else R()},J.onerror=function(){N(J.error)}}catch(ie){N(ie)}})}).catch(N)});return u(T,k),T}function de(g,k,C){var T=this;g=m(g);var R=new d(function(N,Y){var j;T.ready().then(function(){return j=T._dbInfo,v.call(k)==="[object Blob]"?S(j.db).then(function(Q){return Q?k:P(k)}):k}).then(function(Q){I(T._dbInfo,E,function(J,te){if(J)return Y(J);try{var ie=te.objectStore(T._dbInfo.storeName);Q===null&&(Q=void 0);var he=ie.put(Q,g);te.oncomplete=function(){Q===void 0&&(Q=null),N(Q)},te.onabort=te.onerror=function(){var ge=he.error?he.error:he.transaction.error;Y(ge)}}catch(ge){Y(ge)}})}).catch(Y)});return u(R,C),R}function Ee(g,k){var C=this;g=m(g);var T=new d(function(R,N){C.ready().then(function(){I(C._dbInfo,E,function(Y,j){if(Y)return N(Y);try{var Q=j.objectStore(C._dbInfo.storeName),J=Q.delete(g);j.oncomplete=function(){R()},j.onerror=function(){N(J.error)},j.onabort=function(){var te=J.error?J.error:J.transaction.error;N(te)}}catch(te){N(te)}})}).catch(N)});return u(T,k),T}function ae(g){var k=this,C=new d(function(T,R){k.ready().then(function(){I(k._dbInfo,E,function(N,Y){if(N)return R(N);try{var j=Y.objectStore(k._dbInfo.storeName),Q=j.clear();Y.oncomplete=function(){T()},Y.onabort=Y.onerror=function(){var J=Q.error?Q.error:Q.transaction.error;R(J)}}catch(J){R(J)}})}).catch(R)});return u(C,g),C}function Ie(g){var k=this,C=new d(function(T,R){k.ready().then(function(){I(k._dbInfo,b,function(N,Y){if(N)return R(N);try{var j=Y.objectStore(k._dbInfo.storeName),Q=j.count();Q.onsuccess=function(){T(Q.result)},Q.onerror=function(){R(Q.error)}}catch(J){R(J)}})}).catch(R)});return u(C,g),C}function Be(g,k){var C=this,T=new d(function(R,N){if(g<0){R(null);return}C.ready().then(function(){I(C._dbInfo,b,function(Y,j){if(Y)return N(Y);try{var Q=j.objectStore(C._dbInfo.storeName),J=!1,te=Q.openKeyCursor();te.onsuccess=function(){var ie=te.result;if(!ie){R(null);return}g===0||J?R(ie.key):(J=!0,ie.advance(g))},te.onerror=function(){N(te.error)}}catch(ie){N(ie)}})}).catch(N)});return u(T,k),T}function Me(g){var k=this,C=new d(function(T,R){k.ready().then(function(){I(k._dbInfo,b,function(N,Y){if(N)return R(N);try{var j=Y.objectStore(k._dbInfo.storeName),Q=j.openKeyCursor(),J=[];Q.onsuccess=function(){var te=Q.result;if(!te){T(J);return}J.push(te.key),te.continue()},Q.onerror=function(){R(Q.error)}}catch(te){R(te)}})}).catch(R)});return u(C,g),C}function ze(g,k){k=p.apply(this,arguments);var C=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||C.name,g.storeName=g.storeName||C.storeName);var T=this,R;if(!g.name)R=d.reject("Invalid arguments");else{var N=g.name===C.name&&T._dbInfo.db,Y=N?d.resolve(T._dbInfo.db):z(g).then(function(j){var Q=B[g.name],J=Q.forages;Q.db=j;for(var te=0;te<J.length;te++)J[te]._dbInfo.db=j;return j});g.storeName?R=Y.then(function(j){if(j.objectStoreNames.contains(g.storeName)){var Q=j.version+1;$(g);var J=B[g.name],te=J.forages;j.close();for(var ie=0;ie<te.length;ie++){var he=te[ie];he._dbInfo.db=null,he._dbInfo.version=Q}var ge=new d(function(me,Fe){var Ae=x.open(g.name,Q);Ae.onerror=function(Ze){var Kt=Ae.result;Kt.close(),Fe(Ze)},Ae.onupgradeneeded=function(){var Ze=Ae.result;Ze.deleteObjectStore(g.storeName)},Ae.onsuccess=function(){var Ze=Ae.result;Ze.close(),me(Ze)}});return ge.then(function(me){J.db=me;for(var Fe=0;Fe<te.length;Fe++){var Ae=te[Fe];Ae._dbInfo.db=me,w(Ae._dbInfo)}}).catch(function(me){throw(D(g,me)||d.resolve()).catch(function(){}),me})}}):R=Y.then(function(j){$(g);var Q=B[g.name],J=Q.forages;j.close();for(var te=0;te<J.length;te++){var ie=J[te];ie._dbInfo.db=null}var he=new d(function(ge,me){var Fe=x.deleteDatabase(g.name);Fe.onerror=function(){var Ae=Fe.result;Ae&&Ae.close(),me(Fe.error)},Fe.onblocked=function(){console.warn('dropInstance blocked for database "'+g.name+'" until all open connections are closed')},Fe.onsuccess=function(){var Ae=Fe.result;Ae&&Ae.close(),ge(Ae)}});return he.then(function(ge){Q.db=ge;for(var me=0;me<J.length;me++){var Fe=J[me];w(Fe._dbInfo)}}).catch(function(ge){throw(D(g,ge)||d.resolve()).catch(function(){}),ge})})}return u(R,k),R}var De={_driver:"asyncStorage",_initStorage:W,_support:a(),iterate:ue,getItem:H,setItem:de,removeItem:Ee,clear:ae,length:Ie,key:Be,keys:Me,dropInstance:ze};function ke(){return typeof openDatabase=="function"}var Ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ue="~~local_forage_type~",xt=/^~~local_forage_type~([^~]+)~/,Ke="__lfsc__:",pt=Ke.length,rt="arbf",Le="blob",Te="si08",We="ui08",nt="uic8",wt="si16",Ge="si32",ft="ur16",V="ui32",Z="fl32",L="fl64",ne=pt+rt.length,be=Object.prototype.toString;function Ye(g){var k=g.length*.75,C=g.length,T,R=0,N,Y,j,Q;g[g.length-1]==="="&&(k--,g[g.length-2]==="="&&k--);var J=new ArrayBuffer(k),te=new Uint8Array(J);for(T=0;T<C;T+=4)N=Ce.indexOf(g[T]),Y=Ce.indexOf(g[T+1]),j=Ce.indexOf(g[T+2]),Q=Ce.indexOf(g[T+3]),te[R++]=N<<2|Y>>4,te[R++]=(Y&15)<<4|j>>2,te[R++]=(j&3)<<6|Q&63;return J}function je(g){var k=new Uint8Array(g),C="",T;for(T=0;T<k.length;T+=3)C+=Ce[k[T]>>2],C+=Ce[(k[T]&3)<<4|k[T+1]>>4],C+=Ce[(k[T+1]&15)<<2|k[T+2]>>6],C+=Ce[k[T+2]&63];return k.length%3===2?C=C.substring(0,C.length-1)+"=":k.length%3===1&&(C=C.substring(0,C.length-2)+"=="),C}function lt(g,k){var C="";if(g&&(C=be.call(g)),g&&(C==="[object ArrayBuffer]"||g.buffer&&be.call(g.buffer)==="[object ArrayBuffer]")){var T,R=Ke;g instanceof ArrayBuffer?(T=g,R+=rt):(T=g.buffer,C==="[object Int8Array]"?R+=Te:C==="[object Uint8Array]"?R+=We:C==="[object Uint8ClampedArray]"?R+=nt:C==="[object Int16Array]"?R+=wt:C==="[object Uint16Array]"?R+=ft:C==="[object Int32Array]"?R+=Ge:C==="[object Uint32Array]"?R+=V:C==="[object Float32Array]"?R+=Z:C==="[object Float64Array]"?R+=L:k(new Error("Failed to get type for BinaryArray"))),k(R+je(T))}else if(C==="[object Blob]"){var N=new FileReader;N.onload=function(){var Y=Ue+g.type+"~"+je(this.result);k(Ke+Le+Y)},N.readAsArrayBuffer(g)}else try{k(JSON.stringify(g))}catch(Y){console.error("Couldn't convert value into a JSON string: ",g),k(null,Y)}}function Rt(g){if(g.substring(0,pt)!==Ke)return JSON.parse(g);var k=g.substring(ne),C=g.substring(pt,ne),T;if(C===Le&&xt.test(k)){var R=k.match(xt);T=R[1],k=k.substring(R[0].length)}var N=Ye(k);switch(C){case rt:return N;case Le:return h([N],{type:T});case Te:return new Int8Array(N);case We:return new Uint8Array(N);case nt:return new Uint8ClampedArray(N);case wt:return new Int16Array(N);case ft:return new Uint16Array(N);case Ge:return new Int32Array(N);case V:return new Uint32Array(N);case Z:return new Float32Array(N);case L:return new Float64Array(N);default:throw new Error("Unkown type: "+C)}}var _e={serialize:lt,deserialize:Rt,stringToBuffer:Ye,bufferToString:je};function Pe(g,k,C,T){g.executeSql("CREATE TABLE IF NOT EXISTS "+k.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],C,T)}function F0(g){var k=this,C={db:null};if(g)for(var T in g)C[T]=typeof g[T]!="string"?g[T].toString():g[T];var R=new d(function(N,Y){try{C.db=openDatabase(C.name,String(C.version),C.description,C.size)}catch(j){return Y(j)}C.db.transaction(function(j){Pe(j,C,function(){k._dbInfo=C,N()},function(Q,J){Y(J)})},Y)});return C.serializer=_e,R}function it(g,k,C,T,R,N){g.executeSql(C,T,R,function(Y,j){j.code===j.SYNTAX_ERR?Y.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[k.storeName],function(Q,J){J.rows.length?N(Q,j):Pe(Q,k,function(){Q.executeSql(C,T,R,N)},N)},N):N(Y,j)},N)}function S0(g,k){var C=this;g=m(g);var T=new d(function(R,N){C.ready().then(function(){var Y=C._dbInfo;Y.db.transaction(function(j){it(j,Y,"SELECT * FROM "+Y.storeName+" WHERE key = ? LIMIT 1",[g],function(Q,J){var te=J.rows.length?J.rows.item(0).value:null;te&&(te=Y.serializer.deserialize(te)),R(te)},function(Q,J){N(J)})})}).catch(N)});return u(T,k),T}function hr(g,k){var C=this,T=new d(function(R,N){C.ready().then(function(){var Y=C._dbInfo;Y.db.transaction(function(j){it(j,Y,"SELECT * FROM "+Y.storeName,[],function(Q,J){for(var te=J.rows,ie=te.length,he=0;he<ie;he++){var ge=te.item(he),me=ge.value;if(me&&(me=Y.serializer.deserialize(me)),me=g(me,ge.key,he+1),me!==void 0){R(me);return}}R()},function(Q,J){N(J)})})}).catch(N)});return u(T,k),T}function xr(g,k,C,T){var R=this;g=m(g);var N=new d(function(Y,j){R.ready().then(function(){k===void 0&&(k=null);var Q=k,J=R._dbInfo;J.serializer.serialize(k,function(te,ie){ie?j(ie):J.db.transaction(function(he){it(he,J,"INSERT OR REPLACE INTO "+J.storeName+" (key, value) VALUES (?, ?)",[g,te],function(){Y(Q)},function(ge,me){j(me)})},function(he){if(he.code===he.QUOTA_ERR){if(T>0){Y(xr.apply(R,[g,Q,C,T-1]));return}j(he)}})})}).catch(j)});return u(N,C),N}function N0(g,k,C){return xr.apply(this,[g,k,C,1])}function T0(g,k){var C=this;g=m(g);var T=new d(function(R,N){C.ready().then(function(){var Y=C._dbInfo;Y.db.transaction(function(j){it(j,Y,"DELETE FROM "+Y.storeName+" WHERE key = ?",[g],function(){R()},function(Q,J){N(J)})})}).catch(N)});return u(T,k),T}function pr(g){var k=this,C=new d(function(T,R){k.ready().then(function(){var N=k._dbInfo;N.db.transaction(function(Y){it(Y,N,"DELETE FROM "+N.storeName,[],function(){T()},function(j,Q){R(Q)})})}).catch(R)});return u(C,g),C}function R0(g){var k=this,C=new d(function(T,R){k.ready().then(function(){var N=k._dbInfo;N.db.transaction(function(Y){it(Y,N,"SELECT COUNT(key) as c FROM "+N.storeName,[],function(j,Q){var J=Q.rows.item(0).c;T(J)},function(j,Q){R(Q)})})}).catch(R)});return u(C,g),C}function L0(g,k){var C=this,T=new d(function(R,N){C.ready().then(function(){var Y=C._dbInfo;Y.db.transaction(function(j){it(j,Y,"SELECT key FROM "+Y.storeName+" WHERE id = ? LIMIT 1",[g+1],function(Q,J){var te=J.rows.length?J.rows.item(0).key:null;R(te)},function(Q,J){N(J)})})}).catch(N)});return u(T,k),T}function vr(g){var k=this,C=new d(function(T,R){k.ready().then(function(){var N=k._dbInfo;N.db.transaction(function(Y){it(Y,N,"SELECT key FROM "+N.storeName,[],function(j,Q){for(var J=[],te=0;te<Q.rows.length;te++)J.push(Q.rows.item(te).key);T(J)},function(j,Q){R(Q)})})}).catch(R)});return u(C,g),C}function O0(g){return new d(function(k,C){g.transaction(function(T){T.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(R,N){for(var Y=[],j=0;j<N.rows.length;j++)Y.push(N.rows.item(j).name);k({db:g,storeNames:Y})},function(R,N){C(N)})},function(T){C(T)})})}function br(g,k){k=p.apply(this,arguments);var C=this.config();g=typeof g!="function"&&g||{},g.name||(g.name=g.name||C.name,g.storeName=g.storeName||C.storeName);var T=this,R;return g.name?R=new d(function(N){var Y;g.name===C.name?Y=T._dbInfo.db:Y=openDatabase(g.name,"","",0),g.storeName?N({db:Y,storeNames:[g.storeName]}):N(O0(Y))}).then(function(N){return new d(function(Y,j){N.db.transaction(function(Q){function J(ge){return new d(function(me,Fe){Q.executeSql("DROP TABLE IF EXISTS "+ge,[],function(){me()},function(Ae,Ze){Fe(Ze)})})}for(var te=[],ie=0,he=N.storeNames.length;ie<he;ie++)te.push(J(N.storeNames[ie]));d.all(te).then(function(){Y()}).catch(function(ge){j(ge)})},function(Q){j(Q)})})}):R=d.reject("Invalid arguments"),u(R,k),R}var He={_driver:"webSQLStorage",_initStorage:F0,_support:ke(),iterate:hr,getItem:S0,setItem:N0,removeItem:T0,clear:pr,length:R0,key:L0,keys:vr,dropInstance:br};function ut(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Wt(g,k){var C=g.name+"/";return g.storeName!==k.storeName&&(C+=g.storeName+"/"),C}function I0(){var g="_localforage_support_test";try{return localStorage.setItem(g,!0),localStorage.removeItem(g),!1}catch{return!0}}function uf(){return!I0()||localStorage.length>0}function df(g){var k=this,C={};if(g)for(var T in g)C[T]=g[T];return C.keyPrefix=Wt(g,k._defaultConfig),uf()?(k._dbInfo=C,C.serializer=_e,d.resolve()):d.reject()}function hf(g){var k=this,C=k.ready().then(function(){for(var T=k._dbInfo.keyPrefix,R=localStorage.length-1;R>=0;R--){var N=localStorage.key(R);N.indexOf(T)===0&&localStorage.removeItem(N)}});return u(C,g),C}function xf(g,k){var C=this;g=m(g);var T=C.ready().then(function(){var R=C._dbInfo,N=localStorage.getItem(R.keyPrefix+g);return N&&(N=R.serializer.deserialize(N)),N});return u(T,k),T}function pf(g,k){var C=this,T=C.ready().then(function(){for(var R=C._dbInfo,N=R.keyPrefix,Y=N.length,j=localStorage.length,Q=1,J=0;J<j;J++){var te=localStorage.key(J);if(te.indexOf(N)===0){var ie=localStorage.getItem(te);if(ie&&(ie=R.serializer.deserialize(ie)),ie=g(ie,te.substring(Y),Q++),ie!==void 0)return ie}}});return u(T,k),T}function vf(g,k){var C=this,T=C.ready().then(function(){var R=C._dbInfo,N;try{N=localStorage.key(g)}catch{N=null}return N&&(N=N.substring(R.keyPrefix.length)),N});return u(T,k),T}function bf(g){var k=this,C=k.ready().then(function(){for(var T=k._dbInfo,R=localStorage.length,N=[],Y=0;Y<R;Y++){var j=localStorage.key(Y);j.indexOf(T.keyPrefix)===0&&N.push(j.substring(T.keyPrefix.length))}return N});return u(C,g),C}function gf(g){var k=this,C=k.keys().then(function(T){return T.length});return u(C,g),C}function mf(g,k){var C=this;g=m(g);var T=C.ready().then(function(){var R=C._dbInfo;localStorage.removeItem(R.keyPrefix+g)});return u(T,k),T}function yf(g,k,C){var T=this;g=m(g);var R=T.ready().then(function(){k===void 0&&(k=null);var N=k;return new d(function(Y,j){var Q=T._dbInfo;Q.serializer.serialize(k,function(J,te){if(te)j(te);else try{localStorage.setItem(Q.keyPrefix+g,J),Y(N)}catch(ie){(ie.name==="QuotaExceededError"||ie.name==="NS_ERROR_DOM_QUOTA_REACHED")&&j(ie),j(ie)}})})});return u(R,C),R}function Ef(g,k){if(k=p.apply(this,arguments),g=typeof g!="function"&&g||{},!g.name){var C=this.config();g.name=g.name||C.name,g.storeName=g.storeName||C.storeName}var T=this,R;return g.name?R=new d(function(N){g.storeName?N(Wt(g,T._defaultConfig)):N(g.name+"/")}).then(function(N){for(var Y=localStorage.length-1;Y>=0;Y--){var j=localStorage.key(Y);j.indexOf(N)===0&&localStorage.removeItem(j)}}):R=d.reject("Invalid arguments"),u(R,k),R}var Bf={_driver:"localStorageWrapper",_initStorage:df,_support:ut(),iterate:pf,getItem:xf,setItem:yf,removeItem:mf,clear:hf,length:gf,key:vf,keys:bf,dropInstance:Ef},_f=function(k,C){return k===C||typeof k=="number"&&typeof C=="number"&&isNaN(k)&&isNaN(C)},Cf=function(k,C){for(var T=k.length,R=0;R<T;){if(_f(k[R],C))return!0;R++}return!1},Ai=Array.isArray||function(g){return Object.prototype.toString.call(g)==="[object Array]"},Yt={},wi={},Lt={INDEXEDDB:De,WEBSQL:He,LOCALSTORAGE:Bf},Af=[Lt.INDEXEDDB._driver,Lt.WEBSQL._driver,Lt.LOCALSTORAGE._driver],gr=["dropInstance"],P0=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(gr),wf={description:"",driver:Af.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function Df(g,k){g[k]=function(){var C=arguments;return g.ready().then(function(){return g[k].apply(g,C)})}}function V0(){for(var g=1;g<arguments.length;g++){var k=arguments[g];if(k)for(var C in k)k.hasOwnProperty(C)&&(Ai(k[C])?arguments[0][C]=k[C].slice():arguments[0][C]=k[C])}return arguments[0]}var kf=function(){function g(k){f(this,g);for(var C in Lt)if(Lt.hasOwnProperty(C)){var T=Lt[C],R=T._driver;this[C]=R,Yt[R]||this.defineDriver(T)}this._defaultConfig=V0({},wf),this._config=V0({},this._defaultConfig,k),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return g.prototype.config=function(C){if((typeof C>"u"?"undefined":o(C))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var T in C){if(T==="storeName"&&(C[T]=C[T].replace(/\W/g,"_")),T==="version"&&typeof C[T]!="number")return new Error("Database version must be a number.");this._config[T]=C[T]}return"driver"in C&&C.driver?this.setDriver(this._config.driver):!0}else return typeof C=="string"?this._config[C]:this._config},g.prototype.defineDriver=function(C,T,R){var N=new d(function(Y,j){try{var Q=C._driver,J=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!C._driver){j(J);return}for(var te=P0.concat("_initStorage"),ie=0,he=te.length;ie<he;ie++){var ge=te[ie],me=!Cf(gr,ge);if((me||C[ge])&&typeof C[ge]!="function"){j(J);return}}var Fe=function(){for(var Kt=function(Nf){return function(){var Tf=new Error("Method "+Nf+" is not implemented by the current driver"),Di=d.reject(Tf);return u(Di,arguments[arguments.length-1]),Di}},$0=0,Sf=gr.length;$0<Sf;$0++){var M0=gr[$0];C[M0]||(C[M0]=Kt(M0))}};Fe();var Ae=function(Kt){Yt[Q]&&console.info("Redefining LocalForage driver: "+Q),Yt[Q]=C,wi[Q]=Kt,Y()};"_support"in C?C._support&&typeof C._support=="function"?C._support().then(Ae,j):Ae(!!C._support):Ae(!0)}catch(Ze){j(Ze)}});return l(N,T,R),N},g.prototype.driver=function(){return this._driver||null},g.prototype.getDriver=function(C,T,R){var N=Yt[C]?d.resolve(Yt[C]):d.reject(new Error("Driver not found."));return l(N,T,R),N},g.prototype.getSerializer=function(C){var T=d.resolve(_e);return l(T,C),T},g.prototype.ready=function(C){var T=this,R=T._driverSet.then(function(){return T._ready===null&&(T._ready=T._initDriver()),T._ready});return l(R,C,C),R},g.prototype.setDriver=function(C,T,R){var N=this;Ai(C)||(C=[C]);var Y=this._getSupportedDrivers(C);function j(){N._config.driver=N.driver()}function Q(ie){return N._extend(ie),j(),N._ready=N._initStorage(N._config),N._ready}function J(ie){return function(){var he=0;function ge(){for(;he<ie.length;){var me=ie[he];return he++,N._dbInfo=null,N._ready=null,N.getDriver(me).then(Q).catch(ge)}j();var Fe=new Error("No available storage method found.");return N._driverSet=d.reject(Fe),N._driverSet}return ge()}}var te=this._driverSet!==null?this._driverSet.catch(function(){return d.resolve()}):d.resolve();return this._driverSet=te.then(function(){var ie=Y[0];return N._dbInfo=null,N._ready=null,N.getDriver(ie).then(function(he){N._driver=he._driver,j(),N._wrapLibraryMethodsWithReady(),N._initDriver=J(Y)})}).catch(function(){j();var ie=new Error("No available storage method found.");return N._driverSet=d.reject(ie),N._driverSet}),l(this._driverSet,T,R),this._driverSet},g.prototype.supports=function(C){return!!wi[C]},g.prototype._extend=function(C){V0(this,C)},g.prototype._getSupportedDrivers=function(C){for(var T=[],R=0,N=C.length;R<N;R++){var Y=C[R];this.supports(Y)&&T.push(Y)}return T},g.prototype._wrapLibraryMethodsWithReady=function(){for(var C=0,T=P0.length;C<T;C++)Df(this,P0[C])},g.prototype.createInstance=function(C){return new g(C)},g}(),Ff=new kf;n.exports=Ff},{3:3}]},{},[4])(4)})})(In);var Fo=In.exports;const So=Ti(Fo),ot=Object.create(null);ot.open="0",ot.close="1",ot.ping="2",ot.pong="3",ot.message="4",ot.upgrade="5",ot.noop="6";const Qt=Object.create(null);Object.keys(ot).forEach(r=>{Qt[ot[r]]=r});const i0={type:"error",data:"parser error"},Pn=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Vn=typeof ArrayBuffer=="function",$n=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer,o0=({type:r,data:e},t,n)=>Pn&&e instanceof Blob?t?n(e):Mn(e,n):Vn&&(e instanceof ArrayBuffer||$n(e))?t?n(e):Mn(new Blob([e]),n):n(ot[r]+(e||"")),Mn=(r,e)=>{const t=new FileReader;return t.onload=function(){const n=t.result.split(",")[1];e("b"+(n||""))},t.readAsDataURL(r)};function zn(r){return r instanceof Uint8Array?r:r instanceof ArrayBuffer?new Uint8Array(r):new Uint8Array(r.buffer,r.byteOffset,r.byteLength)}let s0;function No(r,e){if(Pn&&r.data instanceof Blob)return r.data.arrayBuffer().then(zn).then(e);if(Vn&&(r.data instanceof ArrayBuffer||$n(r.data)))return e(zn(r.data));o0(r,!1,t=>{s0||(s0=new TextEncoder),e(s0.encode(t))})}const Hn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Pt=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let r=0;r<Hn.length;r++)Pt[Hn.charCodeAt(r)]=r;const To=r=>{let e=r.length*.75,t=r.length,n,i=0,o,f,c,x;r[r.length-1]==="="&&(e--,r[r.length-2]==="="&&e--);const a=new ArrayBuffer(e),h=new Uint8Array(a);for(n=0;n<t;n+=4)o=Pt[r.charCodeAt(n)],f=Pt[r.charCodeAt(n+1)],c=Pt[r.charCodeAt(n+2)],x=Pt[r.charCodeAt(n+3)],h[i++]=o<<2|f>>4,h[i++]=(f&15)<<4|c>>2,h[i++]=(c&3)<<6|x&63;return a},Ro=typeof ArrayBuffer=="function",a0=(r,e)=>{if(typeof r!="string")return{type:"message",data:qn(r,e)};const t=r.charAt(0);return t==="b"?{type:"message",data:Lo(r.substring(1),e)}:Qt[t]?r.length>1?{type:Qt[t],data:r.substring(1)}:{type:Qt[t]}:i0},Lo=(r,e)=>{if(Ro){const t=To(r);return qn(t,e)}else return{base64:!0,data:r}},qn=(r,e)=>{switch(e){case"blob":return r instanceof Blob?r:new Blob([r]);case"arraybuffer":default:return r instanceof ArrayBuffer?r:r.buffer}},Un=String.fromCharCode(30),Oo=(r,e)=>{const t=r.length,n=new Array(t);let i=0;r.forEach((o,f)=>{o0(o,!1,c=>{n[f]=c,++i===t&&e(n.join(Un))})})},Io=(r,e)=>{const t=r.split(Un),n=[];for(let i=0;i<t.length;i++){const o=a0(t[i],e);if(n.push(o),o.type==="error")break}return n};function Po(){return new TransformStream({transform(r,e){No(r,t=>{const n=t.length;let i;if(n<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,n);else if(n<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,n)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(n))}r.data&&typeof r.data!="string"&&(i[0]|=128),e.enqueue(i),e.enqueue(t)})}})}let c0;function Jt(r){return r.reduce((e,t)=>e+t.length,0)}function er(r,e){if(r[0].length===e)return r.shift();const t=new Uint8Array(e);let n=0;for(let i=0;i<e;i++)t[i]=r[0][n++],n===r[0].length&&(r.shift(),n=0);return r.length&&n<r[0].length&&(r[0]=r[0].slice(n)),t}function Vo(r,e){c0||(c0=new TextDecoder);const t=[];let n=0,i=-1,o=!1;return new TransformStream({transform(f,c){for(t.push(f);;){if(n===0){if(Jt(t)<1)break;const x=er(t,1);o=(x[0]&128)===128,i=x[0]&127,i<126?n=3:i===126?n=1:n=2}else if(n===1){if(Jt(t)<2)break;const x=er(t,2);i=new DataView(x.buffer,x.byteOffset,x.length).getUint16(0),n=3}else if(n===2){if(Jt(t)<8)break;const x=er(t,8),a=new DataView(x.buffer,x.byteOffset,x.length),h=a.getUint32(0);if(h>Math.pow(2,53-32)-1){c.enqueue(i0);break}i=h*Math.pow(2,32)+a.getUint32(4),n=3}else{if(Jt(t)<i)break;const x=er(t,i);c.enqueue(a0(o?x:c0.decode(x),e)),n=0}if(i===0||i>r){c.enqueue(i0);break}}}})}const Wn=4;function we(r){if(r)return $o(r)}function $o(r){for(var e in we.prototype)r[e]=we.prototype[e];return r}we.prototype.on=we.prototype.addEventListener=function(r,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(e),this},we.prototype.once=function(r,e){function t(){this.off(r,t),e.apply(this,arguments)}return t.fn=e,this.on(r,t),this},we.prototype.off=we.prototype.removeListener=we.prototype.removeAllListeners=we.prototype.removeEventListener=function(r,e){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var t=this._callbacks["$"+r];if(!t)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var n,i=0;i<t.length;i++)if(n=t[i],n===e||n.fn===e){t.splice(i,1);break}return t.length===0&&delete this._callbacks["$"+r],this},we.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var e=new Array(arguments.length-1),t=this._callbacks["$"+r],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(t){t=t.slice(0);for(var n=0,i=t.length;n<i;++n)t[n].apply(this,e)}return this},we.prototype.emitReserved=we.prototype.emit,we.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]},we.prototype.hasListeners=function(r){return!!this.listeners(r).length};const Xe=(()=>typeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Yn(r,...e){return e.reduce((t,n)=>(r.hasOwnProperty(n)&&(t[n]=r[n]),t),{})}const Mo=Xe.setTimeout,zo=Xe.clearTimeout;function tr(r,e){e.useNativeTimers?(r.setTimeoutFn=Mo.bind(Xe),r.clearTimeoutFn=zo.bind(Xe)):(r.setTimeoutFn=Xe.setTimeout.bind(Xe),r.clearTimeoutFn=Xe.clearTimeout.bind(Xe))}const Ho=1.33;function qo(r){return typeof r=="string"?Uo(r):Math.ceil((r.byteLength||r.size)*Ho)}function Uo(r){let e=0,t=0;for(let n=0,i=r.length;n<i;n++)e=r.charCodeAt(n),e<128?t+=1:e<2048?t+=2:e<55296||e>=57344?t+=3:(n++,t+=4);return t}function Wo(r){let e="";for(let t in r)r.hasOwnProperty(t)&&(e.length&&(e+="&"),e+=encodeURIComponent(t)+"="+encodeURIComponent(r[t]));return e}function Yo(r){let e={},t=r.split("&");for(let n=0,i=t.length;n<i;n++){let o=t[n].split("=");e[decodeURIComponent(o[0])]=decodeURIComponent(o[1])}return e}class Ko extends Error{constructor(e,t,n){super(e),this.description=t,this.context=n,this.type="TransportError"}}class f0 extends we{constructor(e){super(),this.writable=!1,tr(this,e),this.opts=e,this.query=e.query,this.socket=e.socket}onError(e,t,n){return super.emitReserved("error",new Ko(e,t,n)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){const t=a0(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){const e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&+(this.opts.port!==443)||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){const t=Wo(e);return t.length?"?"+t:""}}const Kn="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),l0=64,Go={};let Gn=0,rr=0,jn;function Xn(r){let e="";do e=Kn[r%l0]+e,r=Math.floor(r/l0);while(r>0);return e}function Zn(){const r=Xn(+new Date);return r!==jn?(Gn=0,jn=r):r+"."+Xn(Gn++)}for(;rr<l0;rr++)Go[Kn[rr]]=rr;let Qn=!1;try{Qn=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}const jo=Qn;function Jn(r){const e=r.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!e||jo))return new XMLHttpRequest}catch{}if(!e)try{return new Xe[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}function Pf(){}function Xo(){}const Zo=function(){return new Jn({xdomain:!1}).responseType!=null}();class Qo extends f0{constructor(e){if(super(e),this.polling=!1,typeof location<"u"){const n=location.protocol==="https:";let i=location.port;i||(i=n?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||i!==e.port}const t=e&&e.forceBase64;this.supportsBinary=Zo&&!t,this.opts.withCredentials&&(this.cookieJar=void 0)}get name(){return"polling"}doOpen(){this.poll()}pause(e){this.readyState="pausing";const t=()=>{this.readyState="paused",e()};if(this.polling||!this.writable){let n=0;this.polling&&(n++,this.once("pollComplete",function(){--n||t()})),this.writable||(n++,this.once("drain",function(){--n||t()}))}else t()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){const t=n=>{if(this.readyState==="opening"&&n.type==="open"&&this.onOpen(),n.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(n)};Io(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,Oo(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=Zn()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}request(e={}){return Object.assign(e,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new st(this.uri(),e)}doWrite(e,t){const n=this.request({method:"POST",data:e});n.on("success",t),n.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,n)=>{this.onError("xhr poll error",t,n)}),this.pollXhr=e}}class st extends we{constructor(e,t){super(),tr(this,t),this.opts=t,this.method=t.method||"GET",this.uri=e,this.data=t.data!==void 0?t.data:null,this.create()}create(){var e;const t=Yn(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");t.xdomain=!!this.opts.xd;const n=this.xhr=new Jn(t);try{n.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&n.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(e=this.opts.cookieJar)===null||e===void 0||e.addCookies(n),"withCredentials"in n&&(n.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(n.timeout=this.opts.requestTimeout),n.onreadystatechange=()=>{var i;n.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(n)),n.readyState===4&&(n.status===200||n.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof n.status=="number"?n.status:0)},0))},n.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=st.requestsCount++,st.requests[this.index]=this)}onError(e){this.emitReserved("error",e,this.xhr),this.cleanup(!0)}cleanup(e){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=Xo,e)try{this.xhr.abort()}catch{}typeof document<"u"&&delete st.requests[this.index],this.xhr=null}}onLoad(){const e=this.xhr.responseText;e!==null&&(this.emitReserved("data",e),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}if(st.requestsCount=0,st.requests={},typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ei);else if(typeof addEventListener=="function"){const r="onpagehide"in Xe?"pagehide":"unload";addEventListener(r,ei,!1)}}function ei(){for(let r in st.requests)st.requests.hasOwnProperty(r)&&st.requests[r].abort()}const u0=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0))(),nr=Xe.WebSocket||Xe.MozWebSocket,ti=!0,Jo="arraybuffer",ri=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class es extends f0{constructor(e){super(e),this.supportsBinary=!e.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const e=this.uri(),t=this.opts.protocols,n=ri?{}:Yn(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(n.headers=this.opts.extraHeaders);try{this.ws=ti&&!ri?t?new nr(e,t):new nr(e):new nr(e,t,n)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],i=t===e.length-1;o0(n,this.supportsBinary,o=>{const f={};try{ti&&this.ws.send(o)}catch{}i&&u0(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=Zn()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}check(){return!!nr}}class ts extends f0{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(e=>{const t=Vo(Number.MAX_SAFE_INTEGER,this.socket.binaryType),n=e.readable.pipeThrough(t).getReader(),i=Po();i.readable.pipeTo(e.writable),this.writer=i.writable.getWriter();const o=()=>{n.read().then(({done:c,value:x})=>{c||(this.onPacket(x),o())}).catch(c=>{})};o();const f={type:"open"};this.query.sid&&(f.data=`{"sid":"${this.query.sid}"}`),this.writer.write(f).then(()=>this.onOpen())})}))}write(e){this.writable=!1;for(let t=0;t<e.length;t++){const n=e[t],i=t===e.length-1;this.writer.write(n).then(()=>{i&&u0(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this.transport)===null||e===void 0||e.close()}}const rs={websocket:es,webtransport:ts,polling:Qo},ns=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,is=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function d0(r){if(r.length>2e3)throw"URI too long";const e=r,t=r.indexOf("["),n=r.indexOf("]");t!=-1&&n!=-1&&(r=r.substring(0,t)+r.substring(t,n).replace(/:/g,";")+r.substring(n,r.length));let i=ns.exec(r||""),o={},f=14;for(;f--;)o[is[f]]=i[f]||"";return t!=-1&&n!=-1&&(o.source=e,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=os(o,o.path),o.queryKey=ss(o,o.query),o}function os(r,e){const t=/\/{2,9}/g,n=e.replace(t,"/").split("/");return(e.slice(0,1)=="/"||e.length===0)&&n.splice(0,1),e.slice(-1)=="/"&&n.splice(n.length-1,1),n}function ss(r,e){const t={};return e.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,i,o){i&&(t[i]=o)}),t}let ni=class Ot extends we{constructor(e,t={}){super(),this.binaryType=Jo,this.writeBuffer=[],e&&typeof e=="object"&&(t=e,e=null),e?(e=d0(e),t.hostname=e.host,t.secure=e.protocol==="https"||e.protocol==="wss",t.port=e.port,e.query&&(t.query=e.query)):t.host&&(t.hostname=d0(t.host).host),tr(this,t),this.secure=t.secure!=null?t.secure:typeof location<"u"&&location.protocol==="https:",t.hostname&&!t.port&&(t.port=this.secure?"443":"80"),this.hostname=t.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=t.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=t.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},t),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=Yo(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(e){const t=Object.assign({},this.opts.query);t.EIO=Wn,t.transport=e,this.id&&(t.sid=this.id);const n=Object.assign({},this.opts,{query:t,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[e]);return new rs[e](n)}open(){let e;if(this.opts.rememberUpgrade&&Ot.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)e="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else e=this.transports[0];this.readyState="opening";try{e=this.createTransport(e)}catch{this.transports.shift(),this.open();return}e.open(),this.setTransport(e)}setTransport(e){this.transport&&this.transport.removeAllListeners(),this.transport=e,e.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",t=>this.onClose("transport close",t))}probe(e){let t=this.createTransport(e),n=!1;Ot.priorWebsocketSuccess=!1;const i=()=>{n||(t.send([{type:"ping",data:"probe"}]),t.once("packet",d=>{if(!n)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Ot.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{n||this.readyState!=="closed"&&(h(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{const u=new Error("probe error");u.transport=t.name,this.emitReserved("upgradeError",u)}}))};function o(){n||(n=!0,h(),t.close(),t=null)}const f=d=>{const u=new Error("probe error: "+d);u.transport=t.name,o(),this.emitReserved("upgradeError",u)};function c(){f("transport closed")}function x(){f("socket closed")}function a(d){t&&d.name!==t.name&&o()}const h=()=>{t.removeListener("open",i),t.removeListener("error",f),t.removeListener("close",c),this.off("close",x),this.off("upgrading",a)};t.once("open",i),t.once("error",f),t.once("close",c),this.once("close",x),this.once("upgrading",a),this.upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{n||t.open()},200):t.open()}onOpen(){if(this.readyState="open",Ot.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let e=0;const t=this.upgrades.length;for(;e<t;e++)this.probe(this.upgrades[e])}}onPacket(e){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",e),this.emitReserved("heartbeat"),this.resetPingTimeout(),e.type){case"open":this.onHandshake(JSON.parse(e.data));break;case"ping":this.sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong");break;case"error":const t=new Error("server error");t.code=e.data,this.onError(t);break;case"message":this.emitReserved("data",e.data),this.emitReserved("message",e.data);break}}onHandshake(e){this.emitReserved("handshake",e),this.id=e.sid,this.transport.query.sid=e.sid,this.upgrades=this.filterUpgrades(e.upgrades),this.pingInterval=e.pingInterval,this.pingTimeout=e.pingTimeout,this.maxPayload=e.maxPayload,this.onOpen(),this.readyState!=="closed"&&this.resetPingTimeout()}resetPingTimeout(){this.clearTimeoutFn(this.pingTimeoutTimer),this.pingTimeoutTimer=this.setTimeoutFn(()=>{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const e=this.getWritablePackets();this.transport.send(e),this.prevBufferLen=e.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let n=0;n<this.writeBuffer.length;n++){const i=this.writeBuffer[n].data;if(i&&(t+=qo(i)),n>0&&t>this.maxPayload)return this.writeBuffer.slice(0,n);t+=2}return this.writeBuffer}write(e,t,n){return this.sendPacket("message",e,t,n),this}send(e,t,n){return this.sendPacket("message",e,t,n),this}sendPacket(e,t,n,i){if(typeof t=="function"&&(i=t,t=void 0),typeof n=="function"&&(i=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;const o={type:e,data:t,options:n};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const e=()=>{this.onClose("forced close"),this.transport.close()},t=()=>{this.off("upgrade",t),this.off("upgradeError",t),e()},n=()=>{this.once("upgrade",t),this.once("upgradeError",t)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():e()}):this.upgrading?n():e()),this}onError(e){Ot.priorWebsocketSuccess=!1,this.emitReserved("error",e),this.onClose("transport error",e)}onClose(e,t){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",e,t),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(e){const t=[];let n=0;const i=e.length;for(;n<i;n++)~this.transports.indexOf(e[n])&&t.push(e[n]);return t}};ni.protocol=Wn;function as(r,e="",t){let n=r;t=t||typeof location<"u"&&location,r==null&&(r=t.protocol+"//"+t.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=t.protocol+r:r=t.host+r),/^(https?|wss?):\/\//.test(r)||(typeof t<"u"?r=t.protocol+"//"+r:r="https://"+r),n=d0(r)),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=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+e,n.href=n.protocol+"://"+o+(t&&t.port===n.port?"":":"+n.port),n}const cs=typeof ArrayBuffer=="function",fs=r=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(r):r.buffer instanceof ArrayBuffer,ii=Object.prototype.toString,ls=typeof Blob=="function"||typeof Blob<"u"&&ii.call(Blob)==="[object BlobConstructor]",us=typeof File=="function"||typeof File<"u"&&ii.call(File)==="[object FileConstructor]";function h0(r){return cs&&(r instanceof ArrayBuffer||fs(r))||ls&&r instanceof Blob||us&&r instanceof File}function ir(r,e){if(!r||typeof r!="object")return!1;if(Array.isArray(r)){for(let t=0,n=r.length;t<n;t++)if(ir(r[t]))return!0;return!1}if(h0(r))return!0;if(r.toJSON&&typeof r.toJSON=="function"&&arguments.length===1)return ir(r.toJSON(),!0);for(const t in r)if(Object.prototype.hasOwnProperty.call(r,t)&&ir(r[t]))return!0;return!1}function ds(r){const e=[],t=r.data,n=r;return n.data=x0(t,e),n.attachments=e.length,{packet:n,buffers:e}}function x0(r,e){if(!r)return r;if(h0(r)){const t={_placeholder:!0,num:e.length};return e.push(r),t}else if(Array.isArray(r)){const t=new Array(r.length);for(let n=0;n<r.length;n++)t[n]=x0(r[n],e);return t}else if(typeof r=="object"&&!(r instanceof Date)){const t={};for(const n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=x0(r[n],e));return t}return r}function hs(r,e){return r.data=p0(r.data,e),delete r.attachments,r}function p0(r,e){if(!r)return r;if(r&&r._placeholder===!0){if(typeof r.num=="number"&&r.num>=0&&r.num<e.length)return e[r.num];throw new Error("illegal attachments")}else if(Array.isArray(r))for(let t=0;t<r.length;t++)r[t]=p0(r[t],e);else if(typeof r=="object")for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&(r[t]=p0(r[t],e));return r}const xs=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],ps=5;var ve;(function(r){r[r.CONNECT=0]="CONNECT",r[r.DISCONNECT=1]="DISCONNECT",r[r.EVENT=2]="EVENT",r[r.ACK=3]="ACK",r[r.CONNECT_ERROR=4]="CONNECT_ERROR",r[r.BINARY_EVENT=5]="BINARY_EVENT",r[r.BINARY_ACK=6]="BINARY_ACK"})(ve||(ve={}));class vs{constructor(e){this.replacer=e}encode(e){return(e.type===ve.EVENT||e.type===ve.ACK)&&ir(e)?this.encodeAsBinary({type:e.type===ve.EVENT?ve.BINARY_EVENT:ve.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===ve.BINARY_EVENT||e.type===ve.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),t}encodeAsBinary(e){const t=ds(e),n=this.encodeAsString(t.packet),i=t.buffers;return i.unshift(n),i}}function oi(r){return Object.prototype.toString.call(r)==="[object Object]"}class v0 extends we{constructor(e){super(),this.reviver=e}add(e){let t;if(typeof e=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");t=this.decodeString(e);const n=t.type===ve.BINARY_EVENT;n||t.type===ve.BINARY_ACK?(t.type=n?ve.EVENT:ve.ACK,this.reconstructor=new bs(t),t.attachments===0&&super.emitReserved("decoded",t)):super.emitReserved("decoded",t)}else if(h0(e)||e.base64)if(this.reconstructor)t=this.reconstructor.takeBinaryData(e),t&&(this.reconstructor=null,super.emitReserved("decoded",t));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+e)}decodeString(e){let t=0;const n={type:Number(e.charAt(0))};if(ve[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===ve.BINARY_EVENT||n.type===ve.BINARY_ACK){const o=t+1;for(;e.charAt(++t)!=="-"&&t!=e.length;);const f=e.substring(o,t);if(f!=Number(f)||e.charAt(t)!=="-")throw new Error("Illegal attachments");n.attachments=Number(f)}if(e.charAt(t+1)==="/"){const o=t+1;for(;++t&&!(e.charAt(t)===","||t===e.length););n.nsp=e.substring(o,t)}else n.nsp="/";const i=e.charAt(t+1);if(i!==""&&Number(i)==i){const o=t+1;for(;++t;){const f=e.charAt(t);if(f==null||Number(f)!=f){--t;break}if(t===e.length)break}n.id=Number(e.substring(o,t+1))}if(e.charAt(++t)){const o=this.tryParse(e.substr(t));if(v0.isPayloadValid(n.type,o))n.data=o;else throw new Error("invalid payload")}return n}tryParse(e){try{return JSON.parse(e,this.reviver)}catch{return!1}}static isPayloadValid(e,t){switch(e){case ve.CONNECT:return oi(t);case ve.DISCONNECT:return t===void 0;case ve.CONNECT_ERROR:return typeof t=="string"||oi(t);case ve.EVENT:case ve.BINARY_EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&xs.indexOf(t[0])===-1);case ve.ACK:case ve.BINARY_ACK:return Array.isArray(t)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}}class bs{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){const t=hs(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}}const gs=Object.freeze(Object.defineProperty({__proto__:null,Decoder:v0,Encoder:vs,get PacketType(){return ve},protocol:ps},Symbol.toStringTag,{value:"Module"}));function Je(r,e,t){return r.on(e,t),function(){r.off(e,t)}}const ms=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1});class si extends we{constructor(e,t,n){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=e,this.nsp=t,n&&n.auth&&(this.auth=n.auth),this._opts=Object.assign({},n),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;const e=this.io;this.subs=[Je(e,"open",this.onopen.bind(this)),Je(e,"packet",this.onpacket.bind(this)),Je(e,"error",this.onerror.bind(this)),Je(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){if(ms.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;const n={type:ve.EVENT,data:t};if(n.options={},n.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){const f=this.ids++,c=t.pop();this._registerAckCallback(f,c),n.id=f}const i=this.io.engine&&this.io.engine.transport&&this.io.engine.transport.writable;return this.flags.volatile&&(!i||!this.connected)||(this.connected?(this.notifyOutgoingListeners(n),this.packet(n)):this.sendBuffer.push(n)),this.flags={},this}_registerAckCallback(e,t){var n;const i=(n=this.flags.timeout)!==null&&n!==void 0?n:this._opts.ackTimeout;if(i===void 0){this.acks[e]=t;return}const o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let f=0;f<this.sendBuffer.length;f++)this.sendBuffer[f].id===e&&this.sendBuffer.splice(f,1);t.call(this,new Error("operation has timed out"))},i);this.acks[e]=(...f)=>{this.io.clearTimeoutFn(o),t.apply(this,[null,...f])}}emitWithAck(e,...t){const n=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{t.push((f,c)=>n?f?o(f):i(c):i(f)),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());const n={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((i,...o)=>n!==this._queue[0]?void 0:(i!==null?n.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(i)):(this._queue.shift(),t&&t(null,...o)),n.pending=!1,this._drainQueue())),this._queue.push(n),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;const t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:ve.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t)}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ve.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 ve.EVENT:case ve.BINARY_EVENT:this.onevent(e);break;case ve.ACK:case ve.BINARY_ACK:this.onack(e);break;case ve.DISCONNECT:this.ondisconnect();break;case ve.CONNECT_ERROR:this.destroy();const n=new Error(e.data.message);n.data=e.data.data,this.emitReserved("connect_error",n);break}}onevent(e){const t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){const t=this._anyListeners.slice();for(const n of t)n.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){const t=this;let n=!1;return function(...i){n||(n=!0,t.packet({type:ve.ACK,id:e,data:i}))}}onack(e){const t=this.acks[e.id];typeof t=="function"&&(t.apply(this,e.data),delete this.acks[e.id])}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ve.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){const t=this._anyListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){const t=this._anyOutgoingListeners;for(let n=0;n<t.length;n++)if(e===t[n])return t.splice(n,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){const t=this._anyOutgoingListeners.slice();for(const n of t)n.apply(this,e.data)}}}function Ft(r){r=r||{},this.ms=r.min||100,this.max=r.max||1e4,this.factor=r.factor||2,this.jitter=r.jitter>0&&r.jitter<=1?r.jitter:0,this.attempts=0}Ft.prototype.duration=function(){var r=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var e=Math.random(),t=Math.floor(e*this.jitter*r);r=Math.floor(e*10)&1?r+t:r-t}return Math.min(r,this.max)|0},Ft.prototype.reset=function(){this.attempts=0},Ft.prototype.setMin=function(r){this.ms=r},Ft.prototype.setMax=function(r){this.max=r},Ft.prototype.setJitter=function(r){this.jitter=r};class b0 extends we{constructor(e,t){var n;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,tr(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((n=t.randomizationFactor)!==null&&n!==void 0?n:.5),this.backoff=new Ft({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;const i=t.parser||gs;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new ni(this.uri,this.opts);const t=this.engine,n=this;this._readyState="opening",this.skipReconnect=!1;const i=Je(t,"open",function(){n.onopen(),e&&e()}),o=c=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",c),e?e(c):this.maybeReconnectOnOpen()},f=Je(t,"error",o);if(this._timeout!==!1){const c=this._timeout,x=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),t.close()},c);this.opts.autoUnref&&x.unref(),this.subs.push(()=>{this.clearTimeoutFn(x)})}return this.subs.push(i),this.subs.push(f),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const e=this.engine;this.subs.push(Je(e,"ping",this.onping.bind(this)),Je(e,"data",this.ondata.bind(this)),Je(e,"error",this.onerror.bind(this)),Je(e,"close",this.onclose.bind(this)),Je(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){u0(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let n=this.nsps[e];return n?this._autoConnect&&!n.active&&n.connect():(n=new si(this,e,t),this.nsps[e]=n),n}_destroy(e){const t=Object.keys(this.nsps);for(const n of t)if(this.nsps[n].active)return;this._close()}_packet(e){const t=this.encoder.encode(e);for(let n=0;n<t.length;n++)this.engine.write(t[n],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(e,t){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const t=this.backoff.duration();this._reconnecting=!0;const n=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(i=>{i?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",i)):e.onreconnect()}))},t);this.opts.autoUnref&&n.unref(),this.subs.push(()=>{this.clearTimeoutFn(n)})}}onreconnect(){const e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}}const Vt={};function g0(r,e){typeof r=="object"&&(e=r,r=void 0),e=e||{};const t=as(r,e.path||"/socket.io"),n=t.source,i=t.id,o=t.path,f=Vt[i]&&o in Vt[i].nsps,c=e.forceNew||e["force new connection"]||e.multiplex===!1||f;let x;return c?x=new b0(n,e):(Vt[i]||(Vt[i]=new b0(n,e)),x=Vt[i]),t.query&&!e.query&&(e.query=t.queryKey),x.socket(t.path,e)}Object.assign(g0,{Manager:b0,Socket:si,io:g0,connect:g0});/*!
20
+ * decimal.js v10.4.3
21
+ * An arbitrary-precision Decimal type for JavaScript.
22
+ * https://github.com/MikeMcl/decimal.js
23
+ * Copyright (c) 2022 Michael Mclaughlin <M8ch88l@gmail.com>
24
+ * MIT Licence
25
+ */var St=9e15,mt=1e9,m0="0123456789abcdef",or="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",sr="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",y0={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-St,maxE:St,crypto:!1},ai,dt,le=!0,ar="[DecimalError] ",yt=ar+"Invalid argument: ",ci=ar+"Precision limit exceeded",fi=ar+"crypto unavailable",li="[object Decimal]",Ve=Math.floor,Ne=Math.pow,ys=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Es=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Bs=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,ui=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,et=1e7,se=7,_s=9007199254740991,Cs=or.length-1,E0=sr.length-1,K={toStringTag:li};K.absoluteValue=K.abs=function(){var r=new this.constructor(this);return r.s<0&&(r.s=1),oe(r)},K.ceil=function(){return oe(new this.constructor(this),this.e+1,2)},K.clampedTo=K.clamp=function(r,e){var t,n=this,i=n.constructor;if(r=new i(r),e=new i(e),!r.s||!e.s)return new i(NaN);if(r.gt(e))throw Error(yt+e);return t=n.cmp(r),t<0?r:n.cmp(e)>0?e:new i(n)},K.comparedTo=K.cmp=function(r){var e,t,n,i,o=this,f=o.d,c=(r=new o.constructor(r)).d,x=o.s,a=r.s;if(!f||!c)return!x||!a?NaN:x!==a?x:f===c?0:!f^x<0?1:-1;if(!f[0]||!c[0])return f[0]?x:c[0]?-a:0;if(x!==a)return x;if(o.e!==r.e)return o.e>r.e^x<0?1:-1;for(n=f.length,i=c.length,e=0,t=n<i?n:i;e<t;++e)if(f[e]!==c[e])return f[e]>c[e]^x<0?1:-1;return n===i?0:n>i^x<0?1:-1},K.cosine=K.cos=function(){var r,e,t=this,n=t.constructor;return t.d?t.d[0]?(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+se,n.rounding=1,t=As(n,bi(n,t)),n.precision=r,n.rounding=e,oe(dt==2||dt==3?t.neg():t,r,e,!0)):new n(1):new n(NaN)},K.cubeRoot=K.cbrt=function(){var r,e,t,n,i,o,f,c,x,a,h=this,d=h.constructor;if(!h.isFinite()||h.isZero())return new d(h);for(le=!1,o=h.s*Ne(h.s*h,1/3),!o||Math.abs(o)==1/0?(t=Oe(h.d),r=h.e,(o=(r-t.length+1)%3)&&(t+=o==1||o==-2?"0":"00"),o=Ne(t,1/3),r=Ve((r+1)/3)-(r%3==(r<0?-1:2)),o==1/0?t="5e"+r:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+r),n=new d(t),n.s=h.s):n=new d(o.toString()),f=(r=d.precision)+3;;)if(c=n,x=c.times(c).times(c),a=x.plus(h),n=ye(a.plus(h).times(c),a.plus(x),f+2,1),Oe(c.d).slice(0,f)===(t=Oe(n.d)).slice(0,f))if(t=t.slice(f-3,f+1),t=="9999"||!i&&t=="4999"){if(!i&&(oe(c,r+1,0),c.times(c).times(c).eq(h))){n=c;break}f+=4,i=1}else{(!+t||!+t.slice(1)&&t.charAt(0)=="5")&&(oe(n,r+1,1),e=!n.times(n).times(n).eq(h));break}return le=!0,oe(n,r,d.rounding,e)},K.decimalPlaces=K.dp=function(){var r,e=this.d,t=NaN;if(e){if(r=e.length-1,t=(r-Ve(this.e/se))*se,r=e[r],r)for(;r%10==0;r/=10)t--;t<0&&(t=0)}return t},K.dividedBy=K.div=function(r){return ye(this,new this.constructor(r))},K.dividedToIntegerBy=K.divToInt=function(r){var e=this,t=e.constructor;return oe(ye(e,new t(r),0,1,1),t.precision,t.rounding)},K.equals=K.eq=function(r){return this.cmp(r)===0},K.floor=function(){return oe(new this.constructor(this),this.e+1,3)},K.greaterThan=K.gt=function(r){return this.cmp(r)>0},K.greaterThanOrEqualTo=K.gte=function(r){var e=this.cmp(r);return e==1||e===0},K.hyperbolicCosine=K.cosh=function(){var r,e,t,n,i,o=this,f=o.constructor,c=new f(1);if(!o.isFinite())return new f(o.s?1/0:NaN);if(o.isZero())return c;t=f.precision,n=f.rounding,f.precision=t+Math.max(o.e,o.sd())+4,f.rounding=1,i=o.d.length,i<32?(r=Math.ceil(i/3),e=(1/ur(4,r)).toString()):(r=16,e="2.3283064365386962890625e-10"),o=Nt(f,1,o.times(e),new f(1),!0);for(var x,a=r,h=new f(8);a--;)x=o.times(o),o=c.minus(x.times(h.minus(x.times(h))));return oe(o,f.precision=t,f.rounding=n,!0)},K.hyperbolicSine=K.sinh=function(){var r,e,t,n,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,t=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,n=i.d.length,n<3)i=Nt(o,2,i,i,!0);else{r=1.4*Math.sqrt(n),r=r>16?16:r|0,i=i.times(1/ur(5,r)),i=Nt(o,2,i,i,!0);for(var f,c=new o(5),x=new o(16),a=new o(20);r--;)f=i.times(i),i=i.times(c.plus(f.times(x.times(f).plus(a))))}return o.precision=e,o.rounding=t,oe(i,e,t,!0)},K.hyperbolicTangent=K.tanh=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+7,n.rounding=1,ye(t.sinh(),t.cosh(),n.precision=r,n.rounding=e)):new n(t.s)},K.inverseCosine=K.acos=function(){var r,e=this,t=e.constructor,n=e.abs().cmp(1),i=t.precision,o=t.rounding;return n!==-1?n===0?e.isNeg()?tt(t,i,o):new t(0):new t(NaN):e.isZero()?tt(t,i+4,o).times(.5):(t.precision=i+6,t.rounding=1,e=e.asin(),r=tt(t,i+4,o).times(.5),t.precision=i,t.rounding=o,r.minus(e))},K.inverseHyperbolicCosine=K.acosh=function(){var r,e,t=this,n=t.constructor;return t.lte(1)?new n(t.eq(1)?0:NaN):t.isFinite()?(r=n.precision,e=n.rounding,n.precision=r+Math.max(Math.abs(t.e),t.sd())+4,n.rounding=1,le=!1,t=t.times(t).minus(1).sqrt().plus(t),le=!0,n.precision=r,n.rounding=e,t.ln()):new n(t)},K.inverseHyperbolicSine=K.asinh=function(){var r,e,t=this,n=t.constructor;return!t.isFinite()||t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+2*Math.max(Math.abs(t.e),t.sd())+6,n.rounding=1,le=!1,t=t.times(t).plus(1).sqrt().plus(t),le=!0,n.precision=r,n.rounding=e,t.ln())},K.inverseHyperbolicTangent=K.atanh=function(){var r,e,t,n,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(r=o.precision,e=o.rounding,n=i.sd(),Math.max(n,r)<2*-i.e-1?oe(new o(i),r,e,!0):(o.precision=t=n-i.e,i=ye(i.plus(1),new o(1).minus(i),t+r,1),o.precision=r+4,o.rounding=1,i=i.ln(),o.precision=r,o.rounding=e,i.times(.5))):new o(NaN)},K.inverseSine=K.asin=function(){var r,e,t,n,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),t=o.precision,n=o.rounding,e!==-1?e===0?(r=tt(o,t+4,n).times(.5),r.s=i.s,r):new o(NaN):(o.precision=t+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=t,o.rounding=n,i.times(2)))},K.inverseTangent=K.atan=function(){var r,e,t,n,i,o,f,c,x,a=this,h=a.constructor,d=h.precision,u=h.rounding;if(a.isFinite()){if(a.isZero())return new h(a);if(a.abs().eq(1)&&d+4<=E0)return f=tt(h,d+4,u).times(.25),f.s=a.s,f}else{if(!a.s)return new h(NaN);if(d+4<=E0)return f=tt(h,d+4,u).times(.5),f.s=a.s,f}for(h.precision=c=d+10,h.rounding=1,t=Math.min(28,c/se+2|0),r=t;r;--r)a=a.div(a.times(a).plus(1).sqrt().plus(1));for(le=!1,e=Math.ceil(c/se),n=1,x=a.times(a),f=new h(a),i=a;r!==-1;)if(i=i.times(x),o=f.minus(i.div(n+=2)),i=i.times(x),f=o.plus(i.div(n+=2)),f.d[e]!==void 0)for(r=e;f.d[r]===o.d[r]&&r--;);return t&&(f=f.times(2<<t-1)),le=!0,oe(f,h.precision=d,h.rounding=u,!0)},K.isFinite=function(){return!!this.d},K.isInteger=K.isInt=function(){return!!this.d&&Ve(this.e/se)>this.d.length-2},K.isNaN=function(){return!this.s},K.isNegative=K.isNeg=function(){return this.s<0},K.isPositive=K.isPos=function(){return this.s>0},K.isZero=function(){return!!this.d&&this.d[0]===0},K.lessThan=K.lt=function(r){return this.cmp(r)<0},K.lessThanOrEqualTo=K.lte=function(r){return this.cmp(r)<1},K.logarithm=K.log=function(r){var e,t,n,i,o,f,c,x,a=this,h=a.constructor,d=h.precision,u=h.rounding,l=5;if(r==null)r=new h(10),e=!0;else{if(r=new h(r),t=r.d,r.s<0||!t||!t[0]||r.eq(1))return new h(NaN);e=r.eq(10)}if(t=a.d,a.s<0||!t||!t[0]||a.eq(1))return new h(t&&!t[0]?-1/0:a.s!=1?NaN:t?0:1/0);if(e)if(t.length>1)o=!0;else{for(i=t[0];i%10===0;)i/=10;o=i!==1}if(le=!1,c=d+l,f=Bt(a,c),n=e?lr(h,c+10):Bt(r,c),x=ye(f,n,c,1),$t(x.d,i=d,u))do if(c+=10,f=Bt(a,c),n=e?lr(h,c+10):Bt(r,c),x=ye(f,n,c,1),!o){+Oe(x.d).slice(i+1,i+15)+1==1e14&&(x=oe(x,d+1,0));break}while($t(x.d,i+=10,u));return le=!0,oe(x,d,u)},K.minus=K.sub=function(r){var e,t,n,i,o,f,c,x,a,h,d,u,l=this,m=l.constructor;if(r=new m(r),!l.d||!r.d)return!l.s||!r.s?r=new m(NaN):l.d?r.s=-r.s:r=new m(r.d||l.s!==r.s?l:NaN),r;if(l.s!=r.s)return r.s=-r.s,l.plus(r);if(a=l.d,u=r.d,c=m.precision,x=m.rounding,!a[0]||!u[0]){if(u[0])r.s=-r.s;else if(a[0])r=new m(l);else return new m(x===3?-0:0);return le?oe(r,c,x):r}if(t=Ve(r.e/se),h=Ve(l.e/se),a=a.slice(),o=h-t,o){for(d=o<0,d?(e=a,o=-o,f=u.length):(e=u,t=h,f=a.length),n=Math.max(Math.ceil(c/se),f)+2,o>n&&(o=n,e.length=1),e.reverse(),n=o;n--;)e.push(0);e.reverse()}else{for(n=a.length,f=u.length,d=n<f,d&&(f=n),n=0;n<f;n++)if(a[n]!=u[n]){d=a[n]<u[n];break}o=0}for(d&&(e=a,a=u,u=e,r.s=-r.s),f=a.length,n=u.length-f;n>0;--n)a[f++]=0;for(n=u.length;n>o;){if(a[--n]<u[n]){for(i=n;i&&a[--i]===0;)a[i]=et-1;--a[i],a[n]+=et}a[n]-=u[n]}for(;a[--f]===0;)a.pop();for(;a[0]===0;a.shift())--t;return a[0]?(r.d=a,r.e=fr(a,t),le?oe(r,c,x):r):new m(x===3?-0:0)},K.modulo=K.mod=function(r){var e,t=this,n=t.constructor;return r=new n(r),!t.d||!r.s||r.d&&!r.d[0]?new n(NaN):!r.d||t.d&&!t.d[0]?oe(new n(t),n.precision,n.rounding):(le=!1,n.modulo==9?(e=ye(t,r.abs(),0,3,1),e.s*=r.s):e=ye(t,r,0,n.modulo,1),e=e.times(r),le=!0,t.minus(e))},K.naturalExponential=K.exp=function(){return B0(this)},K.naturalLogarithm=K.ln=function(){return Bt(this)},K.negated=K.neg=function(){var r=new this.constructor(this);return r.s=-r.s,oe(r)},K.plus=K.add=function(r){var e,t,n,i,o,f,c,x,a,h,d=this,u=d.constructor;if(r=new u(r),!d.d||!r.d)return!d.s||!r.s?r=new u(NaN):d.d||(r=new u(r.d||d.s===r.s?d:NaN)),r;if(d.s!=r.s)return r.s=-r.s,d.minus(r);if(a=d.d,h=r.d,c=u.precision,x=u.rounding,!a[0]||!h[0])return h[0]||(r=new u(d)),le?oe(r,c,x):r;if(o=Ve(d.e/se),n=Ve(r.e/se),a=a.slice(),i=o-n,i){for(i<0?(t=a,i=-i,f=h.length):(t=h,n=o,f=a.length),o=Math.ceil(c/se),f=o>f?o+1:f+1,i>f&&(i=f,t.length=1),t.reverse();i--;)t.push(0);t.reverse()}for(f=a.length,i=h.length,f-i<0&&(i=f,t=h,h=a,a=t),e=0;i;)e=(a[--i]=a[i]+h[i]+e)/et|0,a[i]%=et;for(e&&(a.unshift(e),++n),f=a.length;a[--f]==0;)a.pop();return r.d=a,r.e=fr(a,n),le?oe(r,c,x):r},K.precision=K.sd=function(r){var e,t=this;if(r!==void 0&&r!==!!r&&r!==1&&r!==0)throw Error(yt+r);return t.d?(e=di(t.d),r&&t.e+1>e&&(e=t.e+1)):e=NaN,e},K.round=function(){var r=this,e=r.constructor;return oe(new e(r),r.e+1,e.rounding)},K.sine=K.sin=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+Math.max(t.e,t.sd())+se,n.rounding=1,t=Ds(n,bi(n,t)),n.precision=r,n.rounding=e,oe(dt>2?t.neg():t,r,e,!0)):new n(NaN)},K.squareRoot=K.sqrt=function(){var r,e,t,n,i,o,f=this,c=f.d,x=f.e,a=f.s,h=f.constructor;if(a!==1||!c||!c[0])return new h(!a||a<0&&(!c||c[0])?NaN:c?f:1/0);for(le=!1,a=Math.sqrt(+f),a==0||a==1/0?(e=Oe(c),(e.length+x)%2==0&&(e+="0"),a=Math.sqrt(e),x=Ve((x+1)/2)-(x<0||x%2),a==1/0?e="5e"+x:(e=a.toExponential(),e=e.slice(0,e.indexOf("e")+1)+x),n=new h(e)):n=new h(a.toString()),t=(x=h.precision)+3;;)if(o=n,n=o.plus(ye(f,o,t+2,1)).times(.5),Oe(o.d).slice(0,t)===(e=Oe(n.d)).slice(0,t))if(e=e.slice(t-3,t+1),e=="9999"||!i&&e=="4999"){if(!i&&(oe(o,x+1,0),o.times(o).eq(f))){n=o;break}t+=4,i=1}else{(!+e||!+e.slice(1)&&e.charAt(0)=="5")&&(oe(n,x+1,1),r=!n.times(n).eq(f));break}return le=!0,oe(n,x,h.rounding,r)},K.tangent=K.tan=function(){var r,e,t=this,n=t.constructor;return t.isFinite()?t.isZero()?new n(t):(r=n.precision,e=n.rounding,n.precision=r+10,n.rounding=1,t=t.sin(),t.s=1,t=ye(t,new n(1).minus(t.times(t)).sqrt(),r+10,0),n.precision=r,n.rounding=e,oe(dt==2||dt==4?t.neg():t,r,e,!0)):new n(NaN)},K.times=K.mul=function(r){var e,t,n,i,o,f,c,x,a,h=this,d=h.constructor,u=h.d,l=(r=new d(r)).d;if(r.s*=h.s,!u||!u[0]||!l||!l[0])return new d(!r.s||u&&!u[0]&&!l||l&&!l[0]&&!u?NaN:!u||!l?r.s/0:r.s*0);for(t=Ve(h.e/se)+Ve(r.e/se),x=u.length,a=l.length,x<a&&(o=u,u=l,l=o,f=x,x=a,a=f),o=[],f=x+a,n=f;n--;)o.push(0);for(n=a;--n>=0;){for(e=0,i=x+n;i>n;)c=o[i]+l[n]*u[i-n-1]+e,o[i--]=c%et|0,e=c/et|0;o[i]=(o[i]+e)%et|0}for(;!o[--f];)o.pop();return e?++t:o.shift(),r.d=o,r.e=fr(o,t),le?oe(r,d.precision,d.rounding):r},K.toBinary=function(r,e){return C0(this,2,r,e)},K.toDecimalPlaces=K.toDP=function(r,e){var t=this,n=t.constructor;return t=new n(t),r===void 0?t:(qe(r,0,mt),e===void 0?e=n.rounding:qe(e,0,8),oe(t,r+t.e+1,e))},K.toExponential=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=at(n,!0):(qe(r,0,mt),e===void 0?e=i.rounding:qe(e,0,8),n=oe(new i(n),r+1,e),t=at(n,!0,r+1)),n.isNeg()&&!n.isZero()?"-"+t:t},K.toFixed=function(r,e){var t,n,i=this,o=i.constructor;return r===void 0?t=at(i):(qe(r,0,mt),e===void 0?e=o.rounding:qe(e,0,8),n=oe(new o(i),r+i.e+1,e),t=at(n,!1,r+n.e+1)),i.isNeg()&&!i.isZero()?"-"+t:t},K.toFraction=function(r){var e,t,n,i,o,f,c,x,a,h,d,u,l=this,m=l.d,p=l.constructor;if(!m)return new p(l);if(a=t=new p(1),n=x=new p(0),e=new p(n),o=e.e=di(m)-l.e-1,f=o%se,e.d[0]=Ne(10,f<0?se+f:f),r==null)r=o>0?e:a;else{if(c=new p(r),!c.isInt()||c.lt(a))throw Error(yt+c);r=c.gt(e)?o>0?e:a:c}for(le=!1,c=new p(Oe(m)),h=p.precision,p.precision=o=m.length*se*2;d=ye(c,e,0,1,1),i=t.plus(d.times(n)),i.cmp(r)!=1;)t=n,n=i,i=a,a=x.plus(d.times(i)),x=i,i=e,e=c.minus(d.times(i)),c=i;return i=ye(r.minus(t),n,0,1,1),x=x.plus(i.times(a)),t=t.plus(i.times(n)),x.s=a.s=l.s,u=ye(a,n,o,1).minus(l).abs().cmp(ye(x,t,o,1).minus(l).abs())<1?[a,n]:[x,t],p.precision=h,le=!0,u},K.toHexadecimal=K.toHex=function(r,e){return C0(this,16,r,e)},K.toNearest=function(r,e){var t=this,n=t.constructor;if(t=new n(t),r==null){if(!t.d)return t;r=new n(1),e=n.rounding}else{if(r=new n(r),e===void 0?e=n.rounding:qe(e,0,8),!t.d)return r.s?t:r;if(!r.d)return r.s&&(r.s=t.s),r}return r.d[0]?(le=!1,t=ye(t,r,0,e,1).times(r),le=!0,oe(t)):(r.s=t.s,t=r),t},K.toNumber=function(){return+this},K.toOctal=function(r,e){return C0(this,8,r,e)},K.toPower=K.pow=function(r){var e,t,n,i,o,f,c=this,x=c.constructor,a=+(r=new x(r));if(!c.d||!r.d||!c.d[0]||!r.d[0])return new x(Ne(+c,a));if(c=new x(c),c.eq(1))return c;if(n=x.precision,o=x.rounding,r.eq(1))return oe(c,n,o);if(e=Ve(r.e/se),e>=r.d.length-1&&(t=a<0?-a:a)<=_s)return i=hi(x,c,t,n),r.s<0?new x(1).div(i):oe(i,n,o);if(f=c.s,f<0){if(e<r.d.length-1)return new x(NaN);if(r.d[e]&1||(f=1),c.e==0&&c.d[0]==1&&c.d.length==1)return c.s=f,c}return t=Ne(+c,a),e=t==0||!isFinite(t)?Ve(a*(Math.log("0."+Oe(c.d))/Math.LN10+c.e+1)):new x(t+"").e,e>x.maxE+1||e<x.minE-1?new x(e>0?f/0:0):(le=!1,x.rounding=c.s=1,t=Math.min(12,(e+"").length),i=B0(r.times(Bt(c,n+t)),n),i.d&&(i=oe(i,n+5,1),$t(i.d,n,o)&&(e=n+10,i=oe(B0(r.times(Bt(c,e+t)),e),e+5,1),+Oe(i.d).slice(n+1,n+15)+1==1e14&&(i=oe(i,n+1,0)))),i.s=f,le=!0,x.rounding=o,oe(i,n,o))},K.toPrecision=function(r,e){var t,n=this,i=n.constructor;return r===void 0?t=at(n,n.e<=i.toExpNeg||n.e>=i.toExpPos):(qe(r,1,mt),e===void 0?e=i.rounding:qe(e,0,8),n=oe(new i(n),r,e),t=at(n,r<=n.e||n.e<=i.toExpNeg,r)),n.isNeg()&&!n.isZero()?"-"+t:t},K.toSignificantDigits=K.toSD=function(r,e){var t=this,n=t.constructor;return r===void 0?(r=n.precision,e=n.rounding):(qe(r,1,mt),e===void 0?e=n.rounding:qe(e,0,8)),oe(new n(t),r,e)},K.toString=function(){var r=this,e=r.constructor,t=at(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()&&!r.isZero()?"-"+t:t},K.truncated=K.trunc=function(){return oe(new this.constructor(this),this.e+1,1)},K.valueOf=K.toJSON=function(){var r=this,e=r.constructor,t=at(r,r.e<=e.toExpNeg||r.e>=e.toExpPos);return r.isNeg()?"-"+t:t};function Oe(r){var e,t,n,i=r.length-1,o="",f=r[0];if(i>0){for(o+=f,e=1;e<i;e++)n=r[e]+"",t=se-n.length,t&&(o+=Et(t)),o+=n;f=r[e],n=f+"",t=se-n.length,t&&(o+=Et(t))}else if(f===0)return"0";for(;f%10===0;)f/=10;return o+f}function qe(r,e,t){if(r!==~~r||r<e||r>t)throw Error(yt+r)}function $t(r,e,t,n){var i,o,f,c;for(o=r[0];o>=10;o/=10)--e;return--e<0?(e+=se,i=0):(i=Math.ceil((e+1)/se),e%=se),o=Ne(10,se-e),c=r[i]%o|0,n==null?e<3?(e==0?c=c/100|0:e==1&&(c=c/10|0),f=t<4&&c==99999||t>3&&c==49999||c==5e4||c==0):f=(t<4&&c+1==o||t>3&&c+1==o/2)&&(r[i+1]/o/100|0)==Ne(10,e-2)-1||(c==o/2||c==0)&&(r[i+1]/o/100|0)==0:e<4?(e==0?c=c/1e3|0:e==1?c=c/100|0:e==2&&(c=c/10|0),f=(n||t<4)&&c==9999||!n&&t>3&&c==4999):f=((n||t<4)&&c+1==o||!n&&t>3&&c+1==o/2)&&(r[i+1]/o/1e3|0)==Ne(10,e-3)-1,f}function cr(r,e,t){for(var n,i=[0],o,f=0,c=r.length;f<c;){for(o=i.length;o--;)i[o]*=e;for(i[0]+=m0.indexOf(r.charAt(f++)),n=0;n<i.length;n++)i[n]>t-1&&(i[n+1]===void 0&&(i[n+1]=0),i[n+1]+=i[n]/t|0,i[n]%=t)}return i.reverse()}function As(r,e){var t,n,i;if(e.isZero())return e;n=e.d.length,n<32?(t=Math.ceil(n/3),i=(1/ur(4,t)).toString()):(t=16,i="2.3283064365386962890625e-10"),r.precision+=t,e=Nt(r,1,e.times(i),new r(1));for(var o=t;o--;){var f=e.times(e);e=f.times(f).minus(f).times(8).plus(1)}return r.precision-=t,e}var ye=function(){function r(n,i,o){var f,c=0,x=n.length;for(n=n.slice();x--;)f=n[x]*i+c,n[x]=f%o|0,c=f/o|0;return c&&n.unshift(c),n}function e(n,i,o,f){var c,x;if(o!=f)x=o>f?1:-1;else for(c=x=0;c<o;c++)if(n[c]!=i[c]){x=n[c]>i[c]?1:-1;break}return x}function t(n,i,o,f){for(var c=0;o--;)n[o]-=c,c=n[o]<i[o]?1:0,n[o]=c*f+n[o]-i[o];for(;!n[0]&&n.length>1;)n.shift()}return function(n,i,o,f,c,x){var a,h,d,u,l,m,p,y,F,B,v,b,E,A,_,S,$,w,D,O,z=n.constructor,U=n.s==i.s?1:-1,M=n.d,P=i.d;if(!M||!M[0]||!P||!P[0])return new z(!n.s||!i.s||(M?P&&M[0]==P[0]:!P)?NaN:M&&M[0]==0||!P?U*0:U/0);for(x?(l=1,h=n.e-i.e):(x=et,l=se,h=Ve(n.e/l)-Ve(i.e/l)),D=P.length,$=M.length,F=new z(U),B=F.d=[],d=0;P[d]==(M[d]||0);d++);if(P[d]>(M[d]||0)&&h--,o==null?(A=o=z.precision,f=z.rounding):c?A=o+(n.e-i.e)+1:A=o,A<0)B.push(1),m=!0;else{if(A=A/l+2|0,d=0,D==1){for(u=0,P=P[0],A++;(d<$||u)&&A--;d++)_=u*x+(M[d]||0),B[d]=_/P|0,u=_%P|0;m=u||d<$}else{for(u=x/(P[0]+1)|0,u>1&&(P=r(P,u,x),M=r(M,u,x),D=P.length,$=M.length),S=D,v=M.slice(0,D),b=v.length;b<D;)v[b++]=0;O=P.slice(),O.unshift(0),w=P[0],P[1]>=x/2&&++w;do u=0,a=e(P,v,D,b),a<0?(E=v[0],D!=b&&(E=E*x+(v[1]||0)),u=E/w|0,u>1?(u>=x&&(u=x-1),p=r(P,u,x),y=p.length,b=v.length,a=e(p,v,y,b),a==1&&(u--,t(p,D<y?O:P,y,x))):(u==0&&(a=u=1),p=P.slice()),y=p.length,y<b&&p.unshift(0),t(v,p,b,x),a==-1&&(b=v.length,a=e(P,v,D,b),a<1&&(u++,t(v,D<b?O:P,b,x))),b=v.length):a===0&&(u++,v=[0]),B[d++]=u,a&&v[0]?v[b++]=M[S]||0:(v=[M[S]],b=1);while((S++<$||v[0]!==void 0)&&A--);m=v[0]!==void 0}B[0]||B.shift()}if(l==1)F.e=h,ai=m;else{for(d=1,u=B[0];u>=10;u/=10)d++;F.e=d+h*l-1,oe(F,c?o+F.e+1:o,f,m)}return F}}();function oe(r,e,t,n){var i,o,f,c,x,a,h,d,u,l=r.constructor;e:if(e!=null){if(d=r.d,!d)return r;for(i=1,c=d[0];c>=10;c/=10)i++;if(o=e-i,o<0)o+=se,f=e,h=d[u=0],x=h/Ne(10,i-f-1)%10|0;else if(u=Math.ceil((o+1)/se),c=d.length,u>=c)if(n){for(;c++<=u;)d.push(0);h=x=0,i=1,o%=se,f=o-se+1}else break e;else{for(h=c=d[u],i=1;c>=10;c/=10)i++;o%=se,f=o-se+i,x=f<0?0:h/Ne(10,i-f-1)%10|0}if(n=n||e<0||d[u+1]!==void 0||(f<0?h:h%Ne(10,i-f-1)),a=t<4?(x||n)&&(t==0||t==(r.s<0?3:2)):x>5||x==5&&(t==4||n||t==6&&(o>0?f>0?h/Ne(10,i-f):0:d[u-1])%10&1||t==(r.s<0?8:7)),e<1||!d[0])return d.length=0,a?(e-=r.e+1,d[0]=Ne(10,(se-e%se)%se),r.e=-e||0):d[0]=r.e=0,r;if(o==0?(d.length=u,c=1,u--):(d.length=u+1,c=Ne(10,se-o),d[u]=f>0?(h/Ne(10,i-f)%Ne(10,f)|0)*c:0),a)for(;;)if(u==0){for(o=1,f=d[0];f>=10;f/=10)o++;for(f=d[0]+=c,c=1;f>=10;f/=10)c++;o!=c&&(r.e++,d[0]==et&&(d[0]=1));break}else{if(d[u]+=c,d[u]!=et)break;d[u--]=0,c=1}for(o=d.length;d[--o]===0;)d.pop()}return le&&(r.e>l.maxE?(r.d=null,r.e=NaN):r.e<l.minE&&(r.e=0,r.d=[0])),r}function at(r,e,t){if(!r.isFinite())return vi(r);var n,i=r.e,o=Oe(r.d),f=o.length;return e?(t&&(n=t-f)>0?o=o.charAt(0)+"."+o.slice(1)+Et(n):f>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(r.e<0?"e":"e+")+r.e):i<0?(o="0."+Et(-i-1)+o,t&&(n=t-f)>0&&(o+=Et(n))):i>=f?(o+=Et(i+1-f),t&&(n=t-i-1)>0&&(o=o+"."+Et(n))):((n=i+1)<f&&(o=o.slice(0,n)+"."+o.slice(n)),t&&(n=t-f)>0&&(i+1===f&&(o+="."),o+=Et(n))),o}function fr(r,e){var t=r[0];for(e*=se;t>=10;t/=10)e++;return e}function lr(r,e,t){if(e>Cs)throw le=!0,t&&(r.precision=t),Error(ci);return oe(new r(or),e,1,!0)}function tt(r,e,t){if(e>E0)throw Error(ci);return oe(new r(sr),e,t,!0)}function di(r){var e=r.length-1,t=e*se+1;if(e=r[e],e){for(;e%10==0;e/=10)t--;for(e=r[0];e>=10;e/=10)t++}return t}function Et(r){for(var e="";r--;)e+="0";return e}function hi(r,e,t,n){var i,o=new r(1),f=Math.ceil(n/se+4);for(le=!1;;){if(t%2&&(o=o.times(e),gi(o.d,f)&&(i=!0)),t=Ve(t/2),t===0){t=o.d.length-1,i&&o.d[t]===0&&++o.d[t];break}e=e.times(e),gi(e.d,f)}return le=!0,o}function xi(r){return r.d[r.d.length-1]&1}function pi(r,e,t){for(var n,i=new r(e[0]),o=0;++o<e.length;)if(n=new r(e[o]),n.s)i[t](n)&&(i=n);else{i=n;break}return i}function B0(r,e){var t,n,i,o,f,c,x,a=0,h=0,d=0,u=r.constructor,l=u.rounding,m=u.precision;if(!r.d||!r.d[0]||r.e>17)return new u(r.d?r.d[0]?r.s<0?0:1/0:1:r.s?r.s<0?0:r:0/0);for(e==null?(le=!1,x=m):x=e,c=new u(.03125);r.e>-2;)r=r.times(c),d+=5;for(n=Math.log(Ne(2,d))/Math.LN10*2+5|0,x+=n,t=o=f=new u(1),u.precision=x;;){if(o=oe(o.times(r),x,1),t=t.times(++h),c=f.plus(ye(o,t,x,1)),Oe(c.d).slice(0,x)===Oe(f.d).slice(0,x)){for(i=d;i--;)f=oe(f.times(f),x,1);if(e==null)if(a<3&&$t(f.d,x-n,l,a))u.precision=x+=10,t=o=c=new u(1),h=0,a++;else return oe(f,u.precision=m,l,le=!0);else return u.precision=m,f}f=c}}function Bt(r,e){var t,n,i,o,f,c,x,a,h,d,u,l=1,m=10,p=r,y=p.d,F=p.constructor,B=F.rounding,v=F.precision;if(p.s<0||!y||!y[0]||!p.e&&y[0]==1&&y.length==1)return new F(y&&!y[0]?-1/0:p.s!=1?NaN:y?0:p);if(e==null?(le=!1,h=v):h=e,F.precision=h+=m,t=Oe(y),n=t.charAt(0),Math.abs(o=p.e)<15e14){for(;n<7&&n!=1||n==1&&t.charAt(1)>3;)p=p.times(r),t=Oe(p.d),n=t.charAt(0),l++;o=p.e,n>1?(p=new F("0."+t),o++):p=new F(n+"."+t.slice(1))}else return a=lr(F,h+2,v).times(o+""),p=Bt(new F(n+"."+t.slice(1)),h-m).plus(a),F.precision=v,e==null?oe(p,v,B,le=!0):p;for(d=p,x=f=p=ye(p.minus(1),p.plus(1),h,1),u=oe(p.times(p),h,1),i=3;;){if(f=oe(f.times(u),h,1),a=x.plus(ye(f,new F(i),h,1)),Oe(a.d).slice(0,h)===Oe(x.d).slice(0,h))if(x=x.times(2),o!==0&&(x=x.plus(lr(F,h+2,v).times(o+""))),x=ye(x,new F(l),h,1),e==null)if($t(x.d,h-m,B,c))F.precision=h+=m,a=f=p=ye(d.minus(1),d.plus(1),h,1),u=oe(p.times(p),h,1),i=c=1;else return oe(x,F.precision=v,B,le=!0);else return F.precision=v,x;x=a,i+=2}}function vi(r){return String(r.s*r.s/0)}function _0(r,e){var t,n,i;for((t=e.indexOf("."))>-1&&(e=e.replace(".","")),(n=e.search(/e/i))>0?(t<0&&(t=n),t+=+e.slice(n+1),e=e.substring(0,n)):t<0&&(t=e.length),n=0;e.charCodeAt(n)===48;n++);for(i=e.length;e.charCodeAt(i-1)===48;--i);if(e=e.slice(n,i),e){if(i-=n,r.e=t=t-n-1,r.d=[],n=(t+1)%se,t<0&&(n+=se),n<i){for(n&&r.d.push(+e.slice(0,n)),i-=se;n<i;)r.d.push(+e.slice(n,n+=se));e=e.slice(n),n=se-e.length}else n-=i;for(;n--;)e+="0";r.d.push(+e),le&&(r.e>r.constructor.maxE?(r.d=null,r.e=NaN):r.e<r.constructor.minE&&(r.e=0,r.d=[0]))}else r.e=0,r.d=[0];return r}function ws(r,e){var t,n,i,o,f,c,x,a,h;if(e.indexOf("_")>-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),ui.test(e))return _0(r,e)}else if(e==="Infinity"||e==="NaN")return+e||(r.s=NaN),r.e=NaN,r.d=null,r;if(Es.test(e))t=16,e=e.toLowerCase();else if(ys.test(e))t=2;else if(Bs.test(e))t=8;else throw Error(yt+e);for(o=e.search(/p/i),o>0?(x=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),o=e.indexOf("."),f=o>=0,n=r.constructor,f&&(e=e.replace(".",""),c=e.length,o=c-o,i=hi(n,new n(t),o,o*2)),a=cr(e,t,et),h=a.length-1,o=h;a[o]===0;--o)a.pop();return o<0?new n(r.s*0):(r.e=fr(a,h),r.d=a,le=!1,f&&(r=ye(r,i,c*4)),x&&(r=r.times(Math.abs(x)<54?Ne(2,x):Mt.pow(2,x))),le=!0,r)}function Ds(r,e){var t,n=e.d.length;if(n<3)return e.isZero()?e:Nt(r,2,e,e);t=1.4*Math.sqrt(n),t=t>16?16:t|0,e=e.times(1/ur(5,t)),e=Nt(r,2,e,e);for(var i,o=new r(5),f=new r(16),c=new r(20);t--;)i=e.times(e),e=e.times(o.plus(i.times(f.times(i).minus(c))));return e}function Nt(r,e,t,n,i){var o,f,c,x,a=r.precision,h=Math.ceil(a/se);for(le=!1,x=t.times(t),c=new r(n);;){if(f=ye(c.times(x),new r(e++*e++),a,1),c=i?n.plus(f):n.minus(f),n=ye(f.times(x),new r(e++*e++),a,1),f=c.plus(n),f.d[h]!==void 0){for(o=h;f.d[o]===c.d[o]&&o--;);if(o==-1)break}o=c,c=n,n=f,f=o}return le=!0,f.d.length=h+1,f}function ur(r,e){for(var t=r;--e;)t*=r;return t}function bi(r,e){var t,n=e.s<0,i=tt(r,r.precision,1),o=i.times(.5);if(e=e.abs(),e.lte(o))return dt=n?4:1,e;if(t=e.divToInt(i),t.isZero())dt=n?3:2;else{if(e=e.minus(t.times(i)),e.lte(o))return dt=xi(t)?n?2:3:n?4:1,e;dt=xi(t)?n?1:4:n?3:2}return e.minus(i).abs()}function C0(r,e,t,n){var i,o,f,c,x,a,h,d,u,l=r.constructor,m=t!==void 0;if(m?(qe(t,1,mt),n===void 0?n=l.rounding:qe(n,0,8)):(t=l.precision,n=l.rounding),!r.isFinite())h=vi(r);else{for(h=at(r),f=h.indexOf("."),m?(i=2,e==16?t=t*4-3:e==8&&(t=t*3-2)):i=e,f>=0&&(h=h.replace(".",""),u=new l(1),u.e=h.length-f,u.d=cr(at(u),10,i),u.e=u.d.length),d=cr(h,10,i),o=x=d.length;d[--x]==0;)d.pop();if(!d[0])h=m?"0p+0":"0";else{if(f<0?o--:(r=new l(r),r.d=d,r.e=o,r=ye(r,u,t,n,0,i),d=r.d,o=r.e,a=ai),f=d[t],c=i/2,a=a||d[t+1]!==void 0,a=n<4?(f!==void 0||a)&&(n===0||n===(r.s<0?3:2)):f>c||f===c&&(n===4||a||n===6&&d[t-1]&1||n===(r.s<0?8:7)),d.length=t,a)for(;++d[--t]>i-1;)d[t]=0,t||(++o,d.unshift(1));for(x=d.length;!d[x-1];--x);for(f=0,h="";f<x;f++)h+=m0.charAt(d[f]);if(m){if(x>1)if(e==16||e==8){for(f=e==16?4:3,--x;x%f;x++)h+="0";for(d=cr(h,i,e),x=d.length;!d[x-1];--x);for(f=1,h="1.";f<x;f++)h+=m0.charAt(d[f])}else h=h.charAt(0)+"."+h.slice(1);h=h+(o<0?"p":"p+")+o}else if(o<0){for(;++o;)h="0"+h;h="0."+h}else if(++o>x)for(o-=x;o--;)h+="0";else o<x&&(h=h.slice(0,o)+"."+h.slice(o))}h=(e==16?"0x":e==2?"0b":e==8?"0o":"")+h}return r.s<0?"-"+h:h}function gi(r,e){if(r.length>e)return r.length=e,!0}function ks(r){return new this(r).abs()}function Fs(r){return new this(r).acos()}function Ss(r){return new this(r).acosh()}function Ns(r,e){return new this(r).plus(e)}function Ts(r){return new this(r).asin()}function Rs(r){return new this(r).asinh()}function Ls(r){return new this(r).atan()}function Os(r){return new this(r).atanh()}function Is(r,e){r=new this(r),e=new this(e);var t,n=this.precision,i=this.rounding,o=n+4;return!r.s||!e.s?t=new this(NaN):!r.d&&!e.d?(t=tt(this,o,1).times(e.s>0?.25:.75),t.s=r.s):!e.d||r.isZero()?(t=e.s<0?tt(this,n,i):new this(0),t.s=r.s):!r.d||e.isZero()?(t=tt(this,o,1).times(.5),t.s=r.s):e.s<0?(this.precision=o,this.rounding=1,t=this.atan(ye(r,e,o,1)),e=tt(this,o,1),this.precision=n,this.rounding=i,t=r.s<0?t.minus(e):t.plus(e)):t=this.atan(ye(r,e,o,1)),t}function Ps(r){return new this(r).cbrt()}function Vs(r){return oe(r=new this(r),r.e+1,2)}function $s(r,e,t){return new this(r).clamp(e,t)}function Ms(r){if(!r||typeof r!="object")throw Error(ar+"Object expected");var e,t,n,i=r.defaults===!0,o=["precision",1,mt,"rounding",0,8,"toExpNeg",-St,0,"toExpPos",0,St,"maxE",0,St,"minE",-St,0,"modulo",0,9];for(e=0;e<o.length;e+=3)if(t=o[e],i&&(this[t]=y0[t]),(n=r[t])!==void 0)if(Ve(n)===n&&n>=o[e+1]&&n<=o[e+2])this[t]=n;else throw Error(yt+t+": "+n);if(t="crypto",i&&(this[t]=y0[t]),(n=r[t])!==void 0)if(n===!0||n===!1||n===0||n===1)if(n)if(typeof crypto<"u"&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[t]=!0;else throw Error(fi);else this[t]=!1;else throw Error(yt+t+": "+n);return this}function zs(r){return new this(r).cos()}function Hs(r){return new this(r).cosh()}function mi(r){var e,t,n;function i(o){var f,c,x,a=this;if(!(a instanceof i))return new i(o);if(a.constructor=i,yi(o)){a.s=o.s,le?!o.d||o.e>i.maxE?(a.e=NaN,a.d=null):o.e<i.minE?(a.e=0,a.d=[0]):(a.e=o.e,a.d=o.d.slice()):(a.e=o.e,a.d=o.d?o.d.slice():o.d);return}if(x=typeof o,x==="number"){if(o===0){a.s=1/o<0?-1:1,a.e=0,a.d=[0];return}if(o<0?(o=-o,a.s=-1):a.s=1,o===~~o&&o<1e7){for(f=0,c=o;c>=10;c/=10)f++;le?f>i.maxE?(a.e=NaN,a.d=null):f<i.minE?(a.e=0,a.d=[0]):(a.e=f,a.d=[o]):(a.e=f,a.d=[o]);return}else if(o*0!==0){o||(a.s=NaN),a.e=NaN,a.d=null;return}return _0(a,o.toString())}else if(x!=="string")throw Error(yt+o);return(c=o.charCodeAt(0))===45?(o=o.slice(1),a.s=-1):(c===43&&(o=o.slice(1)),a.s=1),ui.test(o)?_0(a,o):ws(a,o)}if(i.prototype=K,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=Ms,i.clone=mi,i.isDecimal=yi,i.abs=ks,i.acos=Fs,i.acosh=Ss,i.add=Ns,i.asin=Ts,i.asinh=Rs,i.atan=Ls,i.atanh=Os,i.atan2=Is,i.cbrt=Ps,i.ceil=Vs,i.clamp=$s,i.cos=zs,i.cosh=Hs,i.div=qs,i.exp=Us,i.floor=Ws,i.hypot=Ys,i.ln=Ks,i.log=Gs,i.log10=Xs,i.log2=js,i.max=Zs,i.min=Qs,i.mod=Js,i.mul=ea,i.pow=ta,i.random=ra,i.round=na,i.sign=ia,i.sin=oa,i.sinh=sa,i.sqrt=aa,i.sub=ca,i.sum=fa,i.tan=la,i.tanh=ua,i.trunc=da,r===void 0&&(r={}),r&&r.defaults!==!0)for(n=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"],e=0;e<n.length;)r.hasOwnProperty(t=n[e++])||(r[t]=this[t]);return i.config(r),i}function qs(r,e){return new this(r).div(e)}function Us(r){return new this(r).exp()}function Ws(r){return oe(r=new this(r),r.e+1,3)}function Ys(){var r,e,t=new this(0);for(le=!1,r=0;r<arguments.length;)if(e=new this(arguments[r++]),e.d)t.d&&(t=t.plus(e.times(e)));else{if(e.s)return le=!0,new this(1/0);t=e}return le=!0,t.sqrt()}function yi(r){return r instanceof Mt||r&&r.toStringTag===li||!1}function Ks(r){return new this(r).ln()}function Gs(r,e){return new this(r).log(e)}function js(r){return new this(r).log(2)}function Xs(r){return new this(r).log(10)}function Zs(){return pi(this,arguments,"lt")}function Qs(){return pi(this,arguments,"gt")}function Js(r,e){return new this(r).mod(e)}function ea(r,e){return new this(r).mul(e)}function ta(r,e){return new this(r).pow(e)}function ra(r){var e,t,n,i,o=0,f=new this(1),c=[];if(r===void 0?r=this.precision:qe(r,1,mt),n=Math.ceil(r/se),this.crypto)if(crypto.getRandomValues)for(e=crypto.getRandomValues(new Uint32Array(n));o<n;)i=e[o],i>=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:c[o++]=i%1e7;else if(crypto.randomBytes){for(e=crypto.randomBytes(n*=4);o<n;)i=e[o]+(e[o+1]<<8)+(e[o+2]<<16)+((e[o+3]&127)<<24),i>=214e7?crypto.randomBytes(4).copy(e,o):(c.push(i%1e7),o+=4);o=n/4}else throw Error(fi);else for(;o<n;)c[o++]=Math.random()*1e7|0;for(n=c[--o],r%=se,n&&r&&(i=Ne(10,se-r),c[o]=(n/i|0)*i);c[o]===0;o--)c.pop();if(o<0)t=0,c=[0];else{for(t=-1;c[0]===0;t-=se)c.shift();for(n=1,i=c[0];i>=10;i/=10)n++;n<se&&(t-=se-n)}return f.e=t,f.d=c,f}function na(r){return oe(r=new this(r),r.e+1,this.rounding)}function ia(r){return r=new this(r),r.d?r.d[0]?r.s:0*r.s:r.s||NaN}function oa(r){return new this(r).sin()}function sa(r){return new this(r).sinh()}function aa(r){return new this(r).sqrt()}function ca(r,e){return new this(r).sub(e)}function fa(){var r=0,e=arguments,t=new this(e[r]);for(le=!1;t.s&&++r<e.length;)t=t.plus(e[r]);return le=!0,oe(t,this.precision,this.rounding)}function la(r){return new this(r).tan()}function ua(r){return new this(r).tanh()}function da(r){return oe(r=new this(r),r.e+1,1)}K[Symbol.for("nodejs.util.inspect.custom")]=K.toString,K[Symbol.toStringTag]="Decimal";var Mt=K.constructor=mi(y0);or=new Mt(or),sr=new Mt(sr);var ha={exports:{}};/*!
26
+ * Waves v0.7.6
27
+ * http://fian.my.id/Waves
28
+ *
29
+ * Copyright 2014-2018 Alfiana E. Sibuea and other contributors
30
+ * Released under the MIT license
31
+ * https://github.com/fians/Waves/blob/master/LICENSE
32
+ */(function(r,e){(function(t,n){r.exports=n.call(t)})(ce,function(){var t=t||{},n=document.querySelectorAll.bind(document),i=Object.prototype.toString,o="ontouchstart"in window;function f(v){return v!==null&&v===v.window}function c(v){return f(v)?v:v.nodeType===9&&v.defaultView}function x(v){var b=typeof v;return b==="function"||b==="object"&&!!v}function a(v){return x(v)&&v.nodeType>0}function h(v){var b=i.call(v);return b==="[object String]"?n(v):x(v)&&/^\[object (Array|HTMLCollection|NodeList|Object)\]$/.test(b)&&v.hasOwnProperty("length")?v:a(v)?[v]:[]}function d(v){var b,E,A={top:0,left:0},_=v&&v.ownerDocument;return b=_.documentElement,typeof v.getBoundingClientRect<"u"&&(A=v.getBoundingClientRect()),E=c(_),{top:A.top+E.pageYOffset-b.clientTop,left:A.left+E.pageXOffset-b.clientLeft}}function u(v){var b="";for(var E in v)v.hasOwnProperty(E)&&(b+=E+":"+v[E]+";");return b}var l={duration:750,delay:200,show:function(v,b,E){if(v.button===2)return!1;b=b||this;var A=document.createElement("div");A.className="waves-ripple waves-rippling",b.appendChild(A);var _=d(b),S=0,$=0;"touches"in v&&v.touches.length?(S=v.touches[0].pageY-_.top,$=v.touches[0].pageX-_.left):(S=v.pageY-_.top,$=v.pageX-_.left),$=$>=0?$:0,S=S>=0?S:0;var w="scale("+b.clientWidth/100*3+")",D="translate(0,0)";E&&(D="translate("+E.x+"px, "+E.y+"px)"),A.setAttribute("data-hold",Date.now()),A.setAttribute("data-x",$),A.setAttribute("data-y",S),A.setAttribute("data-scale",w),A.setAttribute("data-translate",D);var O={top:S+"px",left:$+"px"};A.classList.add("waves-notransition"),A.setAttribute("style",u(O)),A.classList.remove("waves-notransition"),O["-webkit-transform"]=w+" "+D,O["-moz-transform"]=w+" "+D,O["-ms-transform"]=w+" "+D,O["-o-transform"]=w+" "+D,O.transform=w+" "+D,O.opacity="1";var z=v.type==="mousemove"?2500:l.duration;O["-webkit-transition-duration"]=z+"ms",O["-moz-transition-duration"]=z+"ms",O["-o-transition-duration"]=z+"ms",O["transition-duration"]=z+"ms",A.setAttribute("style",u(O))},hide:function(v,b){b=b||this;for(var E=b.getElementsByClassName("waves-rippling"),A=0,_=E.length;A<_;A++)p(v,b,E[A]);o&&(b.removeEventListener("touchend",l.hide),b.removeEventListener("touchcancel",l.hide)),b.removeEventListener("mouseup",l.hide),b.removeEventListener("mouseleave",l.hide)}},m={input:function(v){var b=v.parentNode;if(!(b.tagName.toLowerCase()==="i"&&b.classList.contains("waves-effect"))){var E=document.createElement("i");E.className=v.className+" waves-input-wrapper",v.className="waves-button-input",b.replaceChild(E,v),E.appendChild(v);var A=window.getComputedStyle(v,null),_=A.color,S=A.backgroundColor;E.setAttribute("style","color:"+_+";background:"+S),v.setAttribute("style","background-color:rgba(0,0,0,0);")}},img:function(v){var b=v.parentNode;if(!(b.tagName.toLowerCase()==="i"&&b.classList.contains("waves-effect"))){var E=document.createElement("i");b.replaceChild(E,v),E.appendChild(v)}}};function p(v,b,E){if(E){E.classList.remove("waves-rippling");var A=E.getAttribute("data-x"),_=E.getAttribute("data-y"),S=E.getAttribute("data-scale"),$=E.getAttribute("data-translate"),w=Date.now()-Number(E.getAttribute("data-hold")),D=350-w;D<0&&(D=0),v.type==="mousemove"&&(D=150);var O=v.type==="mousemove"?2500:l.duration;setTimeout(function(){var z={top:_+"px",left:A+"px",opacity:"0","-webkit-transition-duration":O+"ms","-moz-transition-duration":O+"ms","-o-transition-duration":O+"ms","transition-duration":O+"ms","-webkit-transform":S+" "+$,"-moz-transform":S+" "+$,"-ms-transform":S+" "+$,"-o-transform":S+" "+$,transform:S+" "+$};E.setAttribute("style",u(z)),setTimeout(function(){try{b.removeChild(E)}catch{return!1}},O)},D)}}var y={touches:0,allowEvent:function(v){var b=!0;return/^(mousedown|mousemove)$/.test(v.type)&&y.touches&&(b=!1),b},registerEvent:function(v){var b=v.type;b==="touchstart"?y.touches+=1:/^(touchend|touchcancel)$/.test(b)&&setTimeout(function(){y.touches&&(y.touches-=1)},500)}};function F(v){if(y.allowEvent(v)===!1)return null;for(var b=null,E=v.target||v.srcElement;E.parentElement;){if(!(E instanceof SVGElement)&&E.classList.contains("waves-effect")){b=E;break}E=E.parentElement}return b}function B(v){var b=F(v);if(b!==null){if(b.disabled||b.getAttribute("disabled")||b.classList.contains("disabled"))return;if(y.registerEvent(v),v.type==="touchstart"&&l.delay){var E=!1,A=setTimeout(function(){A=null,l.show(v,b)},l.delay),_=function(w){A&&(clearTimeout(A),A=null,l.show(v,b)),E||(E=!0,l.hide(w,b)),$()},S=function(w){A&&(clearTimeout(A),A=null),_(w),$()};b.addEventListener("touchmove",S,!1),b.addEventListener("touchend",_,!1),b.addEventListener("touchcancel",_,!1);var $=function(){b.removeEventListener("touchmove",S),b.removeEventListener("touchend",_),b.removeEventListener("touchcancel",_)}}else l.show(v,b),o&&(b.addEventListener("touchend",l.hide,!1),b.addEventListener("touchcancel",l.hide,!1)),b.addEventListener("mouseup",l.hide,!1),b.addEventListener("mouseleave",l.hide,!1)}}return t.init=function(v){var b=document.body;v=v||{},"duration"in v&&(l.duration=v.duration),"delay"in v&&(l.delay=v.delay),o&&(b.addEventListener("touchstart",B,!1),b.addEventListener("touchcancel",y.registerEvent,!1),b.addEventListener("touchend",y.registerEvent,!1)),b.addEventListener("mousedown",B,!1)},t.attach=function(v,b){v=h(v),i.call(b)==="[object Array]"&&(b=b.join(" ")),b=b?" "+b:"";for(var E,A,_=0,S=v.length;_<S;_++)E=v[_],A=E.tagName.toLowerCase(),["input","img"].indexOf(A)!==-1&&(m[A](E),E=E.parentElement),E.className.indexOf("waves-effect")===-1&&(E.className+=" waves-effect"+b)},t.ripple=function(v,b){v=h(v);var E=v.length;if(b=b||{},b.wait=b.wait||0,b.position=b.position||null,E){for(var A,_,S,$={},w=0,D={type:"mousedown",button:1},O=function(U,M){return function(){l.hide(U,M)}};w<E;w++)if(A=v[w],_=b.position||{x:A.clientWidth/2,y:A.clientHeight/2},S=d(A),$.x=S.left+_.x,$.y=S.top+_.y,D.pageX=$.x,D.pageY=$.y,l.show(D,A),b.wait>=0&&b.wait!==null){var z={type:"mouseup",button:1};setTimeout(O(z,A),b.wait)}}},t.calm=function(v){v=h(v);for(var b={type:"mouseup",button:1},E=0,A=v.length;E<A;E++)l.hide(b,v[E])},t.displayEffect=function(v){console.error("Waves.displayEffect() has been deprecated and will be removed in future version. Please use Waves.init() to initialize Waves effect"),t.init(v)},t})})(ha);const Vf="",fe={lunarInfo:[19416,19168,42352,21717,53856,55632,91476,22176,39632,21970,19168,42422,42192,53840,119381,46400,54944,44450,38320,84343,18800,42160,46261,27216,27968,109396,11104,38256,21234,18800,25958,54432,59984,28309,23248,11104,100067,37600,116951,51536,54432,120998,46416,22176,107956,9680,37584,53938,43344,46423,27808,46416,86869,19872,42416,83315,21168,43432,59728,27296,44710,43856,19296,43748,42352,21088,62051,55632,23383,22176,38608,19925,19152,42192,54484,53840,54616,46400,46752,103846,38320,18864,43380,42160,45690,27216,27968,44870,43872,38256,19189,18800,25776,29859,59984,27480,21952,43872,38613,37600,51552,55636,54432,55888,30034,22176,43959,9680,37584,51893,43344,46240,47780,44368,21977,19360,42416,86390,21168,43312,31060,27296,44368,23378,19296,42726,42208,53856,60005,54576,23200,30371,38608,19195,19152,42192,118966,53840,54560,56645,46496,22224,21938,18864,42359,42160,43600,111189,27936,44448,84835,37744,18936,18800,25776,92326,59984,27424,108228,43744,41696,53987,51552,54615,54432,55888,23893,22176,42704,21972,21200,43448,43344,46240,46758,44368,21920,43940,42416,21168,45683,26928,29495,27296,44368,84821,19296,42352,21732,53600,59752,54560,55968,92838,22224,19168,43476,41680,53584,62034,54560],solarMonth:[31,28,31,30,31,30,31,31,30,31,30,31],Gan:["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"],Zhi:["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"],Animals:["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"],solarTerm:["小寒","大寒","立春","雨水","惊蛰","春分","清明","谷雨","立夏","小满","芒种","夏至","小暑","大暑","立秋","处暑","白露","秋分","寒露","霜降","立冬","小雪","大雪","冬至"],sTermInfo:["9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd0b06bdb0722c965ce1cfcc920f","b027097bd097c36b0b6fc9274c91aa","9778397bd19801ec9210c965cc920e","97b6b97bd19801ec95f8c965cc920f","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd197c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bd09801d98082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec95f8c965cc920e","97bcf97c3598082c95f8e1cfcc920f","97bd097bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c3598082c95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf97c359801ec95f8c965cc920f","97bd097bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd19801ec9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b97bd19801ec95f8c965cc920f","97bd07f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c91aa","97b6b97bd19801ec9210c965cc920e","97bd07f1487f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c965cc920e","97bcf7f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b97bd19801ec9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b97bd197c36c9210c9274c920e","97bcf7f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","9778397bd097c36c9210c9274c920e","97b6b7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c36b0b6fc9210c8dc2","9778397bd097c36b0b70c9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9274c91aa","97b6b7f0e47f531b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c91aa","97b6b7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","9778397bd097c36b0b6fc9210c8dc2","977837f0e37f149b0723b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f5307f595b0b0bc920fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f595b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc9210c8dc2","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd097c35b0b6fc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0b0bb0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14998082b0723b06bd","7f07e7f0e37f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e397bd07f595b0b0bc920fb0722","977837f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f595b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e37f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f1487f531b0b0bb0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e47f149b0723b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14998082b0723b06bd","7f07e7f0e37f14998083b0787b0721","7f0e27f0e47f531b0723b0b6fb0722","7f0e37f0e366aa89801eb072297c35","7ec967f0e37f14898082b0723b02d5","7f07e7f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66aa89801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b0721","7f07e7f0e47f531b0723b0b6fb0722","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b0723b02d5","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e36665b66a449801e9808297c35","665f67f0e37f14898082b072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e26665b66a449801e9808297c35","665f67f0e37f1489801eb072297c35","7ec967f0e37f14998082b0787b06bd","7f07e7f0e47f531b0723b0b6fb0721","7f0e27f1487f531b0b0bb0b6fb0722"],nStr1:["日","一","二","三","四","五","六","七","八","九","十"],nStr2:["初","十","廿","卅"],nStr3:["正","二","三","四","五","六","七","八","九","十","冬","腊"],lunarFestival:[{month:"正",day:"初一",name:"春节"},{month:"正",day:"十五",name:"元宵节"},{month:"二",day:"初二",name:"龙抬头"},{month:"五",day:"初五",name:"端午节"},{month:"七",day:"初七",name:"七夕节"},{month:"七",day:"十五",name:"中元节"},{month:"八",day:"十五",name:"中秋节"},{month:"九",day:"初九",name:"重阳节"},{month:"腊",day:"除夕",name:"除夕"}],solarFestival:[{month:1,day:1,name:"元旦节"},{month:3,day:8,name:"妇女节"},{month:3,day:12,name:"植树节"},{month:4,day:5,name:"清明节"},{month:5,day:1,name:"劳动节"},{month:5,day:4,name:"青年节"},{month:6,day:1,name:"儿童节"},{month:7,day:1,name:"建党节"},{month:8,day:1,name:"建军节"},{month:9,day:10,name:"教师节"},{month:10,day:1,name:"国庆节"}],lYearDays:function(r){var e,t=348;for(e=32768;e>8;e>>=1)t+=fe.lunarInfo[r-1900]&e?1:0;return t+fe.leapDays(r)},leapMonth:function(r){return 15&fe.lunarInfo[r-1900]},leapDays:function(r){return fe.leapMonth(r)?65536&fe.lunarInfo[r-1900]?30:29:0},monthDays:function(r,e){return e>12||e<1?-1:fe.lunarInfo[r-1900]&65536>>e?30:29},solarDays:function(r,e){if(e>12||e<1)return-1;var t=e-1;return t==1?r%4==0&&r%100!=0||r%400==0?29:28:fe.solarMonth[t]},toGanZhiYear:function(r){var e=(r-3)%10,t=(r-3)%12;return e==0&&(e=10),t==0&&(t=12),fe.Gan[e-1]+fe.Zhi[t-1]},toAstro:function(r,e){return"魔羯水瓶双鱼白羊金牛双子巨蟹狮子处女天秤天蝎射手魔羯".substr(2*r-(e<[20,19,21,21,21,22,23,23,23,23,22,22][r-1]?2:0),2)+"座"},toGanZhi:function(r){return fe.Gan[r%10]+fe.Zhi[r%12]},getTerm:function(r,e){if(r<1900||r>2100||e<1||e>24)return-1;var t=fe.sTermInfo[r-1900],n=[parseInt("0x"+t.substr(0,5)).toString(),parseInt("0x"+t.substr(5,5)).toString(),parseInt("0x"+t.substr(10,5)).toString(),parseInt("0x"+t.substr(15,5)).toString(),parseInt("0x"+t.substr(20,5)).toString(),parseInt("0x"+t.substr(25,5)).toString()],i=[n[0].substr(0,1),n[0].substr(1,2),n[0].substr(3,1),n[0].substr(4,2),n[1].substr(0,1),n[1].substr(1,2),n[1].substr(3,1),n[1].substr(4,2),n[2].substr(0,1),n[2].substr(1,2),n[2].substr(3,1),n[2].substr(4,2),n[3].substr(0,1),n[3].substr(1,2),n[3].substr(3,1),n[3].substr(4,2),n[4].substr(0,1),n[4].substr(1,2),n[4].substr(3,1),n[4].substr(4,2),n[5].substr(0,1),n[5].substr(1,2),n[5].substr(3,1),n[5].substr(4,2)];return parseInt(i[e-1])},toChinaMonth:function(r){if(r>12||r<1)return-1;var e=fe.nStr3[r-1];return e+="月"},toChinaDay:function(r){var e;switch(r){case 10:e="初十";break;case 20:e="二十";break;case 30:e="三十";break;default:e=fe.nStr2[Math.floor(r/10)],e+=fe.nStr1[r%10]}return e},getAnimal:function(r){return fe.Animals[(r-4)%12]},getFestival:(r,e,t,n)=>{let i=null;const o=parseInt(r+"");return i=o?fe.solarFestival.find(f=>f.month===o&&f.day==e):fe.lunarFestival.find(f=>`${f.month}月`===r&&f.day===e),i},solar2lunar:function(r,e,t){if(r<1900||r>2100||r==1900&&e==1&&t<31)return-1;if(r)n=new Date(r,parseInt(e+"")-1,t);else var n=new Date;var i,o=0,f=(r=n.getFullYear(),e=n.getMonth()+1,t=n.getDate(),(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(1900,0,31))/864e5);for(i=1900;i<2101&&f>0;i++)f-=o=fe.lYearDays(i);f<0&&(f+=o,i--);var c=new Date,x=!1;c.getFullYear()==r&&c.getMonth()+1==e&&c.getDate()==t&&(x=!0);var a=n.getDay(),h=fe.nStr1[a];a==0&&(a=7);var d=i,u=fe.leapMonth(i),l=!1;for(i=1;i<13&&f>0;i++)u>0&&i==u+1&&l==0?(--i,l=!0,o=fe.leapDays(d)):o=fe.monthDays(d,i),l==1&&i==u+1&&(l=!1),f-=o;f==0&&u>0&&i==u+1&&(l?l=!1:(l=!0,--i)),f<0&&(f+=o,--i);var m=i,p=f+1,y=e-1,F=fe.toGanZhiYear(d),B=fe.getTerm(d,2*e-1),v=fe.getTerm(d,2*e),b=fe.toGanZhi(12*(r-1900)+e+11);t>=B&&(b=fe.toGanZhi(12*(r-1900)+e+12));var E=!1,A=null;B==t&&(E=!0,A=fe.solarTerm[2*e-2]),v==t&&(E=!0,A=fe.solarTerm[2*e-1]);var _=Date.UTC(r,y,1,0,0,0,0)/864e5+25567+10,S=fe.toGanZhi(_+t-1),$=fe.toAstro(e,t);const w=fe.toChinaMonth(m),D=fe.toChinaDay(p);return{lYear:d,lMonth:m,lDay:p,Animal:fe.getAnimal(d),IMonthCn:(l?"闰":"")+w,IDayCn:D,cYear:r,cMonth:e,cDay:t,gzYear:F,gzMonth:b,gzDay:S,isToday:x,isLeap:l,nWeek:a,ncWeek:"星期"+h,isTerm:E,Term:A,astro:$,festcn:fe.getFestival(w,D,r,e),fest:fe.getFestival(e,t,r)}},lunar2solar:function(r,e,t,n=!0){n=!!n;var i=fe.leapMonth(r);if(fe.leapDays(r),n&&i!=e||r==2100&&e==12&&t>1||r==1900&&e==1&&t<31)return-1;var o=fe.monthDays(r,e),f=o;if(n&&(f=fe.leapDays(r)),r<1900||r>2100||t>f)return-1;for(var c=0,x=1900;x<r;x++)c+=fe.lYearDays(x);var a=0,h=!1;for(x=1;x<e;x++)a=fe.leapMonth(r),h||a<=x&&a>0&&(c+=fe.leapDays(r),h=!0),c+=fe.monthDays(r,x);n&&(c+=o);var d=Date.UTC(1900,1,30,0,0,0),u=new Date(864e5*(c+t-31)+d),l=u.getUTCFullYear(),m=u.getUTCMonth()+1,p=u.getUTCDate();return fe.solar2lunar(l,m,p)}};fe.lunar2solar;function ht(r,e){return Object.prototype.toString.call(r)===`[object ${e}]`}function Ei(r){return Object.prototype.toString.call(r)}const Ut=class Ut{static getTypeLong(e){return Ei(e)}static getType(e){const t=Ei(e);return t.substring(8,t.length-1).toLocaleLowerCase()}static isDef(e){return e!==void 0}static isUnDef(e){return!this.isDef(e)}static isObject(e){return e!==null&&ht(e,"Object")}static isEmpty(e){return this.isArray(e)||this.isString(e)?e.length===0:e instanceof Map||e instanceof Set?e.size===0:!!this.isObject(e)&&Object.keys(e).length===0}static isDate(e){return ht(e,"Date")}static isNull(e){return e===null}static isNullAndUnDef(e){return this.isUnDef(e)&&this.isNull(e)}static isNullOrUnDef(e){return this.isUnDef(e)||this.isNull(e)}static isNumber(e){return ht(e,"Number")}static isPromise(e){return ht(e,"Promise")&&this.isObject(e)&&this.isFunction(e.then)&&this.isFunction(e.catch)}static isString(e){return ht(e,"String")}static isFunction(e){return typeof e=="function"}static isBoolean(e){return ht(e,"Boolean")}static isRegExp(e){return ht(e,"RegExp")}static isArray(e){return e&&Array.isArray(e)}static isWindow(e){return typeof window<"u"&&ht(e,"Window")}static isElement(e){return this.isObject(e)&&!!e.tagName}static isMap(e){return ht(e,"Map")}static isUrl(e){return/(((^https?:(?:\/\/)?)(?:[-;:&=\+\$,\w]+@)?[A-Za-z0-9.-]+(?::\d+)?|(?:www.|[-;:&=\+\$,\w]+@)[A-Za-z0-9.-]+)((?:\/[\+~%\/.\w-_]*)?\??(?:[-\+=&;%@.\w_]*)#?(?:[\w]*))?)$/.test(e)}};z0(Ut,"isServer",typeof window>"u"),z0(Ut,"isClient",!Ut.isServer);let A0=Ut;for(let r=0;r<=15;r++)r.toString(16);(typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof globalThis=="object"&&globalThis.globalThis===globalThis?globalThis:void 0).navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&/Safari/.test(navigator.userAgent);var w0={local:{has:r=>Object.prototype.hasOwnProperty.call(localStorage,r),setItem:(r,e,t=0)=>{const n=new Date().getTime(),i=A0.isDate(t)?n+1e3*t:0;localStorage.setItem(r,JSON.stringify({value:e,overTime:i}))},getItem:r=>{const e=localStorage.getItem(r);if(!e)return null;const t=JSON.parse(e);return new Date().getTime()>t.overTime&&t.overTime!==0?(localStorage.removeItem(r),null):t.value},removeItem:r=>{r&&localStorage.removeItem(r)},clear:r=>{r?localStorage.removeItem(r):localStorage.clear()},size:()=>{const r=Object.keys(localStorage);let e=0;for(let t=0;t<r.length;t++){const n=r[t],i=localStorage.getItem(n)||"";e+=2*(n.length+i.length)}return Math.round(e/1024)}},session:{has:r=>Object.prototype.hasOwnProperty.call(sessionStorage,r),setItem:(r,e,t=0)=>{const n=new Date().getTime(),i=t?n+1e3*t:0;sessionStorage.setItem(r,JSON.stringify({value:e,overTime:i}))},getItem:r=>{const e=sessionStorage.getItem(r);if(!e)return null;const t=JSON.parse(e);return new Date().getTime()>t.overTime&&t.overTime!==0?(sessionStorage.removeItem(r),null):t.value},removeItem:r=>{r&&sessionStorage.removeItem(r)},clear:r=>{r?sessionStorage.removeItem(r):sessionStorage.clear()},size:()=>{const r=Object.keys(sessionStorage);let e=0;for(let t=0;t<r.length;t++){const n=r[t],i=sessionStorage.getItem(n)||"";e+=2*(n.length+i.length)}return Math.round(e/1024)}},forage:So,cookie:On};window.socketMap=new Map,Mt.set({precision:14});var xa=Object.freeze({__proto__:null,debounce:function(r,e){let t;return n=>{clearTimeout(t),t=setTimeout(()=>{r(n)},e)}},throttle:function(r,e){let t=0;return n=>{const i=new Date().getTime();i-t>e&&(r(n),t=i)}}});const ct=Ni,pa={},va={t:"1672196428320",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3618",width:"200",height:"200"},ba=[s.createElementVNode("path",{d:"M384 250V134a70 70 0 0 0-70-70H134a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70z m-80-10H144v-96h160zM890 704H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V774a70 70 0 0 0-70-70z m-10 176H720v-96h160zM890 384H710a70 70 0 0 0-70 70v116a70 70 0 0 0 70 70h180a70 70 0 0 0 70-70V454a70 70 0 0 0-70-70z m-10 176H720v-96h160zM536 504H264v-80a40 40 0 0 0-40-40 40 40 0 0 0-40 40v432a40 40 0 0 0 40 40h312a40 40 0 0 0 40-40 40 40 0 0 0-40-40H264V584h272a40 40 0 0 0 40-40 40 40 0 0 0-40-40z","p-id":"3619","data-spm-anchor-id":"a313x.7781069.0.i2",class:"selected"},null,-1)];function ga(r,e){return s.openBlock(),s.createElementBlock("svg",va,ba)}const D0=Qe(pa,[["render",ga]]),ma={},ya={t:"1672197639916",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19012"},Ea=[s.createElementVNode("path",{d:"M863.1 255.1H551.3c-25.1 0-49.2-9.8-67.1-27.4l-75-73.4c-17.9-17.5-42-27.4-67.1-27.4H161c-53 0-96 43-96 96v512.8c0 53 43 96 96 96h702c53 0 96-43 96-96V351.1c0.1-53-42.9-96-95.9-96z m-31 161.1c0 17.7-14.3 32-32 32H224c-17.7 0-32-14.3-32-32v-0.1c0-17.7 14.3-32 32-32h576.1c17.7 0 32 14.3 32 32v0.1z","p-id":"19013"},null,-1)];function Ba(r,e){return s.openBlock(),s.createElementBlock("svg",ya,Ea)}const zt=Qe(ma,[["render",Ba]]),_a={},Ca={t:"1672197222005",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"14755"},Aa=[s.createElementVNode("path",{d:"M959.68 921.024c-15.232-181.696-139.648-331.968-307.84-386.624 70.464-45.632 117.248-124.48 117.248-214.464C769.152 178.624 654.208 64 512.512 64 370.752 64 255.808 178.624 255.808 319.936c0 89.984 46.784 168.832 117.248 214.528-168.192 54.592-292.544 204.864-307.84 386.56-0.192 3.456-0.64 5.44 0 10.176C66.496 947.2 80.64 960 96.704 960c17.92 0 32.064-14.656 32.064-32 16.704-197.76 182.272-351.936 383.744-351.936 201.408 0 366.976 154.176 383.68 351.936 0 17.344 14.144 32 32.064 32 16.064 0 30.208-12.8 31.424-28.8C960.32 926.464 959.936 924.416 959.68 921.024zM320 319.936C320 213.952 406.208 128 512.512 128s192.448 85.952 192.448 191.936c0 106.048-86.144 192-192.448 192S320 425.984 320 319.936z","p-id":"14756"},null,-1)];function wa(r,e){return s.openBlock(),s.createElementBlock("svg",Ca,Aa)}const dr=Qe(_a,[["render",wa]]),Da={},ka={t:"1672194715727",class:"icon",viewBox:"0 0 1024 1024",version:"1.1","p-id":"2667"},Fa=[s.createElementVNode("path",{d:"M809.246403 771.926938 777.737782 803.458071 924.965961 950.667831 956.476629 919.157163Z",fill:"#5D5D5D","p-id":"2668"},null,-1),s.createElementVNode("path",{d:"M454.878536 70.285786C239.51556 70.285786 64.93236 244.847497 64.93236 460.231963c0 215.341486 174.583201 389.945153 389.945153 389.945153 215.362976 0 389.9472-174.603667 389.9472-389.945153C844.825736 244.847497 670.241512 70.285786 454.878536 70.285786zM454.878536 805.611108c-190.750415 0-345.381192-154.626683-345.381192-345.379145 0-190.751439 154.629753-345.380168 345.381192-345.380168 190.752462 0 345.382215 154.62873 345.382215 345.380168C800.259728 650.983401 645.630998 805.611108 454.878536 805.611108z",fill:"#5D5D5D","p-id":"2669"},null,-1)];function Sa(r,e){return s.openBlock(),s.createElementBlock("svg",ka,Fa)}const Na=Qe(Da,[["render",Sa]]),Ta={},Ra={t:"1672212880079",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"19924"},La=[s.createElementVNode("path",{d:"M806.4 263.2l-45.6-45.6L512 467.2 263.2 217.6l-45.6 45.6L467.2 512 217.6 760.8l45.6 45.6L512 557.6l248.8 248.8 45.6-45.6L557.6 512z","p-id":"19925"},null,-1)];function Oa(r,e){return s.openBlock(),s.createElementBlock("svg",Ra,La)}const Ia=Qe(Ta,[["render",Oa]]),Pa={},Va={t:"1672216076738",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"28376"},$a=[s.createElementVNode("path",{d:"M501.937582 545.097053c147.891962 0 268.231366-118.534055 268.223274-264.288929 0-145.746783-120.330301-264.28994-268.222263-264.28994-147.890951 0-268.221252 118.584625-268.221252 264.28994C233.71633 426.520519 354.046631 545.097053 501.937582 545.097053zM612.471463 570.546911 411.497184 570.546911c-186.760063 0-338.664249 149.569875-338.664249 333.472733l0 19.794109c0 96.139636 149.47278 96.139636 338.664249 96.139636l200.974278 0c181.747565 0 338.694591 0 338.694591-96.139636l0-19.794109C951.164031 720.158252 799.235571 570.546911 612.471463 570.546911z","p-id":"28377"},null,-1)];function Ma(r,e){return s.openBlock(),s.createElementBlock("svg",Va,$a)}const Tt=Qe(Pa,[["render",Ma]]),za={},Ha={t:"1680231254898",class:"icon",viewBox:"0 0 1154 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"9556"},qa=[s.createElementVNode("path",{d:"M1015.808 64.512q62.464 0 99.84 31.744t37.376 96.256l0 568.32q0 27.648-10.24 52.224t-28.16 43.008-41.984 29.184-50.688 10.752l-892.928 0q-26.624 0-50.176-10.24t-40.96-27.136-27.648-39.424-10.24-48.128l0-580.608q0-55.296 33.792-90.624t95.232-35.328l886.784 0zM287.744 253.952q-19.456 0-36.864 7.168t-30.72 19.968-20.992 30.72-7.68 38.4 7.68 37.888 20.992 30.72 30.72 20.992 36.864 7.68q21.504 0 39.424-7.68t30.72-20.992 20.48-30.72 7.68-37.888q0-41.984-27.648-69.12t-70.656-27.136zM448.512 608.256q0-19.456-7.68-37.376t-20.48-30.72-30.72-20.48-37.376-7.68l-128 0q-39.936 0-67.584 28.16t-27.648 68.096l0 4.096 0 92.16 319.488 0 0-92.16 0-4.096zM923.648 709.632q20.48 0 30.208-10.24t9.728-24.576-11.264-25.088-31.744-10.752l-305.152 0q-20.48 0-30.72 10.752t-10.24 25.088 10.24 24.576 29.696 10.24l309.248 0zM924.672 577.536q20.48 0 29.696-10.24t9.216-24.576q0-15.36-8.704-25.6t-29.184-10.24l-313.344 0q-20.48 0-29.696 10.24t-9.216 25.6q0 14.336 8.704 24.576t29.184 10.24l313.344 0zM925.696 447.488q15.36 0 26.624-10.24t11.264-24.576-11.264-23.04-26.624-8.704l-207.872 0q-15.36 0-26.112 8.704t-10.752 23.04 10.752 24.576 26.112 10.24l207.872 0z","p-id":"9557"},null,-1)];function Ua(r,e){return s.openBlock(),s.createElementBlock("svg",Ha,qa)}const k0=Qe(za,[["render",Ua]]),Wa={},Ya={t:"1698719360533",class:"icon",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"15490",width:"200",height:"200"},Ka=[s.createElementVNode("path",{d:"M960 704h-63.616v-167.392a32 32 0 0 0-32-32H544V416h160a32 32 0 0 0 32-32V96a32 32 0 0 0-32-32H320a32 32 0 0 0-32 32v288a32 32 0 0 0 32 32h160v88.608H161.984a32 32 0 0 0-32 31.968L129.792 704H64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32H193.792l0.16-135.392H480V704h-64a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32h-64v-135.392h288.384V704H768a32 32 0 0 0-32 32v192a32 32 0 0 0 32 32h192a32 32 0 0 0 32-32v-192a32 32 0 0 0-32-32zM352 128h320v224H352V128zM224 896H96v-128h128v128z m352 0h-128v-128h128v128z m352 0h-128v-128h128v128z","p-id":"15491"},null,-1)];function Ga(r,e){return s.openBlock(),s.createElementBlock("svg",Ya,Ka)}const Ht=Qe(Wa,[["render",Ga]]),Bi={list:{type:Array,default:()=>[]},handList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},fixPropOpt:{type:Object,default:()=>{}},height:{type:String,default:"404px"}},ja={class:"left-pick-list"},Xa={class:"post-view-list"},Za=["title"],Qa={class:"ik-picker-single"},Ja=["title"],ec=s.defineComponent({__name:"PostList",props:Bi,emits:["change","check"],setup(r,{emit:e}){var d,u;const t=r,n=s.computed(()=>{var l,m;return((l=t.handList)==null?void 0:l.length)===((m=t.list)==null?void 0:m.length)}),i=s.computed(()=>{var p,y,F,B;const l=(p=t.handList)==null?void 0:p.length,m=(y=t.list)==null?void 0:y.length;return t.multiple?o.value=t.handList.map(v=>v[t.fixPropOpt.id]):f.value=(B=(F=t.handList)==null?void 0:F[0])==null?void 0:B[t.fixPropOpt.id],l>0&&l<m}),o=s.ref(t.handList.map(l=>l[t.fixPropOpt.id])),f=s.ref((u=(d=t.handList)==null?void 0:d[0])==null?void 0:u[t.fixPropOpt.id]),c=e,x=l=>{const m=l?t.list.map(p=>p[t.fixPropOpt.id]):[];c("change",m,l?t.list:[])},a=l=>{c("change",l,t.list)},h=l=>{c("change",l,t.list)};return(l,m)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createCommentVNode(" 遍历list多选 "),s.createElementVNode("div",ja,[l.multiple?(s.openBlock(),s.createBlock(s.unref(xe.ElCheckbox),{key:0,modelValue:n.value,"onUpdate:modelValue":m[0]||(m[0]=p=>n.value=p),indeterminate:i.value,onChange:x},{default:s.withCtx(()=>[s.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):s.createCommentVNode("v-if",!0),s.createElementVNode("ul",Xa,[l.multiple?(s.openBlock(),s.createBlock(s.unref(xe.ElCheckboxGroup),{key:0,modelValue:o.value,"onUpdate:modelValue":m[1]||(m[1]=p=>o.value=p),onChange:a},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.list,p=>(s.openBlock(),s.createElementBlock("li",{key:p[t.fixPropOpt.id]},[s.createVNode(s.unref(xe.ElCheckbox),{label:p[t.fixPropOpt.id]},{default:s.withCtx(()=>[s.createVNode(k0),s.createElementVNode("p",{title:p[t.fixPropOpt.name]},s.toDisplayString(p[t.fixPropOpt.name]),9,Za)]),_:2},1032,["label"])]))),128))]),_:1},8,["modelValue"])):(s.openBlock(),s.createBlock(s.unref(xe.ElRadioGroup),{key:1,isIndeterminate:i.value,modelValue:f.value,"onUpdate:modelValue":m[2]||(m[2]=p=>f.value=p),onChange:h},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.list,p=>(s.openBlock(),s.createElementBlock("li",{class:"w-full",key:p[t.fixPropOpt.id]},[s.createVNode(s.unref(xe.ElRadio),{label:p[t.fixPropOpt.id]},{default:s.withCtx(()=>[s.createElementVNode("div",Qa,[s.createVNode(k0),s.createElementVNode("p",{title:p[t.fixPropOpt.name]},s.toDisplayString(p[t.fixPropOpt.name]),9,Ja)])]),_:2},1032,["label"])]))),128))]),_:1},8,["isIndeterminate","modelValue"]))])])],2112))}}),jf="",tc=Qe(ec,[["__scopeId","data-v-a87521f6"]]),rc={class:"left-pick-list"},nc={class:"role-view-list"},ic=["title"],oc={class:"ik-picker-single"},sc=["title"],ac=s.defineComponent({__name:"RoleList",props:Bi,emits:["change","check"],setup(r,{emit:e}){var d,u;const t=r,n=s.computed(()=>{var l,m;return((l=t.handList)==null?void 0:l.length)===((m=t.list)==null?void 0:m.length)}),i=s.computed(()=>{var p,y,F,B;const l=(p=t.handList)==null?void 0:p.length,m=(y=t.list)==null?void 0:y.length;return t.multiple?o.value=t.handList.map(v=>v[t.fixPropOpt.id]):f.value=(B=(F=t.handList)==null?void 0:F[0])==null?void 0:B[t.fixPropOpt.id],l>0&&l<m}),o=s.ref(t.handList.map(l=>l[t.fixPropOpt.id])),f=s.ref((u=(d=t.handList)==null?void 0:d[0])==null?void 0:u[t.fixPropOpt.id]),c=e,x=l=>{const m=l?t.list.map(p=>p[t.fixPropOpt.id]):[];c("change",m,l?t.list:[])},a=l=>{c("change",l,t.list)},h=l=>{c("change",l,t.list)};return(l,m)=>(s.openBlock(),s.createElementBlock(s.Fragment,null,[s.createCommentVNode(" 遍历list多选 "),s.createElementVNode("div",rc,[l.multiple?(s.openBlock(),s.createBlock(s.unref(xe.ElCheckbox),{key:0,modelValue:n.value,"onUpdate:modelValue":m[0]||(m[0]=p=>n.value=p),indeterminate:i.value,onChange:x},{default:s.withCtx(()=>[s.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate"])):s.createCommentVNode("v-if",!0),s.createElementVNode("ul",nc,[l.multiple?(s.openBlock(),s.createBlock(s.unref(xe.ElCheckboxGroup),{key:0,modelValue:o.value,"onUpdate:modelValue":m[1]||(m[1]=p=>o.value=p),onChange:a},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.list,p=>(s.openBlock(),s.createElementBlock("li",{key:p[l.fixPropOpt.id]},[s.createVNode(s.unref(xe.ElCheckbox),{label:p[l.fixPropOpt.id],value:p[l.fixPropOpt.id],disabled:p.disabled},{default:s.withCtx(()=>[s.createVNode(Tt),s.createElementVNode("p",{title:p[l.fixPropOpt.name]},s.toDisplayString(p[l.fixPropOpt.name]),9,ic)]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["modelValue"])):(s.openBlock(),s.createBlock(s.unref(xe.ElRadioGroup),{key:1,indeterminate:i.value,modelValue:f.value,"onUpdate:modelValue":m[2]||(m[2]=p=>f.value=p),onChange:h},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l.list,p=>(s.openBlock(),s.createElementBlock("li",{class:"w-full",key:p[l.fixPropOpt.id]},[s.createVNode(s.unref(xe.ElRadio),{label:p[l.fixPropOpt.id],value:p[l.fixPropOpt.id],disabled:p.disabled},{default:s.withCtx(()=>[s.createElementVNode("div",oc,[s.createVNode(Tt),s.createElementVNode("p",{title:p[l.fixPropOpt.name]},s.toDisplayString(p[l.fixPropOpt.name]),9,sc)])]),_:2},1032,["label","value","disabled"])]))),128))]),_:1},8,["indeterminate","modelValue"]))])])],2112))}}),Xf="",cc=Qe(ac,[["__scopeId","data-v-a51e0920"]]);var $e=(r=>(r.org="organization",r.dep="dep",r.user="user",r.role="role",r.post="post",r.dep_user="dep_user",r))($e||{}),qt=(r=>(r.group="group",r.role="role",r.post="post",r))(qt||{});const _t={animation:200,group:"gl",disabled:!1,ghostClass:"ghost",sort:!0,delay:100,showIcon:!0,itemStyle:{radius:25,bottom:8,background:"#0000"}},fc={topLink:{type:Boolean,default:!0},children:{type:Boolean,default:!0},modelValue:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},pid:{type:String,default:""},orgPid:{type:String,default:"root"},org:{type:Object,default:()=>null},immediate:{type:Boolean,default:!1},show:{type:Boolean,default:!1,required:!0},width:{type:String,default:"685px"},height:{type:String,default:"580px"},title:{type:String,default:"选择人员"},organizationList:{type:Array,default:()=>[]},depList:{type:Array,default:()=>[]},userList:{type:Array,default:()=>[]},roleList:{type:Array,default:()=>[]},postList:{type:Array,default:()=>[]},multiple:{type:Boolean,default:!0},max:{type:Number,default:0},tabs:{type:Array,validator:r=>{if(r===void 0)return!0;if(Array.isArray(r)){if(!(r!=null&&r.length))return!1}else return console.error("IkingPicker参数错误:tabs必须是Array类型"),!1;return!0},default:()=>["group","role","post"]},showDep:{type:Boolean,default:!0},chooseType:{type:Array,default:()=>["dep"]},api:{type:Object,default:()=>({methods:"post",headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:"Bearer iking"},url:`${location.origin}${location.pathname}/serve/component/pick/mix`,param:null,paramKey:"type"})},typeOption:{type:Object,default:()=>{}},propOption:{type:Object,default:()=>null},search:{type:Boolean,default:!0},lazy:{type:Boolean,default:!0},imageBaseUrl:{type:String,default:""},cache:{type:Boolean,default:!0},placeholder:{type:String,default:"模糊搜索组织、人员、角色、岗位"},emptyText:{type:String,default:"暂无数据"}},_i=r=>{const e=window.location.search;return new URLSearchParams(e).get(r)},lc=r=>{const e=w0.local.getItem("x_domain");e&&(r["X-DOMAIN"]=e)},uc=r=>{var n;const e=_i("domain");if(e){r["X-DOMAIN"]=e;const i=_i("code");e==="APPLICATION"&&(r["X-APP"]=i)}else lc(r);const t=(n=w0.local.getItem("tenant"))==null?void 0:n.code;t&&(r["X-TENANT"]=t)},dc=(r,e)=>{const t=s.ref([]),n=async(o,f,c)=>{var $,w;const{url:x,methods:a,headers:h,param:d}=r.value||{},u={parentOrgId:o,...d||{},parentDepartmentId:f||"",name:c||""},l={method:a,url:x,headers:{"Content-Type":"application/json;charset=UTF-8",...h},data:JSON.stringify(u)};uc(l.headers);const m=await Fi(l),{success:p,data:y}=m.data;if(!p)return{depList:[],roleList:[],postList:[],userList:[],organizationList:[],rootOrganization:{},rootDepartment:{}};const{departments:F,roles:B,posts:v,users:b,organizations:E,rootOrganization:A,rootDepartment:_}=y,S=A||_;return t.value[0]=e.org?{...e.org,id:e.elementId,elementType:(w=($=e.org)==null?void 0:$.elementType)==null?void 0:w.toLocaleUpperCase()}:{...S,id:S.elementId},{depList:ct.cloneDeep(F),roleList:ct.cloneDeep(B),postList:ct.cloneDeep(v),userList:ct.cloneDeep(b),organizationList:ct.cloneDeep(E),rootOrganization:A,rootDepartment:_}};return{handData:n,handSetChild:(o,f)=>{n(o==null?void 0:o.elementId,f)},bannerList:t}},hc={shadow:"hover",class:"sel-list"},xc={key:0},pc={key:0,class:"check-all"},vc={key:0,class:"view-list"},bc={key:0,class:"filter-user"},gc=["title"],mc={class:"filter-user"},yc=["title"],Ec={key:2,class:"next-child"},Bc={class:"filter-user"},_c=["title"],Cc={key:1,class:"filter-user"},Ac=["title"],wc={key:2,class:"next-child"},Dc={class:"text-over-flow"},kc=["title"],Fc=["title"],Sc={key:2,class:"next-child"},Nc={key:1,class:"empty"},Tc=s.createElementVNode("div",{class:"split-div"},null,-1),Rc={class:"choose-list"},Lc={class:"choose-item"},Oc=s.createElementVNode("div",null,"已选",-1),Ic={class:"dialog-footer"},Pc=s.defineComponent({__name:"picker",props:fc,emits:["handChild","update:show","update:modelValue","ok","search"],setup(r,{expose:e,emit:t}){s.useCssVars(V=>({a67960c8:Te.value}));const n=r,i=s.ref(""),o=s.ref(""),f=s.ref(""),c=s.ref([]),x=s.ref([]),a=s.ref([]),h=s.ref([]),d=s.ref([]),u=s.ref(!1),l=n.imageBaseUrl||`${location.origin}/server/oss/download?fileUrl=`,m=V=>V?V.startsWith("http")?V:`${l}${V}`:"";s.watch(()=>n.api,()=>{n.show&&w("")});const p=s.computed(()=>({name:"name",type:"type",id:"id",avatar:"avatar",...n.propOption})),y=s.computed(()=>({dep:"DEPT",user:"USER",role:"ROLE",post:"POST",organization:"ORGANIZATION",...n.typeOption})),F=s.ref([]),B=dc(s.toRef(n,"api"),n),v=B.handData,b=B.bannerList;n.immediate&&v(f.value,o.value,i.value);const E=V=>(V.forEach(Z=>{var L,ne;Z.disabled=((ne=(L=n.modelValue)==null?void 0:L.find(be=>be[p.value.id]===Z[p.value.id]))==null?void 0:ne.disabled)||!1}),V),A=async()=>{var V,Z,L,ne,be,Ye,je,lt,Rt;u.value=!0;try{if((V=n.depList)!=null&&V.length||(Z=n.userList)!=null&&Z.length||(L=n.roleList)!=null&&L.length||(ne=n.postList)!=null&&ne.length){c.value=(be=n.userList)==null?void 0:be.filter(Pe=>Pe[p.value.name].includes(i.value)),x.value=(Ye=n.depList)==null?void 0:Ye.filter(Pe=>Pe[p.value.name].includes(i.value)),a.value=(je=n.roleList)==null?void 0:je.filter(Pe=>Pe[p.value.name].includes(i.value)),h.value=(lt=n.postList)==null?void 0:lt.filter(Pe=>Pe[p.value.name].includes(i.value)),d.value=(Rt=n.organizationList)==null?void 0:Rt.filter(Pe=>Pe[p.value.name].includes(i.value)),W(),u.value=!1;return}const _e=await v(f.value,o.value,i.value);try{c.value=E((_e==null?void 0:_e.userList)||[]),x.value=E((_e==null?void 0:_e.depList)||[]),a.value=E((_e==null?void 0:_e.roleList)||[]),h.value=E((_e==null?void 0:_e.postList)||[]),d.value=E((_e==null?void 0:_e.organizationList)||[])}catch(Pe){u.value=!1,console.info("error: ",Pe)}W(),u.value=!1}catch{u.value=!1}},_=s.reactive({org:new Map,dep:new Map,user:new Map,role:new Map,post:new Map,trans:[],single:""}),S=s.reactive({indeterminate:!1,checkAll:0}),$=V=>_.org.has(V)||_.dep.has(V)||_.user.has(V)||_.role.has(V)||_.post.has(V),w=xa.debounce(A,300),D=s.computed(()=>{const V=Array.from(_.org.values()),Z=Array.from(_.dep.values()),L=Array.from(_.role.values()),ne=Array.from(_.user.values()),be=Array.from(_.post.values());return F.value=[...V,...Z,...L,...be,...ne],{list:[...V,...Z,...L,...ne,...be],org:{list:V,len:V.length,deps:V},dep:{list:Z,len:Z.length,deps:Z},role:{list:L,len:L.length},user:{list:ne,len:ne.length},post:{list:be,len:be.length}}}),O=s.computed(()=>{const V=n.chooseType.map(L=>L.toLocaleLowerCase());let Z=[...V];return V.includes("dep")&&(Z=[...Z,"organization","dept"]),V.includes("dep_user")&&(Z=[...Z,"user"]),Z}),z=s.computed(()=>O.value.includes($e.dep)&&!O.value.includes($e.user)&&!O.value.includes($e.org)),U=s.computed(()=>O.value.includes($e.user)&&!O.value.includes($e.dep)&&!O.value.includes($e.org)),M=s.computed(()=>O.value.includes($e.org)&&!O.value.includes($e.dep)&&!O.value.includes($e.user)),P=s.computed(()=>!b.value.length),X=s.computed(()=>!n.max||D.value.list.length<n.max),G=V=>[y.value.dep,y.value.organization].includes(V[p.value.type])?V.hasOwnProperty("disabled"):!1,ee=s.ref([]),re=V=>{ee.value=V,ee.value.forEach(Z=>{Z.readonly=Z==null?void 0:Z.disabled})},I=t,q=s.ref(!1),W=(V=!1)=>{var L;const Z=(L=n==null?void 0:n.userList)!=null&&L.length?ct.cloneDeep([...n==null?void 0:n.organizationList,...n==null?void 0:n.userList,...n==null?void 0:n.depList]):[...d.value,...x.value,...c.value];return!V&&re(Z),Z};s.watch(()=>n.show,async V=>{var Z;if(q.value=V,V){o.value=n.pid,f.value=((Z=n.org)==null?void 0:Z.elementId)||n.orgPid,!n.userList.length&&!n.depList.length&&!n.roleList.length&&!n.postList.length&&!n.organizationList.length?await A():(c.value=n.userList,x.value=n.depList,a.value=n.roleList,h.value=n.postList,d.value=n.organizationList),_.trans=[],S.checkAll=0,S.indeterminate=!1;const L=W(!0);for(const be of L)$(be[p.value.id])&&_.trans.push(be[p.value.id]);const ne=L.length===_.trans.length;S.indeterminate=!!(L.length&&!ne),S.checkAll=Number(L.length&&ne),s.nextTick(()=>{var be;(be=n.modelValue)!=null&&be.length?n.modelValue.forEach(Ye=>{de(Ye),n.multiple?_.trans.push(Ye[p.value.id]):_.single=Ye[p.value.id]}):Ue()})}else Ue()}),s.watchEffect(()=>{let V;if(z.value||U.value){const L=c.value.length,ne=x.value.length;V=z.value?ne:U.value?L:L+L}else V=ee.value.length;const Z=_.trans.length;S.indeterminate=_.trans.length?Z!==V:!1,S.checkAll=+(V!==0&&Z===V)});const H=V=>{if(V){if(_.single="",V[p.value.id]){const Z=_.trans.findIndex(L=>L===V[p.value.id]);Z!==-1&&_.trans.splice(Z,1)}switch(V[p.value.type]){case y.value.dep:return _.dep.delete(V[p.value.id]);case y.value.user:return _.user.delete(V[p.value.id]);case y.value.role:return _.role.delete(V[p.value.id]);case y.value.post:return _.post.delete(V[p.value.id]);case y.value.organization:return _.org.delete(V[p.value.id]);default:return}}},ue=V=>{H(V)},de=V=>{if(!$(V[p.value.id])){const Z={...V};switch(V[p.value.type]){case y.value.dep:return _.dep.set(V[p.value.id],Z);case y.value.user:return _.user.set(V[p.value.id],Z);case y.value.role:return _.role.set(V[p.value.id],Z);case y.value.post:return _.post.set(V[p.value.id],Z);case y.value.organization:return _.org.set(V[p.value.id],Z);default:return}}};s.watch(()=>_.trans,V=>{if(!V.length)ee.value.forEach(Z=>{Z.disabled=!1;try{n.multiple&&H(Z)}catch{}});else{const Z=ee.value.filter(ne=>!V.includes(ne[p.value.id]));for(const ne of Z)ne.disabled=!1,n.multiple&&H(ne);const L=ee.value.filter(ne=>V.includes(ne[p.value.id]));for(const ne of L)ne.disabled=G(ne),de(ne)}},{deep:!0}),s.watch(()=>_.single,V=>{if(V){const Z=ee.value.find(L=>L[p.value.id]===V);Z&&(_.dep.clear(),_.user.clear(),_.role.clear(),_.post.clear(),_.org.clear(),_.trans=[],s.nextTick(()=>{de(Z)}))}});const Ee=V=>{if(V){let Z=[];if(O.value.includes("dep")||O.value.includes("dep_user")){const L=ee.value.filter(ne=>ne[p.value.type].toLocaleUpperCase()===y.value[$e.dep].toLocaleUpperCase());Z=[...Z,...L]}if(O.value.includes("user")||O.value.includes("dep_user")){const L=ee.value.filter(ne=>ne[p.value.type].toLocaleUpperCase()===y.value[$e.user].toLocaleUpperCase());Z=[...Z,...L]}if(O.value.includes("organization")){const L=ee.value.filter(ne=>ne[p.value.type].toLocaleUpperCase()===y.value[$e.org].toLocaleUpperCase());Z=[...Z,...L]}Z.forEach(L=>{!_.trans.includes(L[p.value.id])&&_.trans.push(L[p.value.id])})}else ee.value.forEach(Z=>{const L=_.trans.findIndex(ne=>ne===Z[p.value.id]);L>=0&&_.trans.splice(L,1)})},ae=V=>{V[p.value.type]===y.value.organization?(f.value=V==null?void 0:V.elementId,o.value=""):(f.value="",o.value=V==null?void 0:V.elementId),A(),b.value.push(V)},Ie=()=>{const V=b.value.length-2,Z=V<0?0:V,L=b.value[Z];L[p.value.type]===y.value.organization?(f.value=V<0?"root":(L==null?void 0:L.elementId)||(L==null?void 0:L.id),o.value=""):(f.value="",o.value=V<0?"":(L==null?void 0:L.elementId)||(L==null?void 0:L.id)),A(),b.value.pop()},Be=s.computed(()=>b.value.length),Me=(V,Z)=>{!Z&&!n.topLink||Z!==Be.value-1&&(V[p.value.type]===y.value.organization?(f.value=V==null?void 0:V.elementId,o.value=""):(f.value="",o.value=V==null?void 0:V.elementId),A(),b.value.splice(Z+1))},ze=s.computed(()=>n.chooseType.includes("role")&&n.chooseType.length===1),De=s.computed(()=>n.chooseType.includes("post")&&n.chooseType.length===1),ke=s.ref(n.tabs[0]),Ce=s.ref(n.tabs[0]);s.watchEffect(()=>(Ce.value=ze.value?n.tabs[1]:De.value?n.tabs[2]:ke.value,Ce.value));const Ue=()=>{var V;_.dep.clear(),_.user.clear(),_.role.clear(),_.post.clear(),_.org.clear(),_.trans=[],nt.value=[],Ge.value=[],ke.value=n.tabs[0],Ce.value=n.tabs[0],i.value="",o.value=n.pid,f.value=((V=n.org)==null?void 0:V.elementId)||n.orgPid,_.single="",F.value=[]},xt=()=>{var V;I("ok",ct.cloneDeep({...D.value,sort:F.value})),I("update:modelValue",ct.cloneDeep(((V=D.value)==null?void 0:V.list)||[])),I("update:show",!1),Ue()},Ke=()=>{I("update:show",!1),Ue()};e({handClear:Ue,handRomeve:ue,handDelete:H});const pt=s.computed(()=>{const V=O.value;return!!((V.includes("post")||V.includes("role"))&&V.length>1)}),rt=s.computed(()=>[{label:"group",name:"组织架构"},{label:"role",name:"角色列表"},{label:"post",name:"岗位列表"}].filter(V=>n.tabs.includes(V.label))),Le=s.computed(()=>`${(typeof n.width=="string"?Number.parseInt(n.width):n.width)/2-30}px`),Te=s.computed(()=>`${typeof n.height=="string"?Number.parseInt(n.height):n.height}px`),We=()=>{n.multiple||(_.post.clear(),_.role.clear(),_.user.clear(),_.dep.clear(),_.single="")},nt=s.ref([]),wt=(V,Z)=>{n.multiple||(_.single="");const L=n.multiple?V:[V];if(!L.length){_.role.clear();return}We(),Z.forEach(ne=>{L!=null&&L.includes(ne[p.value.id])?de(ne):H(ne)})};s.watch(()=>D.value.role.len,V=>{nt.value=ct.cloneDeep(D.value.role.list)});const Ge=s.ref([]),ft=(V,Z)=>{n.multiple||(_.single="");const L=n.multiple?V:[V];if(!L.length){_.post.clear();return}We(),Z.forEach(ne=>{L!=null&&L.includes(ne[p.value.id])?de(ne):H(ne)})};return s.watch(()=>D.value.post.len,V=>{Ge.value=ct.cloneDeep(D.value.post.list)}),s.watch(()=>i.value,V=>{w("")}),(V,Z)=>(s.openBlock(),s.createBlock(s.unref(xe.ElDialog),{modelValue:q.value,"onUpdate:modelValue":Z[6]||(Z[6]=L=>q.value=L),title:V.title,"destroy-on-close":"","close-on-click-modal":!1,"close-on-click-escape":!1,draggable:"","align-center":"",width:typeof V.width=="string"?V.width:`${V.width}%`,class:"p_p_picker-dialog","modal-class":"p_p_picker-dialog-modal",onClose:Ke},{footer:s.withCtx(()=>[s.createElementVNode("span",Ic,[s.createVNode(s.unref(xe.ElButton),{onClick:s.withModifiers(Ke,["stop"])},{default:s.withCtx(()=>[s.createTextVNode("取消")]),_:1}),s.createVNode(s.unref(xe.ElButton),{type:"primary",onClick:s.withModifiers(xt,["stop"])},{default:s.withCtx(()=>[s.createTextVNode(" 确定 ")]),_:1})])]),default:s.withCtx(()=>[s.createElementVNode("div",{class:"dep-use-picker",style:s.normalizeStyle({height:Te.value})},[s.createElementVNode("div",hc,[s.createElementVNode("div",null,[s.createVNode(s.unref(xe.ElInput),{modelValue:i.value,"onUpdate:modelValue":Z[0]||(Z[0]=L=>i.value=L),clearable:"",placeholder:V.placeholder,"prefix-icon":Na,style:s.normalizeStyle({width:Le.value})},null,8,["modelValue","placeholder","style"]),pt.value?(s.openBlock(),s.createBlock(s.unref(xe.ElRadioGroup),{key:0,modelValue:ke.value,"onUpdate:modelValue":Z[1]||(Z[1]=L=>ke.value=L),class:"ik-picker-tab",style:s.normalizeStyle({width:Le.value})},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(rt.value,L=>(s.openBlock(),s.createBlock(s.unref(xe.ElRadioButton),{label:L.label,key:L.label},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(L.name),1)]),_:2},1032,["label"]))),128))]),_:1},8,["modelValue","style"])):s.createCommentVNode("v-if",!0)]),s.createCommentVNode(" 过滤 "),Ce.value===s.unref(qt).group?(s.openBlock(),s.createElementBlock("div",xc,[s.createCommentVNode(" 面包屑 全选 "),s.createVNode(s.unref(xe.ElBreadcrumb),{separator:">",class:s.normalizeClass(["banner",{"top-unlink":!V.topLink}])},{default:s.withCtx(()=>[Be.value?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(s.unref(b),(L,ne)=>(s.openBlock(),s.createBlock(s.unref(xe.ElBreadcrumbItem),{key:L[p.value.id],onClick:s.withModifiers(be=>Me(L,ne),["stop"])},{default:s.withCtx(()=>[s.createTextVNode(s.toDisplayString(L[p.value.name]),1)]),_:2},1032,["onClick"]))),128)):s.createCommentVNode("v-if",!0)]),_:1},8,["class"]),s.createCommentVNode(" 全选框 "),V.multiple?(s.openBlock(),s.createElementBlock("div",pc,[s.createVNode(s.unref(xe.ElCheckbox),{modelValue:S.checkAll,"onUpdate:modelValue":Z[2]||(Z[2]=L=>S.checkAll=L),indeterminate:S.indeterminate,"true-label":1,"false-label":0,disabled:!V.multiple,onChange:Ee,onInput:Ee},{default:s.withCtx(()=>[s.createTextVNode("全选")]),_:1},8,["modelValue","indeterminate","disabled"]),Be.value>1?s.withDirectives((s.openBlock(),s.createBlock(s.unref(xe.ElButton),{key:0,link:"",type:"primary",onClick:s.withModifiers(Ie,["stop"])},{default:s.withCtx(()=>[s.createTextVNode("上一级")]),_:1},512)),[[s.vShow,!P.value]]):s.createCommentVNode("v-if",!0)])):s.createCommentVNode("v-if",!0)])):s.createCommentVNode("v-if",!0),s.createCommentVNode(" 左侧列表 "),s.createCommentVNode(" 部门&人员 "),Ce.value===s.unref(qt).group?(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[ee.value.length?s.withDirectives((s.openBlock(),s.createElementBlock("ul",vc,[s.createCommentVNode(" +++++++++++++++++++++++ 多选 ++++++++++++++++++++++ "),V.multiple?(s.openBlock(),s.createBlock(s.unref(xe.ElCheckboxGroup),{key:0,modelValue:_.trans,"onUpdate:modelValue":Z[3]||(Z[3]=L=>_.trans=L)},{default:s.withCtx(()=>[s.createCommentVNode(" <template> "),(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(d.value,L=>(s.openBlock(),s.createElementBlock("li",{key:L[p.value.id]},[O.value.includes(s.unref($e).org)?(s.openBlock(),s.createBlock(s.unref(xe.ElCheckbox),{key:1,label:L[p.value.id],disabled:!X.value||(L==null?void 0:L.readonly)},{default:s.withCtx(()=>[s.createElementVNode("div",mc,[s.createCommentVNode(" 部门icon前缀 "),s.createVNode(Ht),s.createElementVNode("p",{title:L[p.value.name]},s.toDisplayString(L[p.value.name]),9,yc)])]),_:2},1032,["label","disabled"])):(s.openBlock(),s.createElementBlock("div",bc,[s.createCommentVNode(" 部门icon前缀 "),s.createVNode(Ht),s.createElementVNode("p",{title:L[p.value.name]},s.toDisplayString(L[p.value.name]),9,gc)])),V.children?(s.openBlock(),s.createElementBlock("div",Ec,[[y.value.organization,y.value.dep,y.value.role].includes(L[p.value.type])?(s.openBlock(),s.createBlock(s.unref(xe.ElButton),{key:0,link:"",type:"primary",onClick:s.withModifiers(ne=>ae(L),["stop"]),disabled:L.disabled},{icon:s.withCtx(()=>[s.createVNode(D0)]),default:s.withCtx(()=>[s.createTextVNode(" 下级 ")]),_:2},1032,["onClick","disabled"])):s.createCommentVNode("v-if",!0)])):s.createCommentVNode("v-if",!0)]))),128)),s.createCommentVNode(" </template> "),(!U.value||V.showDep)&&!M.value?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:0},s.renderList(x.value,L=>(s.openBlock(),s.createElementBlock("li",{key:L[p.value.id]},[V.chooseType.includes(s.unref($e).dep)||V.chooseType.includes(s.unref($e).dep_user)?(s.openBlock(),s.createBlock(s.unref(xe.ElCheckbox),{key:0,label:L[p.value.id],disabled:!X.value||(L==null?void 0:L.readonly)},{default:s.withCtx(()=>[s.createElementVNode("div",Bc,[s.createCommentVNode(" 部门icon前缀 "),s.createVNode(zt),s.createElementVNode("p",{title:L[p.value.name]},s.toDisplayString(L[p.value.name]),9,_c)])]),_:2},1032,["label","disabled"])):(s.openBlock(),s.createElementBlock("div",Cc,[s.createCommentVNode(" 部门icon前缀 "),s.createVNode(zt),s.createElementVNode("p",{title:L[p.value.name]},s.toDisplayString(L[p.value.name]),9,Ac)])),V.children?(s.openBlock(),s.createElementBlock("div",wc,[[y.value.dep,y.value.role].includes(L[p.value.type])?(s.openBlock(),s.createBlock(s.unref(xe.ElButton),{key:0,link:"",type:"primary",onClick:s.withModifiers(ne=>ae(L),["stop"]),disabled:L.disabled},{icon:s.withCtx(()=>[s.createVNode(D0)]),default:s.withCtx(()=>[s.createTextVNode(" 下级 ")]),_:2},1032,["onClick","disabled"])):s.createCommentVNode("v-if",!0)])):s.createCommentVNode("v-if",!0)]))),128)):s.createCommentVNode("v-if",!0),V.chooseType.includes("user")||V.chooseType.includes("dep_user")?(s.openBlock(!0),s.createElementBlock(s.Fragment,{key:1},s.renderList(c.value,L=>(s.openBlock(),s.createElementBlock("li",{key:L[p.value.id]},[s.createVNode(s.unref(xe.ElCheckbox),{label:L[p.value.id],disabled:!X.value||(L==null?void 0:L.readonly)},{default:s.withCtx(()=>{var ne,be;return[s.createCommentVNode(" icon前缀 "),y.value.dep===L[p.value.type]?(s.openBlock(),s.createBlock(Tt,{key:0})):y.value.user===L[p.value.type]?(s.openBlock(),s.createBlock(s.unref(xe.ElAvatar),{key:1,size:30,src:m((ne=p.value)!=null&&ne.avatar?L[(be=p.value)==null?void 0:be.avatar]:""),icon:dr},null,8,["src"])):s.createCommentVNode("v-if",!0),s.createElementVNode("span",Dc,s.toDisplayString(L[p.value.name]),1)]}),_:2},1032,["label","disabled"])]))),128)):s.createCommentVNode("v-if",!0)]),_:1},8,["modelValue"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createCommentVNode(" +++++++++++++++++++++++ 单选 ++++++++++++++++++++++ "),s.createVNode(s.unref(xe.ElRadioGroup),{modelValue:_.single,"onUpdate:modelValue":Z[4]||(Z[4]=L=>_.single=L)},{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(ee.value,L=>{var ne,be,Ye;return s.openBlock(),s.createElementBlock("li",{key:L[p.value.id]},[O.value.includes((ne=L[p.value.type])==null?void 0:ne.toLocaleLowerCase())?(s.openBlock(),s.createBlock(s.unref(xe.ElRadio),{key:0,label:L[p.value.id],class:s.normalizeClass({readonly:![y.value.organization,y.value.dep,y.value.user].includes(L[p.value.type]),"w-full":!0}),disabled:L.readonly},{default:s.withCtx(()=>{var je,lt;return[s.createCommentVNode(" 部门icon前缀 "),y.value.organization===L[p.value.type]?(s.openBlock(),s.createBlock(Ht,{key:0})):y.value.dep===L[p.value.type]?(s.openBlock(),s.createBlock(zt,{key:1})):y.value.role===L[p.value.type]?(s.openBlock(),s.createBlock(Tt,{key:2})):y.value.user===L[p.value.type]?(s.openBlock(),s.createBlock(s.unref(xe.ElAvatar),{key:3,size:30,src:m((je=p.value)!=null&&je.avatar?L[(lt=p.value)==null?void 0:lt.avatar]:""),icon:dr},null,8,["src"])):s.createCommentVNode("v-if",!0),s.createElementVNode("span",{class:"text-over-flow",title:L[p.value.name]},s.toDisplayString(L[p.value.name]),9,kc)]}),_:2},1032,["label","class","disabled"])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[y.value.organization===L[p.value.type]?(s.openBlock(),s.createBlock(Ht,{key:0})):y.value.dep===L[p.value.type]?(s.openBlock(),s.createBlock(zt,{key:1})):y.value.role===L[p.value.type]?(s.openBlock(),s.createBlock(Tt,{key:2})):y.value.user===L[p.value.type]?(s.openBlock(),s.createBlock(s.unref(xe.ElAvatar),{key:3,size:30,src:m((be=p.value)!=null&&be.avatar?L[(Ye=p.value)==null?void 0:Ye.avatar]:""),icon:dr},null,8,["src"])):s.createCommentVNode("v-if",!0),s.createElementVNode("span",{class:"text-over-flow",title:L[p.value.name]},s.toDisplayString(L[p.value.name]),9,Fc)],64)),V.children?(s.openBlock(),s.createElementBlock("div",Sc,[[y.value.organization,y.value.dep,y.value.role].includes(L[p.value.type])?(s.openBlock(),s.createBlock(s.unref(xe.ElButton),{key:0,link:"",type:"primary",onClick:s.withModifiers(je=>ae(L),["stop"])},{icon:s.withCtx(()=>[s.createVNode(D0)]),default:s.withCtx(()=>[s.createTextVNode(" 下级 ")]),_:2},1032,["onClick"])):s.createCommentVNode("v-if",!0)])):s.createCommentVNode("v-if",!0)])}),128))]),_:1},8,["modelValue"])],2112))])),[[s.unref(xe.vLoading),u.value]]):(s.openBlock(),s.createElementBlock("div",Nc,s.toDisplayString(V.emptyText),1))],64)):Ce.value===s.unref(qt).role?(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[s.createCommentVNode(" 角色 "),s.withDirectives(s.createVNode(cc,{fixPropOpt:p.value,list:a.value,max:V.max,multiple:V.multiple,"hand-list":nt.value,onChange:wt},null,8,["fixPropOpt","list","max","multiple","hand-list"]),[[s.unref(xe.vLoading),u.value]])],64)):Ce.value===s.unref(qt).post?(s.openBlock(),s.createElementBlock(s.Fragment,{key:3},[s.createCommentVNode(" 岗位 "),s.withDirectives(s.createVNode(tc,{fixPropOpt:p.value,list:h.value,max:V.max,multiple:V.multiple,"hand-list":Ge.value,onChange:ft},null,8,["fixPropOpt","list","max","multiple","hand-list"]),[[s.unref(xe.vLoading),u.value]])],64)):s.createCommentVNode("v-if",!0)]),Tc,s.createCommentVNode(" 已选列表 "),s.createElementVNode("div",Rc,[s.createElementVNode("div",Lc,[Oc,s.createVNode(s.unref(xe.ElButton),{type:"primary",link:"",onClick:s.withModifiers(Ue,["stop"])},{default:s.withCtx(()=>[s.createTextVNode("清空")]),_:1})]),s.createCommentVNode(" 已选列表可拖拽 "),s.createVNode(s.unref(ki),{tag:"ul",name:"fade","item-key":"elementId",modelValue:F.value,"onUpdate:modelValue":Z[5]||(Z[5]=L=>F.value=L),style:s.normalizeStyle({height:`calc(${Te.value} + 21px)`}),animation:s.unref(_t).animation,group:s.unref(_t).group,disabled:s.unref(_t).disabled,ghostClass:s.unref(_t).ghostClass,forceFallback:s.unref(_t).ghostClass},{item:s.withCtx(({element:L})=>[s.createVNode(s.Transition,{type:"transition",name:"flip-list"},{default:s.withCtx(()=>[s.createElementVNode("li",{class:s.normalizeClass(["list-group-item"]),style:s.normalizeStyle({borderRadius:`${s.unref(_t).itemStyle.radius}px`,marginBottom:`${s.unref(_t).itemStyle.bottom}px`,backgroundColor:`${s.unref(_t).itemStyle.background}`})},[s.createElementVNode("div",null,[s.createCommentVNode(" 部门icon前缀 "),y.value.organization===L[p.value.type]?(s.openBlock(),s.createBlock(Ht,{key:0})):s.createCommentVNode("v-if",!0),y.value.dep===L[p.value.type]?(s.openBlock(),s.createBlock(zt,{key:1})):y.value.role===L[p.value.type]?(s.openBlock(),s.createBlock(Tt,{key:2})):y.value.post===L[p.value.type]?(s.openBlock(),s.createBlock(k0,{key:3})):y.value.user===L[p.value.type]?(s.openBlock(),s.createBlock(s.unref(xe.ElAvatar),{key:4,size:30,src:m(p.value.avatar?L[p.value.avatar]:""),icon:dr},null,8,["src"])):s.createCommentVNode("v-if",!0),s.createElementVNode("span",null,s.toDisplayString(L[p.value.name]),1)]),s.withDirectives(s.createVNode(Ia,{class:"close",onClick:s.withModifiers(ne=>ue(L),["stop"])},null,8,["onClick"]),[[s.vShow,!(L!=null&&L.readonly)]])],4)]),_:2},1024)]),_:1},8,["modelValue","style","animation","group","disabled","ghostClass","forceFallback"])])],4)]),_:1},8,["modelValue","title","width"]))}}),Zf="",Vc=H0(Pc),$c=r=>(s.pushScopeId("data-v-46507da1"),r=r(),s.popScopeId(),r),Mc={class:"approveProcess",id:"approveProcess"},zc={class:"node"},Hc={class:"nodeBg"},qc={class:"info"},Uc={class:"explain"},Wc={key:0},Yc={key:0},Kc={key:1},Gc={key:0},jc={key:1},Xc={class:"personlist"},Zc={style:{width:"58px"}},Qc={class:"avatar"},Jc=["src"],ef={key:1,class:"nodeBg"},tf=["onClick"],rf=["title"],nf={key:0,class:"sign"},of={key:0},sf=["onClick"],af={key:0,class:"required"},cf=$c(()=>s.createElementVNode("i",{class:"ikapprove ikapprove-xinzeng"},null,-1)),ff={name:"IkApprovalProcess"},lf=s.defineComponent({...ff,props:{pickerUrl:{type:String,default:""},loadUrl:{type:String,default:""},dataList:{type:Array,default:()=>[]},defaultNodeType:{type:Object,default:()=>({})},defaultFieldMap:{type:Object,default:()=>({})},statusWithoutApprover:{type:Object,default:()=>({})}},setup(r,{expose:e}){const t=r,n=w0.local.getItem("token")||"Bearer iking",i=s.reactive({nodeType:{发起人节点:"INITIATOR",审批节点:"APPROVE",抄送节点:"CARBON_COPY",办理节点:"DISPOSE",分支节点:"BRANCH",条件节点:"CONDITION",结束节点:"END",...t.defaultNodeType},statusWithoutApprover:{自动通过:"AUTO_PASS",自动拒绝:"AUTO_REJECT",自动转交管理员:"TRANSMIT_TO_MANAGER",指定人员审批:"SPECIFIED_USER",...t.statusWithoutApprover},defaultFile:{id:"id",nodeId:"sortOrder",nodeType:"type",nodeTypeName:"name",approveType:"approveType",multiExecutorType:"multiExecutorType",approveTypeName:"approveTypeName",multiExecutorTypeName:"multiExecutorTypeName",approvalCategory:"approvalCategory",isShowAdd:"initiatorSpecify",isShowAddCopy:"initiatorSpecifyCarbonCopy",executorEmpty:"executorEmpty",executorEmptyStrategy:"executorEmptyStrategy",reserveExecutorUsers:"reserveExecutorUsers",approvePersonList:"executorUsers",initiatorSpecifiedScope:"initiatorSpecifiedScope",initiatorSpecifiedScopeType:"initiatorSpecifiedScopeType",singleApproval:"singleApproval",...t.defaultFieldMap},multiple:!1,chooseType:[]}),o=async d=>{var u;if(d.multiple=!d[i.defaultFile.singleApproval]||d[i.defaultFile.isShowAddCopy],d.handList=d[i.defaultFile.approvePersonList]?d[i.defaultFile.approvePersonList]:[],d[i.defaultFile.nodeType]===i.nodeType.抄送节点)d.handList.forEach(l=>{l.elementName||(l.elementName=l.userName,l.elementId=l.userId,l.avatar=l.userAvatar),l.elementType="USER",l.disabled=!0}),d.chooseType=["user"],d.userList=[],d.depList=[];else switch(d[i.defaultFile.initiatorSpecifiedScopeType]){case"ALL":d.chooseType=["dep_user"],d.userList=[],d.depList=[];break;default:d.chooseType=["user"],d.userList=d.userList?d.userList:(u=d[i.defaultFile.initiatorSpecifiedScope])==null?void 0:u.map(l=>({...l,elementName:(l==null?void 0:l.executorName)||(l==null?void 0:l.userName),elementId:(l==null?void 0:l.executorId)||(l==null?void 0:l.userId),avatar:((l==null?void 0:l.executorAvatar)||(l==null?void 0:l.userAvatar))&&f((l==null?void 0:l.executorAvatar)||(l==null?void 0:l.userAvatar))||"",elementType:"USER"}))}s.nextTick(()=>{d.isShow=!0})},f=d=>{let u="";return d.includes("http")||d.includes("https")?u=d:u=t.loadUrl?`${t.loadUrl}${d}`:`${location.origin+location.pathname}server/oss/download?fileUrl=${d}`,u},c=d=>{let u="";switch(d){case i.nodeType.审批节点:u="ikapprove-shenpi";break;case i.nodeType.办理节点:u="ikapprove-bianji";break;case i.nodeType.抄送节点:u="ikapprove-chaosong";break;default:u="ikapprove-ziyuan"}return`ikapprove ${u}`},x=(d,u)=>{t.dataList[u].handList=d.list;let m=(t.dataList[u][i.defaultFile.approvePersonList]||[]).filter(y=>!y.canDele),p=d.list.map(y=>({...y,userName:y.elementName,userAvatar:y.avatar,canDele:!0}));t.dataList[u][i.defaultFile.approvePersonList]=m.concat(p)},a=(d,u)=>{t.dataList[d][i.defaultFile.approvePersonList].splice(u,1),t.dataList[d].handList=t.dataList[d][i.defaultFile.approvePersonList]};return e({requiredVerification:()=>{let d=!0;return t.dataList.forEach(u=>{var l;u.required=!1,u[i.defaultFile.nodeType]==i.nodeType.审批节点&&u[i.defaultFile.isShowAdd]&&((l=u[i.defaultFile.approvePersonList])!=null&&l.length||(d=!1,u.required=!0))}),d}}),(d,u)=>(s.openBlock(),s.createElementBlock("div",Mc,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(t.dataList,(l,m)=>{var p,y,F,B;return s.openBlock(),s.createElementBlock("div",{class:"content",key:l.id},[s.createCommentVNode(" 审批节点类型 "),s.createElementVNode("div",zc,[s.createElementVNode("span",Hc,[s.createElementVNode("i",{class:s.normalizeClass(c(l[i.defaultFile.nodeType]))},null,2)]),s.createElementVNode("div",{class:"line",style:s.normalizeStyle({"border-left":m===t.dataList.length-1?"":"2px solid var(--el-border-color)"})},null,4)]),s.createElementVNode("div",qc,[s.createElementVNode("div",null,[s.createElementVNode("div",null,s.toDisplayString(l[i.defaultFile.nodeTypeName]),1),s.createElementVNode("div",Uc,[s.createCommentVNode(" 抄送节点 "),l[i.defaultFile.nodeType]==i.nodeType.抄送节点?(s.openBlock(),s.createElementBlock("span",Wc,[l[i.defaultFile.approvePersonList].length?(s.openBlock(),s.createElementBlock("span",Yc,s.toDisplayString(`抄送${l[i.defaultFile.approvePersonList].length}人`),1)):s.createCommentVNode("v-if",!0),l[i.defaultFile.isShowAdd]?(s.openBlock(),s.createElementBlock("span",Kc,",可添加抄送人")):s.createCommentVNode("v-if",!0)])):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createCommentVNode(" 审批节点 "),s.createElementVNode("span",null,[s.createCommentVNode(" 存在审批人时 "),(p=l[i.defaultFile.approvePersonList])!=null&&p.length?(s.openBlock(),s.createElementBlock("span",Gc,s.toDisplayString(((y=l[i.defaultFile.approvePersonList])==null?void 0:y.length)==1?"1人审批":`${(F=l[i.defaultFile.approvePersonList])==null?void 0:F.length}人${l[i.defaultFile.multiExecutorTypeName]}`),1)):[i.statusWithoutApprover.自动通过,i.statusWithoutApprover.自动拒绝].includes(l[i.defaultFile.approveType])?(s.openBlock(),s.createElementBlock("span",jc,s.toDisplayString(l[i.defaultFile.approveTypeName]),1)):l[i.defaultFile.executorEmptyStrategy]&&l[i.defaultFile.executorEmpty]?(s.openBlock(),s.createElementBlock(s.Fragment,{key:2},[s.createCommentVNode(" 没有审批人,并且有指定默认审批方式 "),s.createElementVNode("span",null,[s.createTextVNode(" 未找到审批人,"),s.createElementVNode("span",null,s.toDisplayString(l[i.defaultFile.executorEmptyStrategy]==i.statusWithoutApprover.自动通过?"将自动通过":l[i.defaultFile.executorEmptyStrategy]==i.statusWithoutApprover.自动转交管理员?"自动转交给管理员":l[i.defaultFile.executorEmptyStrategy]==i.statusWithoutApprover.指定人员审批?`将自动转给指定成员${l[i.defaultFile.reserveExecutorUsers]&&l[i.defaultFile.reserveExecutorUsers][0].userName}`:""),1)])],2112)):(s.openBlock(),s.createElementBlock("span",{key:3,class:s.normalizeClass(l.required?"warn":"")},"请选择"+s.toDisplayString(l[i.defaultFile.nodeType]===i.nodeType.办理节点?"办理人":"审批人"),3))])],2112))])]),s.createElementVNode("div",Xc,[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(l[i.defaultFile.approvePersonList],(v,b)=>{var E;return s.openBlock(),s.createElementBlock("div",{class:"list",key:v.userId},[s.createElementVNode("div",Zc,[s.createElementVNode("div",Qc,[v.userAvatar?(s.openBlock(),s.createElementBlock("img",{key:0,src:f(v.userAvatar),alt:""},null,8,Jc)):(s.openBlock(),s.createElementBlock("div",ef,[s.createElementVNode("span",null,s.toDisplayString(v.userName.slice(-2)),1)])),v.canDele?(s.openBlock(),s.createElementBlock("i",{key:2,onClick:A=>a(m,b),class:"ikapprove ikapprove-shanchu1"},null,8,tf)):s.createCommentVNode("v-if",!0)]),s.createElementVNode("div",{class:"name",title:v.userName},s.toDisplayString(v.userName),9,rf)]),s.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示图标 "),l[i.defaultFile.isShowAdd]&&!(l[i.defaultFile.singleApproval]&&((E=l[i.defaultFile.approvePersonList])==null?void 0:E.length)==1)?(s.openBlock(),s.createElementBlock("span",nf,[s.createCommentVNode(" 抄送默认 "),l[i.defaultFile.nodeType]==i.nodeType.抄送节点?(s.openBlock(),s.createElementBlock("span",of,"+")):(s.openBlock(),s.createElementBlock(s.Fragment,{key:1},[s.createCommentVNode(" 审批 "),s.createElementVNode("span",null,s.toDisplayString(l[i.defaultFile.multiExecutorType]=="ANY"?"/":l[i.defaultFile.multiExecutorType]=="ALL"?"+":">"),1)],2112))])):s.createCommentVNode("v-if",!0)])}),128)),s.createCommentVNode(" 显示添加人按钮,不是单选且已选中一个人的情况,显示按钮 "),l[i.defaultFile.isShowAdd]&&!(l[i.defaultFile.singleApproval]&&((B=l[i.defaultFile.approvePersonList])==null?void 0:B.length)==1)||l[i.defaultFile.isShowAddCopy]?(s.openBlock(),s.createElementBlock("span",{key:0,class:"addBg",onClick:v=>o(l)},[l[i.defaultFile.nodeType]==i.nodeType.审批节点?(s.openBlock(),s.createElementBlock("span",af)):s.createCommentVNode("v-if",!0),cf],8,sf)):s.createCommentVNode("v-if",!0),s.createCommentVNode(" 添加人组件 "),s.createVNode(s.unref(Vc),{modelValue:l.handList,"onUpdate:modelValue":v=>l.handList=v,show:l.isShow,"onUpdate:show":v=>l.isShow=v,onOk:v=>x(v,m),multiple:l.multiple,"type-option":{dep:"DEPT",user:"USER",role:"ROLE",post:"POST"},api:{methods:"post",url:r.pickerUrl,headers:{"Content-Type":"application/json;charset=UTF-8",Authorization:s.unref(n)}},"dep-list":l.depList,"user-list":l.userList,"organization-list":l.organizationList,"prop-option":{name:"elementName",id:"elementId",type:"elementType",avatar:"avatar"},chooseType:l.chooseType},null,8,["modelValue","onUpdate:modelValue","show","onUpdate:show","onOk","multiple","api","dep-list","user-list","organization-list","chooseType"])])])])}),128))]))}}),Qf="",Ci=H0(Qe(lf,[["__scopeId","data-v-46507da1"]]));Re.IKApprovalProcess=Ci,Re.default=Ci,Object.defineProperties(Re,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});