@syhr/sy-threed-graph 1.0.0-beta1 → 1.0.0-beta2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib-threed/sy-threed-graph.cjs +19 -19
- package/lib-threed/sy-threed-graph.mjs +2279 -2280
- package/lib-threed/sy-threed-graph.umd.js +21 -21
- package/lib-threed/threed-graph.css +1 -1
- package/package.json +1 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
(function(
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(
|
|
3
|
-
`)>=0)return!1;return!0}function Cu(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=
|
|
4
|
-
`+e.prev+e.base;return r+
|
|
5
|
-
`+e.prev}function kn(t,e){var r=Ui(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=jt(t,i)?e(t[i],t):""}var o=typeof Li=="function"?Li(t):[],s;if(Cr){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var h in t)jt(t,h)&&(r&&String(Number(h))===h&&h<t.length||Cr&&s["$"+h]instanceof Symbol||(aa.call(/[^\w$]/,h)?n.push(e(h,t)+": "+e(t[h],t)):n.push(h+": "+e(t[h],t))));if(typeof Li=="function")for(var c=0;c<o.length;c++)fa.call(t,o[c])&&n.push("["+e(o[c])+"]: "+e(t[o[c]],t));return n}var Bu=Ln,Du=Vt,Mn=function(t,e,r){for(var n=t,i;(i=n.next)!=null;n=i)if(i.key===e)return n.next=i.next,r||(i.next=t.next,t.next=i),i},Su=function(t,e){if(t){var r=Mn(t,e);return r&&r.value}},Fu=function(t,e,r){var n=Mn(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Ru=function(t,e){return t?!!Mn(t,e):!1},Iu=function(t,e){if(t)return Mn(t,e,!0)},Tu=function(){var e,r={assert:function(n){if(!r.has(n))throw new Du("Side channel does not contain "+Bu(n))},delete:function(n){var i=e&&e.next,o=Iu(e,n);return o&&i&&i===o&&(e=void 0),!!o},get:function(n){return Su(e,n)},has:function(n){return Ru(e,n)},set:function(n,i){e||(e={next:void 0}),Fu(e,n,i)}};return r},Aa=Object,Ou=Error,Pu=EvalError,Nu=RangeError,Lu=ReferenceError,ku=SyntaxError,Mu=URIError,Uu=Math.abs,$u=Math.floor,Hu=Math.max,zu=Math.min,qu=Math.pow,Wu=Math.round,Vu=Number.isNaN||function(e){return e!==e},Gu=Vu,ju=function(e){return Gu(e)||e===0?e:e<0?-1:1},Ku=Object.getOwnPropertyDescriptor,Un=Ku;if(Un)try{Un([],"length")}catch(t){Un=null}var wa=Un,$n=Object.defineProperty||!1;if($n)try{$n({},"a",{value:1})}catch(t){$n=!1}var Yu=$n,zi,_a;function Xu(){return _a||(_a=1,zi=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),zi}var qi,ba;function Ju(){if(ba)return qi;ba=1;var t=typeof Symbol!="undefined"&&Symbol,e=Xu();return qi=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qi}var Wi,Ca;function Ba(){return Ca||(Ca=1,Wi=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),Wi}var Vi,Da;function Sa(){if(Da)return Vi;Da=1;var t=Aa;return Vi=t.getPrototypeOf||null,Vi}var Gi,Fa;function Qu(){if(Fa)return Gi;Fa=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(h,c){for(var f=[],x=0;x<h.length;x+=1)f[x]=h[x];for(var l=0;l<c.length;l+=1)f[l+h.length]=c[l];return f},o=function(h,c){for(var f=[],x=c,l=0;x<h.length;x+=1,l+=1)f[l]=h[x];return f},s=function(a,h){for(var c="",f=0;f<a.length;f+=1)c+=a[f],f+1<a.length&&(c+=h);return c};return Gi=function(h){var c=this;if(typeof c!="function"||e.apply(c)!==n)throw new TypeError(t+c);for(var f=o(arguments,1),x,l=function(){if(this instanceof x){var R=c.apply(this,i(f,arguments));return Object(R)===R?R:this}return c.apply(h,i(f,arguments))},m=r(0,c.length-f.length),v=[],E=0;E<m;E++)v[E]="$"+E;if(x=Function("binder","return function ("+s(v,",")+"){ return binder.apply(this,arguments); }")(l),c.prototype){var A=function(){};A.prototype=c.prototype,x.prototype=new A,A.prototype=null}return x},Gi}var ji,Ra;function Hn(){if(Ra)return ji;Ra=1;var t=Qu();return ji=Function.prototype.bind||t,ji}var Ki,Ia;function Yi(){return Ia||(Ia=1,Ki=Function.prototype.call),Ki}var Xi,Ta;function Oa(){return Ta||(Ta=1,Xi=Function.prototype.apply),Xi}var Zu=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,el=Hn(),tl=Oa(),rl=Yi(),nl=Zu,il=nl||el.call(rl,tl),ol=Hn(),al=Vt,sl=Yi(),cl=il,Pa=function(e){if(e.length<1||typeof e[0]!="function")throw new al("a function is required");return cl(ol,sl,e)},Ji,Na;function fl(){if(Na)return Ji;Na=1;var t=Pa,e=wa,r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&e&&e(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return Ji=n&&typeof n.get=="function"?t([n.get]):typeof o=="function"?function(a){return o(a==null?a:i(a))}:!1,Ji}var Qi,La;function ul(){if(La)return Qi;La=1;var t=Ba(),e=Sa(),r=fl();return Qi=t?function(i){return t(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:r?function(i){return r(i)}:null,Qi}var Zi,ka;function ll(){if(ka)return Zi;ka=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Hn();return Zi=r.call(t,e),Zi}var Te,hl=Aa,dl=Ou,pl=Pu,xl=Nu,yl=Lu,Br=ku,Dr=Vt,vl=Mu,ml=Uu,gl=$u,El=Hu,Al=zu,wl=qu,_l=Wu,bl=ju,Ma=Function,eo=function(t){try{return Ma('"use strict"; return ('+t+").constructor;")()}catch(e){}},rn=wa,Cl=Yu,to=function(){throw new Dr},Bl=rn?function(){try{return arguments.callee,to}catch(t){try{return rn(arguments,"callee").get}catch(e){return to}}}():to,Sr=Ju()(),it=ul(),Dl=Sa(),Sl=Ba(),Ua=Oa(),nn=Yi(),Fr={},Fl=typeof Uint8Array=="undefined"||!it?Te:it(Uint8Array),sr={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Te:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Te:ArrayBuffer,"%ArrayIteratorPrototype%":Sr&&it?it([][Symbol.iterator]()):Te,"%AsyncFromSyncIteratorPrototype%":Te,"%AsyncFunction%":Fr,"%AsyncGenerator%":Fr,"%AsyncGeneratorFunction%":Fr,"%AsyncIteratorPrototype%":Fr,"%Atomics%":typeof Atomics=="undefined"?Te:Atomics,"%BigInt%":typeof BigInt=="undefined"?Te:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Te:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Te:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Te:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":dl,"%eval%":eval,"%EvalError%":pl,"%Float16Array%":typeof Float16Array=="undefined"?Te:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Te:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Te:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Te:FinalizationRegistry,"%Function%":Ma,"%GeneratorFunction%":Fr,"%Int8Array%":typeof Int8Array=="undefined"?Te:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Te:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Te:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Sr&&it?it(it([][Symbol.iterator]())):Te,"%JSON%":typeof JSON=="object"?JSON:Te,"%Map%":typeof Map=="undefined"?Te:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Sr||!it?Te:it(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":hl,"%Object.getOwnPropertyDescriptor%":rn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Te:Promise,"%Proxy%":typeof Proxy=="undefined"?Te:Proxy,"%RangeError%":xl,"%ReferenceError%":yl,"%Reflect%":typeof Reflect=="undefined"?Te:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Te:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Sr||!it?Te:it(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Te:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Sr&&it?it(""[Symbol.iterator]()):Te,"%Symbol%":Sr?Symbol:Te,"%SyntaxError%":Br,"%ThrowTypeError%":Bl,"%TypedArray%":Fl,"%TypeError%":Dr,"%Uint8Array%":typeof Uint8Array=="undefined"?Te:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Te:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Te:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Te:Uint32Array,"%URIError%":vl,"%WeakMap%":typeof WeakMap=="undefined"?Te:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Te:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Te:WeakSet,"%Function.prototype.call%":nn,"%Function.prototype.apply%":Ua,"%Object.defineProperty%":Cl,"%Object.getPrototypeOf%":Dl,"%Math.abs%":ml,"%Math.floor%":gl,"%Math.max%":El,"%Math.min%":Al,"%Math.pow%":wl,"%Math.round%":_l,"%Math.sign%":bl,"%Reflect.getPrototypeOf%":Sl};if(it)try{null.error}catch(t){var Rl=it(it(t));sr["%Error.prototype%"]=Rl}var Il=function t(e){var r;if(e==="%AsyncFunction%")r=eo("async function () {}");else if(e==="%GeneratorFunction%")r=eo("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=eo("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&it&&(r=it(i.prototype))}return sr[e]=r,r},$a={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},on=Hn(),zn=ll(),Tl=on.call(nn,Array.prototype.concat),Ol=on.call(Ua,Array.prototype.splice),Ha=on.call(nn,String.prototype.replace),qn=on.call(nn,String.prototype.slice),Pl=on.call(nn,RegExp.prototype.exec),Nl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ll=/\\(\\)?/g,kl=function(e){var r=qn(e,0,1),n=qn(e,-1);if(r==="%"&&n!=="%")throw new Br("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Br("invalid intrinsic syntax, expected opening `%`");var i=[];return Ha(e,Nl,function(o,s,a,h){i[i.length]=a?Ha(h,Ll,"$1"):s||o}),i},Ml=function(e,r){var n=e,i;if(zn($a,n)&&(i=$a[n],n="%"+i[0]+"%"),zn(sr,n)){var o=sr[n];if(o===Fr&&(o=Il(n)),typeof o=="undefined"&&!r)throw new Dr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Br("intrinsic "+e+" does not exist!")},ro=function(e,r){if(typeof e!="string"||e.length===0)throw new Dr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Dr('"allowMissing" argument must be a boolean');if(Pl(/^%?[^%]*%?$/,e)===null)throw new Br("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=kl(e),i=n.length>0?n[0]:"",o=Ml("%"+i+"%",r),s=o.name,a=o.value,h=!1,c=o.alias;c&&(i=c[0],Ol(n,Tl([0,1],c)));for(var f=1,x=!0;f<n.length;f+=1){var l=n[f],m=qn(l,0,1),v=qn(l,-1);if((m==='"'||m==="'"||m==="`"||v==='"'||v==="'"||v==="`")&&m!==v)throw new Br("property names with quotes must have matching quotes");if((l==="constructor"||!x)&&(h=!0),i+="."+l,s="%"+i+"%",zn(sr,s))a=sr[s];else if(a!=null){if(!(l in a)){if(!r)throw new Dr("base intrinsic for "+e+" exists, but the property is not available.");return}if(rn&&f+1>=n.length){var E=rn(a,l);x=!!E,x&&"get"in E&&!("originalValue"in E.get)?a=E.get:a=a[l]}else x=zn(a,l),a=a[l];x&&!h&&(sr[s]=a)}}return a},za=ro,qa=Pa,Ul=qa([za("%String.prototype.indexOf%")]),Wa=function(e,r){var n=za(e,!!r);return typeof n=="function"&&Ul(e,".prototype.")>-1?qa([n]):n},$l=ro,an=Wa,Hl=Ln,zl=Vt,Va=$l("%Map%",!0),ql=an("Map.prototype.get",!0),Wl=an("Map.prototype.set",!0),Vl=an("Map.prototype.has",!0),Gl=an("Map.prototype.delete",!0),jl=an("Map.prototype.size",!0),Ga=!!Va&&function(){var e,r={assert:function(n){if(!r.has(n))throw new zl("Side channel does not contain "+Hl(n))},delete:function(n){if(e){var i=Gl(e,n);return jl(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return ql(e,n)},has:function(n){return e?Vl(e,n):!1},set:function(n,i){e||(e=new Va),Wl(e,n,i)}};return r},Kl=ro,Wn=Wa,Yl=Ln,Vn=Ga,Xl=Vt,Rr=Kl("%WeakMap%",!0),Jl=Wn("WeakMap.prototype.get",!0),Ql=Wn("WeakMap.prototype.set",!0),Zl=Wn("WeakMap.prototype.has",!0),eh=Wn("WeakMap.prototype.delete",!0),th=Rr?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new Xl("Side channel does not contain "+Yl(i))},delete:function(i){if(Rr&&i&&(typeof i=="object"||typeof i=="function")){if(e)return eh(e,i)}else if(Vn&&r)return r.delete(i);return!1},get:function(i){return Rr&&i&&(typeof i=="object"||typeof i=="function")&&e?Jl(e,i):r&&r.get(i)},has:function(i){return Rr&&i&&(typeof i=="object"||typeof i=="function")&&e?Zl(e,i):!!r&&r.has(i)},set:function(i,o){Rr&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Rr),Ql(e,i,o)):Vn&&(r||(r=Vn()),r.set(i,o))}};return n}:Vn,rh=Vt,nh=Ln,ih=Tu,oh=Ga,ah=th,sh=ah||oh||ih,ja=function(){var e,r={assert:function(n){if(!r.has(n))throw new rh("Side channel does not contain "+nh(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,i){e||(e=sh()),e.set(n,i)}};return r},ch=String.prototype.replace,fh=/%20/g,no={RFC1738:"RFC1738",RFC3986:"RFC3986"},io={default:no.RFC3986,formatters:{RFC1738:function(t){return ch.call(t,fh,"+")},RFC3986:function(t){return String(t)}},RFC1738:no.RFC1738,RFC3986:no.RFC3986},uh=io,lh=ja,oo=Object.prototype.hasOwnProperty,cr=Array.isArray,Gn=lh(),Ir=function(e,r){return Gn.set(e,r),e},fr=function(e){return Gn.has(e)},sn=function(e){return Gn.get(e)},ao=function(e,r){Gn.set(e,r)},Ot=function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t}(),hh=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(cr(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]!="undefined"&&(i[i.length]=n[o]);r.obj[r.prop]=i}}},cn=function(e,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<e.length;++i)typeof e[i]!="undefined"&&(n[i]=e[i]);return n},dh=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(cr(e)){var i=e.length;if(n&&typeof n.arrayLimit=="number"&&i>n.arrayLimit)return Ir(cn(e.concat(r),n),i);e[i]=r}else if(e&&typeof e=="object")if(fr(e)){var o=sn(e)+1;e[o]=r,ao(e,o)}else{if(n&&n.strictMerge)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!oo.call(Object.prototype,r))&&(e[r]=!0)}else return[e,r];return e}if(!e||typeof e!="object"){if(fr(r)){for(var s=Object.keys(r),a=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},h=0;h<s.length;h++){var c=parseInt(s[h],10);a[c+1]=r[s[h]]}return Ir(a,sn(r)+1)}var f=[e].concat(r);return n&&typeof n.arrayLimit=="number"&&f.length>n.arrayLimit?Ir(cn(f,n),f.length-1):f}var x=e;return cr(e)&&!cr(r)&&(x=cn(e,n)),cr(e)&&cr(r)?(r.forEach(function(l,m){if(oo.call(e,m)){var v=e[m];v&&typeof v=="object"&&l&&typeof l=="object"?e[m]=t(v,l,n):e[e.length]=l}else e[m]=l}),e):Object.keys(r).reduce(function(l,m){var v=r[m];if(oo.call(l,m)?l[m]=t(l[m],v,n):l[m]=v,fr(r)&&!fr(l)&&Ir(l,sn(r)),fr(l)){var E=parseInt(m,10);String(E)===m&&E>=0&&E>sn(l)&&ao(l,E)}return l},x)},ph=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},xh=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(i){return n}},so=1024,yh=function(e,r,n,i,o){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(m){return"%26%23"+parseInt(m.slice(2),16)+"%3B"});for(var a="",h=0;h<s.length;h+=so){for(var c=s.length>=so?s.slice(h,h+so):s,f=[],x=0;x<c.length;++x){var l=c.charCodeAt(x);if(l===45||l===46||l===95||l===126||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===uh.RFC1738&&(l===40||l===41)){f[f.length]=c.charAt(x);continue}if(l<128){f[f.length]=Ot[l];continue}if(l<2048){f[f.length]=Ot[192|l>>6]+Ot[128|l&63];continue}if(l<55296||l>=57344){f[f.length]=Ot[224|l>>12]+Ot[128|l>>6&63]+Ot[128|l&63];continue}x+=1,l=65536+((l&1023)<<10|c.charCodeAt(x)&1023),f[f.length]=Ot[240|l>>18]+Ot[128|l>>12&63]+Ot[128|l>>6&63]+Ot[128|l&63]}a+=f.join("")}return a},vh=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],s=o.obj[o.prop],a=Object.keys(s),h=0;h<a.length;++h){var c=a[h],f=s[c];typeof f=="object"&&f!==null&&n.indexOf(f)===-1&&(r[r.length]={obj:s,prop:c},n[n.length]=f)}return hh(r),e},mh=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},gh=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Eh=function(e,r,n,i){if(fr(e)){var o=sn(e)+1;return e[o]=r,ao(e,o),e}var s=[].concat(e,r);return s.length>n?Ir(cn(s,{plainObjects:i}),s.length-1):s},Ah=function(e,r){if(cr(e)){for(var n=[],i=0;i<e.length;i+=1)n[n.length]=r(e[i]);return n}return r(e)},Ka={arrayToObject:cn,assign:ph,combine:Eh,compact:vh,decode:xh,encode:yh,isBuffer:gh,isOverflow:fr,isRegExp:mh,markOverflow:Ir,maybeMap:Ah,merge:dh},Ya=ja,jn=Ka,fn=io,wh=Object.prototype.hasOwnProperty,Xa={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Pt=Array.isArray,_h=Array.prototype.push,Ja=function(t,e){_h.apply(t,Pt(e)?e:[e])},bh=Date.prototype.toISOString,Qa=fn.default,rt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:jn.encode,encodeValuesOnly:!1,filter:void 0,format:Qa,formatter:fn.formatters[Qa],indices:!1,serializeDate:function(e){return bh.call(e)},skipNulls:!1,strictNullHandling:!1},Ch=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},co={},Bh=function t(e,r,n,i,o,s,a,h,c,f,x,l,m,v,E,A,R,w){for(var _=e,D=w,C=0,O=!1;(D=D.get(co))!==void 0&&!O;){var L=D.get(e);if(C+=1,typeof L!="undefined"){if(L===C)throw new RangeError("Cyclic object value");O=!0}typeof D.get(co)=="undefined"&&(C=0)}if(typeof f=="function"?_=f(r,_):_ instanceof Date?_=m(_):n==="comma"&&Pt(_)&&(_=jn.maybeMap(_,function(fe){return fe instanceof Date?m(fe):fe})),_===null){if(s)return c&&!A?c(r,rt.encoder,R,"key",v):r;_=""}if(Ch(_)||jn.isBuffer(_)){if(c){var H=A?r:c(r,rt.encoder,R,"key",v);return[E(H)+"="+E(c(_,rt.encoder,R,"value",v))]}return[E(r)+"="+E(String(_))]}var Z=[];if(typeof _=="undefined")return Z;var P;if(n==="comma"&&Pt(_))A&&c&&(_=jn.maybeMap(_,c)),P=[{value:_.length>0?_.join(",")||null:void 0}];else if(Pt(f))P=f;else{var k=Object.keys(_);P=x?k.sort(x):k}var V=h?String(r).replace(/\./g,"%2E"):String(r),X=i&&Pt(_)&&_.length===1?V+"[]":V;if(o&&Pt(_)&&_.length===0)return X+"[]";for(var te=0;te<P.length;++te){var Y=P[te],Q=typeof Y=="object"&&Y&&typeof Y.value!="undefined"?Y.value:_[Y];if(!(a&&Q===null)){var oe=l&&h?String(Y).replace(/\./g,"%2E"):String(Y),ie=Pt(_)?typeof n=="function"?n(X,oe):X:X+(l?"."+oe:"["+oe+"]");w.set(e,C);var he=Ya();he.set(co,w),Ja(Z,t(Q,ie,n,i,o,s,a,h,n==="comma"&&A&&Pt(_)?null:c,f,x,l,m,v,E,A,R,he))}}return Z},Dh=function(e){if(!e)return rt;if(typeof e.allowEmptyArrays!="undefined"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys!="undefined"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder!="undefined"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||rt.charset;if(typeof e.charset!="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=fn.default;if(typeof e.format!="undefined"){if(!wh.call(fn.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=fn.formatters[n],o=rt.filter;(typeof e.filter=="function"||Pt(e.filter))&&(o=e.filter);var s;if(e.arrayFormat in Xa?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=rt.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof e.allowDots=="undefined"?e.encodeDotInKeys===!0?!0:rt.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:rt.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:rt.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:rt.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter=="undefined"?rt.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:rt.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:rt.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:rt.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:rt.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:rt.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:rt.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:rt.strictNullHandling}},Sh=function(t,e){var r=t,n=Dh(e),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Pt(n.filter)&&(o=n.filter,i=o);var s=[];if(typeof r!="object"||r===null)return"";var a=Xa[n.arrayFormat],h=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var c=Ya(),f=0;f<i.length;++f){var x=i[f],l=r[x];n.skipNulls&&l===null||Ja(s,Bh(l,x,a,h,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}var m=s.join(n.delimiter),v=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),m.length>0?v+m:""},Nt=Ka,Kn=Object.prototype.hasOwnProperty,fo=Array.isArray,Je={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Nt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},Fh=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Za=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},Rh="utf8=%26%2310003%3B",Ih="utf8=%E2%9C%93",Th=function(e,r){var n={__proto__:null},i=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===1/0?void 0:r.parameterLimit,s=i.split(r.delimiter,r.throwOnLimitExceeded&&typeof o!="undefined"?o+1:o);if(r.throwOnLimitExceeded&&typeof o!="undefined"&&s.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var a=-1,h,c=r.charset;if(r.charsetSentinel)for(h=0;h<s.length;++h)s[h].indexOf("utf8=")===0&&(s[h]===Ih?c="utf-8":s[h]===Rh&&(c="iso-8859-1"),a=h,h=s.length);for(h=0;h<s.length;++h)if(h!==a){var f=s[h],x=f.indexOf("]="),l=x===-1?f.indexOf("="):x+1,m,v;if(l===-1?(m=r.decoder(f,Je.decoder,c,"key"),v=r.strictNullHandling?null:""):(m=r.decoder(f.slice(0,l),Je.decoder,c,"key"),m!==null&&(v=Nt.maybeMap(Za(f.slice(l+1),r,fo(n[m])?n[m].length:0),function(A){return r.decoder(A,Je.decoder,c,"value")}))),v&&r.interpretNumericEntities&&c==="iso-8859-1"&&(v=Fh(String(v))),f.indexOf("[]=")>-1&&(v=fo(v)?[v]:v),r.comma&&fo(v)&&v.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");v=Nt.combine([],v,r.arrayLimit,r.plainObjects)}if(m!==null){var E=Kn.call(n,m);E&&(r.duplicates==="combine"||f.indexOf("[]=")>-1)?n[m]=Nt.combine(n[m],v,r.arrayLimit,r.plainObjects):(!E||r.duplicates==="last")&&(n[m]=v)}}return n},Oh=function(t,e,r,n){var i=0;if(t.length>0&&t[t.length-1]==="[]"){var o=t.slice(0,-1).join("");i=Array.isArray(e)&&e[o]?e[o].length:0}for(var s=n?e:Za(e,r,i),a=t.length-1;a>=0;--a){var h,c=t[a];if(c==="[]"&&r.parseArrays)Nt.isOverflow(s)?h=s:h=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:Nt.combine([],s,r.arrayLimit,r.plainObjects);else{h=r.plainObjects?{__proto__:null}:{};var f=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,x=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,l=parseInt(x,10),m=!isNaN(l)&&c!==x&&String(l)===x&&l>=0&&r.parseArrays;if(!r.parseArrays&&x==="")h={0:s};else if(m&&l<r.arrayLimit)h=[],h[l]=s;else{if(m&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");m?(h[l]=s,Nt.markOverflow(h,l)):x!=="__proto__"&&(h[x]=s)}}s=h}return s},Ph=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&Kn.call(Object.prototype,n)&&!r.allowPrototypes?void 0:[n];var i=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,s=i.exec(n),a=s?n.slice(0,s.index):n,h=[];if(a){if(!r.plainObjects&&Kn.call(Object.prototype,a)&&!r.allowPrototypes)return;h[h.length]=a}for(var c=0;(s=o.exec(n))!==null&&c<r.depth;){c+=1;var f=s[1].slice(1,-1);if(!r.plainObjects&&Kn.call(Object.prototype,f)&&!r.allowPrototypes)return;h[h.length]=s[1]}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");h[h.length]="["+n.slice(s.index)+"]"}return h},Nh=function(e,r,n,i){if(e){var o=Ph(e,n);if(o)return Oh(o,r,n,i)}},Lh=function(e){if(!e)return Je;if(typeof e.allowEmptyArrays!="undefined"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys!="undefined"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder!="undefined"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset!="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded!="undefined"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset=="undefined"?Je.charset:e.charset,n=typeof e.duplicates=="undefined"?Je.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots=="undefined"?e.decodeDotInKeys===!0?!0:Je.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Je.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Je.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Je.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Je.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Je.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Je.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Je.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Je.decoder,delimiter:typeof e.delimiter=="string"||Nt.isRegExp(e.delimiter)?e.delimiter:Je.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Je.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Je.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Je.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Je.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Je.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:Je.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Je.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},kh=function(t,e){var r=Lh(e);if(t===""||t===null||typeof t=="undefined")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Th(t,r):t,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var a=o[s],h=Nh(a,n[a],r,typeof t=="string");i=Nt.merge(i,h,r)}return r.allowSparse===!0?i:Nt.compact(i)},Mh=Sh,Uh=kh,$h=io,Hh={formats:$h,parse:Uh,stringify:Mh};const zh=dt(Hh);function es(t,e){return function(){return t.apply(e,arguments)}}const{toString:qh}=Object.prototype,{getPrototypeOf:Yn}=Object,{iterator:Xn,toStringTag:ts}=Symbol,Jn=(t=>e=>{const r=qh.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Bt=t=>(t=t.toLowerCase(),e=>Jn(e)===t),Qn=t=>e=>typeof e===t,{isArray:Tr}=Array,Or=Qn("undefined");function un(t){return t!==null&&!Or(t)&&t.constructor!==null&&!Or(t.constructor)&&yt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const rs=Bt("ArrayBuffer");function Wh(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&rs(t.buffer),e}const Vh=Qn("string"),yt=Qn("function"),ns=Qn("number"),ln=t=>t!==null&&typeof t=="object",Gh=t=>t===!0||t===!1,Zn=t=>{if(Jn(t)!=="object")return!1;const e=Yn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(ts in t)&&!(Xn in t)},jh=t=>{if(!ln(t)||un(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},Kh=Bt("Date"),Yh=Bt("File"),Xh=t=>!!(t&&typeof t.uri!="undefined"),Jh=t=>t&&typeof t.getParts!="undefined",Qh=Bt("Blob"),Zh=Bt("FileList"),ed=t=>ln(t)&&yt(t.pipe);function td(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const is=td(),os=typeof is.FormData!="undefined"?is.FormData:void 0,rd=t=>{if(!t)return!1;if(os&&t instanceof os)return!0;const e=Yn(t);if(!e||e===Object.prototype||!yt(t.append))return!1;const r=Jn(t);return r==="formdata"||r==="object"&&yt(t.toString)&&t.toString()==="[object FormData]"},nd=Bt("URLSearchParams"),[id,od,ad,sd]=["ReadableStream","Request","Response","Headers"].map(Bt),cd=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hn(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t=="undefined")return;let n,i;if(typeof t!="object"&&(t=[t]),Tr(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(un(t))return;const o=r?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(n=0;n<s;n++)a=o[n],e.call(null,t[a],a,t)}}function as(t,e){if(un(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const ur=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,ss=t=>!Or(t)&&t!==ur;function uo(...t){const{caseless:e,skipUndefined:r}=ss(this)&&this||{},n={},i=(o,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=e&&as(n,s)||s,h=lo(n,a)?n[a]:void 0;Zn(h)&&Zn(o)?n[a]=uo(h,o):Zn(o)?n[a]=uo({},o):Tr(o)?n[a]=o.slice():(!r||!Or(o))&&(n[a]=o)};for(let o=0,s=t.length;o<s;o++)t[o]&&hn(t[o],i);return n}const fd=(t,e,r,{allOwnKeys:n}={})=>(hn(e,(i,o)=>{r&&yt(i)?Object.defineProperty(t,o,{__proto__:null,value:es(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,o,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),ud=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ld=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},hd=(t,e,r,n)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!n||n(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=r!==!1&&Yn(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},dd=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},pd=t=>{if(!t)return null;if(Tr(t))return t;let e=t.length;if(!ns(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},xd=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&Yn(Uint8Array)),yd=(t,e)=>{const n=(t&&t[Xn]).call(t);let i;for(;(i=n.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},vd=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},md=Bt("HTMLFormElement"),gd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),lo=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Ed=Bt("RegExp"),cs=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};hn(r,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(n[o]=s||i)}),Object.defineProperties(t,n)},Ad=t=>{cs(t,(e,r)=>{if(yt(t)&&["arguments","caller","callee"].includes(r))return!1;const n=t[r];if(yt(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},wd=(t,e)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Tr(t)?n(t):n(String(t).split(e)),r},_d=()=>{},bd=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Cd(t){return!!(t&&yt(t.append)&&t[ts]==="FormData"&&t[Xn])}const Bd=t=>{const e=new Array(10),r=(n,i)=>{if(ln(n)){if(e.indexOf(n)>=0)return;if(un(n))return n;if(!("toJSON"in n)){e[i]=n;const o=Tr(n)?[]:{};return hn(n,(s,a)=>{const h=r(s,i+1);!Or(h)&&(o[a]=h)}),e[i]=void 0,o}}return n};return r(t,0)},Dd=Bt("AsyncFunction"),Sd=t=>t&&(ln(t)||yt(t))&&yt(t.then)&&yt(t.catch),fs=((t,e)=>t?setImmediate:e?((r,n)=>(ur.addEventListener("message",({source:i,data:o})=>{i===ur&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ur.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",yt(ur.postMessage)),Fd=typeof queueMicrotask!="undefined"?queueMicrotask.bind(ur):typeof process!="undefined"&&process.nextTick||fs,G={isArray:Tr,isArrayBuffer:rs,isBuffer:un,isFormData:rd,isArrayBufferView:Wh,isString:Vh,isNumber:ns,isBoolean:Gh,isObject:ln,isPlainObject:Zn,isEmptyObject:jh,isReadableStream:id,isRequest:od,isResponse:ad,isHeaders:sd,isUndefined:Or,isDate:Kh,isFile:Yh,isReactNativeBlob:Xh,isReactNative:Jh,isBlob:Qh,isRegExp:Ed,isFunction:yt,isStream:ed,isURLSearchParams:nd,isTypedArray:xd,isFileList:Zh,forEach:hn,merge:uo,extend:fd,trim:cd,stripBOM:ud,inherits:ld,toFlatObject:hd,kindOf:Jn,kindOfTest:Bt,endsWith:dd,toArray:pd,forEachEntry:yd,matchAll:vd,isHTMLForm:md,hasOwnProperty:lo,hasOwnProp:lo,reduceDescriptors:cs,freezeMethods:Ad,toObjectSet:wd,toCamelCase:gd,noop:_d,toFiniteNumber:bd,findKey:as,global:ur,isContextDefined:ss,isSpecCompliantForm:Cd,toJSONObject:Bd,isAsyncFn:Dd,isThenable:Sd,setImmediate:fs,asap:Fd,isIterable:t=>t!=null&&yt(t[Xn])},Rd=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Id=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
6
|
-
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&Rd[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},
|
|
7
|
-
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[us]=this[us]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=dn(s);n[a]||(Md(i,s),n[a]=!0)}return G.isArray(e)?e.forEach(o):o(e),this}};pt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(pt.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}}),G.freezeMethods(pt);const Ud="[REDACTED ****]";function $d(t){if(G.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(G.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Hd(t,e){const r=new Set(e.map(o=>String(o).toLowerCase())),n=[],i=o=>{if(o===null||typeof o!="object"||G.isBuffer(o))return o;if(n.indexOf(o)!==-1)return;o instanceof pt&&(o=o.toJSON()),n.push(o);let s;if(G.isArray(o))s=[],o.forEach((a,h)=>{const c=i(a);G.isUndefined(c)||(s[h]=c)});else{if(!G.isPlainObject(o)&&$d(o))return n.pop(),o;s=Object.create(null);for(const[a,h]of Object.entries(o)){const c=r.has(a.toLowerCase())?Ud:i(h);G.isUndefined(c)||(s[a]=c)}}return n.pop(),s};return i(t)}let me=class Xf extends Error{static from(e,r,n,i,o,s){const a=new Xf(e.message,r||e.code,n,i,o);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),s&&Object.assign(a,s),a}constructor(e,r,n,i,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,r=e&&G.hasOwnProp(e,"redact")?e.redact:void 0,n=G.isArray(r)&&r.length>0?Hd(e,r):G.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};me.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",me.ERR_BAD_OPTION="ERR_BAD_OPTION",me.ECONNABORTED="ECONNABORTED",me.ETIMEDOUT="ETIMEDOUT",me.ECONNREFUSED="ECONNREFUSED",me.ERR_NETWORK="ERR_NETWORK",me.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",me.ERR_DEPRECATED="ERR_DEPRECATED",me.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",me.ERR_BAD_REQUEST="ERR_BAD_REQUEST",me.ERR_CANCELED="ERR_CANCELED",me.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",me.ERR_INVALID_URL="ERR_INVALID_URL",me.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const zd=null;function po(t){return G.isPlainObject(t)||G.isArray(t)}function ls(t){return G.endsWith(t,"[]")?t.slice(0,-2):t}function xo(t,e,r){return t?t.concat(e).map(function(i,o){return i=ls(i),!r&&o?"["+i+"]":i}).join(r?".":""):e}function qd(t){return G.isArray(t)&&!t.some(po)}const Wd=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function ti(t,e,r){if(!G.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,R){return!G.isUndefined(R[A])});const n=r.metaTokens,i=r.visitor||x,o=r.dots,s=r.indexes,a=r.Blob||typeof Blob!="undefined"&&Blob,h=r.maxDepth===void 0?100:r.maxDepth,c=a&&G.isSpecCompliantForm(e);if(!G.isFunction(i))throw new TypeError("visitor must be a function");function f(E){if(E===null)return"";if(G.isDate(E))return E.toISOString();if(G.isBoolean(E))return E.toString();if(!c&&G.isBlob(E))throw new me("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(E)||G.isTypedArray(E)?c&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function x(E,A,R){let w=E;if(G.isReactNative(e)&&G.isReactNativeBlob(E))return e.append(xo(R,A,o),f(E)),!1;if(E&&!R&&typeof E=="object"){if(G.endsWith(A,"{}"))A=n?A:A.slice(0,-2),E=JSON.stringify(E);else if(G.isArray(E)&&qd(E)||(G.isFileList(E)||G.endsWith(A,"[]"))&&(w=G.toArray(E)))return A=ls(A),w.forEach(function(D,C){!(G.isUndefined(D)||D===null)&&e.append(s===!0?xo([A],C,o):s===null?A:A+"[]",f(D))}),!1}return po(E)?!0:(e.append(xo(R,A,o),f(E)),!1)}const l=[],m=Object.assign(Wd,{defaultVisitor:x,convertValue:f,isVisitable:po});function v(E,A,R=0){if(!G.isUndefined(E)){if(R>h)throw new me("Object is too deeply nested ("+R+" levels). Max depth: "+h,me.ERR_FORM_DATA_DEPTH_EXCEEDED);if(l.indexOf(E)!==-1)throw Error("Circular reference detected in "+A.join("."));l.push(E),G.forEach(E,function(_,D){(!(G.isUndefined(_)||_===null)&&i.call(e,_,G.isString(D)?D.trim():D,A,m))===!0&&v(_,A?A.concat(D):[D],R+1)}),l.pop()}}if(!G.isObject(t))throw new TypeError("data must be an object");return v(t),e}function hs(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function yo(t,e){this._pairs=[],t&&ti(t,this,e)}const ds=yo.prototype;ds.append=function(e,r){this._pairs.push([e,r])},ds.toString=function(e){const r=e?function(n){return e.call(this,n,hs)}:hs;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Vd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ps(t,e,r){if(!e)return t;const n=r&&r.encode||Vd,i=G.isFunction(r)?{serialize:r}:r,o=i&&i.serialize;let s;if(o?s=o(e,i):s=G.isURLSearchParams(e)?e.toString():new yo(e,i).toString(n),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class xs{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(n){n!==null&&e(n)})}}const vo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Gd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:yo,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},mo=typeof window!="undefined"&&typeof document!="undefined",go=typeof navigator=="object"&&navigator||void 0,jd=mo&&(!go||["ReactNative","NativeScript","NS"].indexOf(go.product)<0),Kd=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yd=mo&&window.location.href||"http://localhost",ut=We(We({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:mo,hasStandardBrowserEnv:jd,hasStandardBrowserWebWorkerEnv:Kd,navigator:go,origin:Yd},Symbol.toStringTag,{value:"Module"}))),Gd);function Xd(t,e){return ti(t,new ut.classes.URLSearchParams,We({visitor:function(r,n,i,o){return ut.isNode&&G.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Jd(t){return G.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Qd(t){const e={},r=Object.keys(t);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],e[o]=t[o];return e}function ys(t){function e(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),h=o>=r.length;return s=!s&&G.isArray(i)?i.length:s,h?(G.hasOwnProp(i,s)?i[s]=G.isArray(i[s])?i[s].concat(n):[i[s],n]:i[s]=n,!a):((!i[s]||!G.isObject(i[s]))&&(i[s]=[]),e(r,n,i[s],o)&&G.isArray(i[s])&&(i[s]=Qd(i[s])),!a)}if(G.isFormData(t)&&G.isFunction(t.entries)){const r={};return G.forEachEntry(t,(n,i)=>{e(Jd(n),i,r,0)}),r}return null}const Pr=(t,e)=>t!=null&&G.hasOwnProp(t,e)?t[e]:void 0;function Zd(t,e,r){if(G.isString(t))try{return(e||JSON.parse)(t),G.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const pn={transitional:vo,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=G.isObject(e);if(o&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return i?JSON.stringify(ys(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){const h=Pr(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return Xd(e,h).toString();if((a=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=Pr(this,"env"),f=c&&c.FormData;return ti(a?{"files[]":e}:e,f&&new f,h)}}return o||i?(r.setContentType("application/json",!1),Zd(e)):e}],transformResponse:[function(e){const r=Pr(this,"transitional")||pn.transitional,n=r&&r.forcedJSONParsing,i=Pr(this,"responseType"),o=i==="json";if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!i||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e,Pr(this,"parseReviver"))}catch(h){if(a)throw h.name==="SyntaxError"?me.from(h,me.ERR_BAD_RESPONSE,this,null,Pr(this,"response")):h}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch","query"],t=>{pn.headers[t]={}});function Eo(t,e){const r=this||pn,n=e||r,i=pt.from(n.headers);let o=n.data;return G.forEach(t,function(a){o=a.call(r,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function vs(t){return!!(t&&t.__CANCEL__)}let xn=class extends me{constructor(e,r,n){super(e==null?"canceled":e,me.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function ms(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new me("Request failed with status code "+r.status,r.status>=400&&r.status<500?me.ERR_BAD_REQUEST:me.ERR_BAD_RESPONSE,r.config,r.request,r))}function ep(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function tp(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(h){const c=Date.now(),f=n[o];s||(s=c),r[i]=h,n[i]=c;let x=o,l=0;for(;x!==i;)l+=r[x++],x=x%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),c-s<e)return;const m=f&&c-f;return m?Math.round(l*1e3/m):void 0}}function rp(t,e){let r=0,n=1e3/e,i,o;const s=(c,f=Date.now())=>{r=f,i=null,o&&(clearTimeout(o),o=null),t(...c)};return[(...c)=>{const f=Date.now(),x=f-r;x>=n?s(c,f):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},n-x)))},()=>i&&s(i)]}const ri=(t,e,r=3)=>{let n=0;const i=tp(50,250);return rp(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,h=a!=null?Math.min(s,a):s,c=Math.max(0,h-n),f=i(c);n=Math.max(n,h);const x={loaded:h,total:a,progress:a?h/a:void 0,bytes:c,rate:f||void 0,estimated:f&&a?(a-h)/f:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(x)},r)},gs=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Es=t=>(...e)=>G.asap(()=>t(...e)),np=ut.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,ut.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(ut.origin),ut.navigator&&/(msie|trident)/i.test(ut.navigator.userAgent)):()=>!0,ip=ut.hasStandardBrowserEnv?{write(t,e,r,n,i,o,s){if(typeof document=="undefined")return;const a=[`${t}=${encodeURIComponent(e)}`];G.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),G.isString(n)&&a.push(`path=${n}`),G.isString(i)&&a.push(`domain=${i}`),o===!0&&a.push("secure"),G.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(t){if(typeof document=="undefined")return null;const e=document.cookie.split(";");for(let r=0;r<e.length;r++){const n=e[r].replace(/^\s+/,""),i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===t)return decodeURIComponent(n.slice(i+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function op(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ap(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function As(t,e,r){let n=!op(e);return t&&(n||r===!1)?ap(t,e):e}const ws=t=>t instanceof pt?We({},t):t;function lr(t,e){e=e||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(c,f,x,l){return G.isPlainObject(c)&&G.isPlainObject(f)?G.merge.call({caseless:l},c,f):G.isPlainObject(f)?G.merge({},f):G.isArray(f)?f.slice():f}function i(c,f,x,l){if(G.isUndefined(f)){if(!G.isUndefined(c))return n(void 0,c,x,l)}else return n(c,f,x,l)}function o(c,f){if(!G.isUndefined(f))return n(void 0,f)}function s(c,f){if(G.isUndefined(f)){if(!G.isUndefined(c))return n(void 0,c)}else return n(void 0,f)}function a(c,f,x){if(G.hasOwnProp(e,x))return n(c,f);if(G.hasOwnProp(t,x))return n(void 0,c)}const h={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(c,f,x)=>i(ws(c),ws(f),x,!0)};return G.forEach(Object.keys(We(We({},t),e)),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const x=G.hasOwnProp(h,f)?h[f]:i,l=G.hasOwnProp(t,f)?t[f]:void 0,m=G.hasOwnProp(e,f)?e[f]:void 0,v=x(l,m,f);G.isUndefined(v)&&x!==a||(r[f]=v)}),r}const sp=["content-type","content-length"];function cp(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,i])=>{sp.includes(n.toLowerCase())&&t.set(n,i)})}const fp=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),_s=t=>{const e=lr({},t),r=l=>G.hasOwnProp(e,l)?e[l]:void 0,n=r("data");let i=r("withXSRFToken");const o=r("xsrfHeaderName"),s=r("xsrfCookieName");let a=r("headers");const h=r("auth"),c=r("baseURL"),f=r("allowAbsoluteUrls"),x=r("url");if(e.headers=a=pt.from(a),e.url=ps(As(c,x,f),t.params,t.paramsSerializer),h&&a.set("Authorization","Basic "+btoa((h.username||"")+":"+(h.password?fp(h.password):""))),G.isFormData(n)&&(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):G.isFunction(n.getHeaders)&&cp(a,n.getHeaders(),r("formDataHeaderPolicy"))),ut.hasStandardBrowserEnv&&(G.isFunction(i)&&(i=i(e)),i===!0||i==null&&np(e.url))){const m=o&&s&&ip.read(s);m&&a.set(o,m)}return e},up=typeof XMLHttpRequest!="undefined"&&function(t){return new Promise(function(r,n){const i=_s(t);let o=i.data;const s=pt.from(i.headers).normalize();let{responseType:a,onUploadProgress:h,onDownloadProgress:c}=i,f,x,l,m,v;function E(){m&&m(),v&&v(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let A=new XMLHttpRequest;A.open(i.method.toUpperCase(),i.url,!0),A.timeout=i.timeout;function R(){if(!A)return;const _=pt.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),C={data:!a||a==="text"||a==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:_,config:t,request:A};ms(function(L){r(L),E()},function(L){n(L),E()},C),A=null}"onloadend"in A?A.onloadend=R:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.startsWith("file:"))||setTimeout(R)},A.onabort=function(){A&&(n(new me("Request aborted",me.ECONNABORTED,t,A)),E(),A=null)},A.onerror=function(D){const C=D&&D.message?D.message:"Network Error",O=new me(C,me.ERR_NETWORK,t,A);O.event=D||null,n(O),E(),A=null},A.ontimeout=function(){let D=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const C=i.transitional||vo;i.timeoutErrorMessage&&(D=i.timeoutErrorMessage),n(new me(D,C.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,t,A)),E(),A=null},o===void 0&&s.setContentType(null),"setRequestHeader"in A&&G.forEach(s.toJSON(),function(D,C){A.setRequestHeader(C,D)}),G.isUndefined(i.withCredentials)||(A.withCredentials=!!i.withCredentials),a&&a!=="json"&&(A.responseType=i.responseType),c&&([l,v]=ri(c,!0),A.addEventListener("progress",l)),h&&A.upload&&([x,m]=ri(h),A.upload.addEventListener("progress",x),A.upload.addEventListener("loadend",m)),(i.cancelToken||i.signal)&&(f=_=>{A&&(n(!_||_.type?new xn(null,t,A):_),A.abort(),E(),A=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const w=ep(i.url);if(w&&!ut.protocols.includes(w)){n(new me("Unsupported protocol "+w+":",me.ERR_BAD_REQUEST,t));return}A.send(o||null)})},lp=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const o=function(c){if(!i){i=!0,a();const f=c instanceof Error?c:this.reason;n.abort(f instanceof me?f:new xn(f instanceof Error?f.message:f))}};let s=e&&setTimeout(()=>{s=null,o(new me(`timeout of ${e}ms exceeded`,me.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),t=null)};t.forEach(c=>c.addEventListener("abort",o));const{signal:h}=n;return h.unsubscribe=()=>G.asap(a),h}},hp=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},dp=function(t,e){return Q0(this,null,function*(){try{for(var r=Yf(pp(t)),n,i,o;n=!(i=yield new br(r.next())).done;n=!1){const s=i.value;yield*Z0(hp(s,e))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new br(i.call(r)))}finally{if(o)throw o[0]}}})},pp=function(t){return Q0(this,null,function*(){if(t[Symbol.asyncIterator]){yield*Z0(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new br(e.read());if(r)break;yield n}}finally{yield new br(e.cancel())}})},bs=(t,e,r,n)=>{const i=dp(t,e);let o=0,s,a=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({pull(c){return De(this,null,function*(){try{const{done:f,value:x}=yield i.next();if(f){a(),c.close();return}let l=x.byteLength;if(r){let m=o+=l;r(m)}c.enqueue(new Uint8Array(x))}catch(f){throw a(f),f}})},cancel(c){return a(c),i.return()}},{highWaterMark:2})};function xp(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const r=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(r)){let s=n.length;const a=n.length;for(let m=0;m<a;m++)if(n.charCodeAt(m)===37&&m+2<a){const v=n.charCodeAt(m+1),E=n.charCodeAt(m+2);(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102)&&(E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102)&&(s-=2,m+=2)}let h=0,c=a-1;const f=m=>m>=2&&n.charCodeAt(m-2)===37&&n.charCodeAt(m-1)===51&&(n.charCodeAt(m)===68||n.charCodeAt(m)===100);c>=0&&(n.charCodeAt(c)===61?(h++,c--):f(c)&&(h++,c-=3)),h===1&&c>=0&&(n.charCodeAt(c)===61||f(c))&&h++;const l=Math.floor(s/4)*3-(h||0);return l>0?l:0}if(typeof Buffer!="undefined"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let o=0;for(let s=0,a=n.length;s<a;s++){const h=n.charCodeAt(s);if(h<128)o+=1;else if(h<2048)o+=2;else if(h>=55296&&h<=56319&&s+1<a){const c=n.charCodeAt(s+1);c>=56320&&c<=57343?(o+=4,s++):o+=3}else o+=3}return o}const Ao="1.16.0",Cs=64*1024,{isFunction:ni}=G,Bs=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},yp=t=>{var R;const e=(R=G.global)!=null?R:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=G.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:i,Request:o,Response:s}=t,a=i?ni(i):typeof fetch=="function",h=ni(o),c=ni(s);if(!a)return!1;const f=a&&ni(r),x=a&&(typeof n=="function"?(w=>_=>w.encode(_))(new n):w=>De(this,null,function*(){return new Uint8Array(yield new o(w).arrayBuffer())})),l=h&&f&&Bs(()=>{let w=!1;const _=new o(ut.origin,{body:new r,method:"POST",get duplex(){return w=!0,"half"}}),D=_.headers.has("Content-Type");return _.body!=null&&_.body.cancel(),w&&!D}),m=c&&f&&Bs(()=>G.isReadableStream(new s("").body)),v={stream:m&&(w=>w.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!v[w]&&(v[w]=(_,D)=>{let C=_&&_[w];if(C)return C.call(_);throw new me(`Response type '${w}' is not supported`,me.ERR_NOT_SUPPORT,D)})});const E=w=>De(this,null,function*(){if(w==null)return 0;if(G.isBlob(w))return w.size;if(G.isSpecCompliantForm(w))return(yield new o(ut.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(G.isArrayBufferView(w)||G.isArrayBuffer(w))return w.byteLength;if(G.isURLSearchParams(w)&&(w=w+""),G.isString(w))return(yield x(w)).byteLength}),A=(w,_)=>De(this,null,function*(){const D=G.toFiniteNumber(w.getContentLength());return D==null?E(_):D});return w=>De(this,null,function*(){let{url:_,method:D,data:C,signal:O,cancelToken:L,timeout:H,onDownloadProgress:Z,onUploadProgress:P,responseType:k,headers:V,withCredentials:X="same-origin",fetchOptions:te,maxContentLength:Y,maxBodyLength:Q}=_s(w);const oe=G.isNumber(Y)&&Y>-1,ie=G.isNumber(Q)&&Q>-1;let he=i||fetch;k=k?(k+"").toLowerCase():"text";let fe=lp([O,L&&L.toAbortSignal()],H),z=null;const j=fe&&fe.unsubscribe&&(()=>{fe.unsubscribe()});let re;try{if(oe&&typeof _=="string"&&_.startsWith("data:")&&xp(_)>Y)throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,z);if(ie&&D!=="get"&&D!=="head"){const _e=yield A(V,C);if(typeof _e=="number"&&isFinite(_e)&&_e>Q)throw new me("Request body larger than maxBodyLength limit",me.ERR_BAD_REQUEST,w,z)}if(P&&l&&D!=="get"&&D!=="head"&&(re=yield A(V,C))!==0){let _e=new o(_,{method:"POST",body:C,duplex:"half"}),Pe;if(G.isFormData(C)&&(Pe=_e.headers.get("content-type"))&&V.setContentType(Pe),_e.body){const[Ge,Ve]=gs(re,ri(Es(P)));C=bs(_e.body,Cs,Ge,Ve)}}G.isString(X)||(X=X?"include":"omit");const J=h&&"credentials"in o.prototype;if(G.isFormData(C)){const _e=V.getContentType();_e&&/^multipart\/form-data/i.test(_e)&&!/boundary=/i.test(_e)&&V.delete("content-type")}V.set("User-Agent","axios/"+Ao,!1);const Ee=Wt(We({},te),{signal:fe,method:D.toUpperCase(),headers:V.normalize().toJSON(),body:C,duplex:"half",credentials:J?X:void 0});z=h&&new o(_,Ee);let we=yield h?he(z,te):he(_,Ee);if(oe){const _e=G.toFiniteNumber(we.headers.get("content-length"));if(_e!=null&&_e>Y)throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,z)}const Me=m&&(k==="stream"||k==="response");if(m&&we.body&&(Z||oe||Me&&j)){const _e={};["status","statusText","headers"].forEach(Ke=>{_e[Ke]=we[Ke]});const Pe=G.toFiniteNumber(we.headers.get("content-length")),[Ge,Ve]=Z&&gs(Pe,ri(Es(Z),!0))||[];let Oe=0;const je=Ke=>{if(oe&&(Oe=Ke,Oe>Y))throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,z);Ge&&Ge(Ke)};we=new s(bs(we.body,Cs,je,()=>{Ve&&Ve(),j&&j()}),_e)}k=k||"text";let ve=yield v[G.findKey(v,k)||"text"](we,w);if(oe&&!m&&!Me){let _e;if(ve!=null&&(typeof ve.byteLength=="number"?_e=ve.byteLength:typeof ve.size=="number"?_e=ve.size:typeof ve=="string"&&(_e=typeof n=="function"?new n().encode(ve).byteLength:ve.length)),typeof _e=="number"&&_e>Y)throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,z)}return!Me&&j&&j(),yield new Promise((_e,Pe)=>{ms(_e,Pe,{data:ve,headers:pt.from(we.headers),status:we.status,statusText:we.statusText,config:w,request:z})})}catch(J){if(j&&j(),fe&&fe.aborted&&fe.reason instanceof me){const Ee=fe.reason;throw Ee.config=w,z&&(Ee.request=z),J!==Ee&&(Ee.cause=J),Ee}throw J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,w,z,J&&J.response),{cause:J.cause||J}):me.from(J,J&&J.code,w,z,J&&J.response)}})},vp=new Map,Ds=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,o=[n,i,r];let s=o.length,a=s,h,c,f=vp;for(;a--;)h=o[a],c=f.get(h),c===void 0&&f.set(h,c=a?new Map:yp(e)),f=c;return c};Ds();const wo={http:zd,xhr:up,fetch:{get:Ds}};G.forEach(wo,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch(r){}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Ss=t=>`- ${t}`,mp=t=>G.isFunction(t)||t===null||t===!1;function gp(t,e){t=G.isArray(t)?t:[t];const{length:r}=t;let n,i;const o={};for(let s=0;s<r;s++){n=t[s];let a;if(i=n,!mp(n)&&(i=wo[(a=String(n)).toLowerCase()],i===void 0))throw new me(`Unknown adapter '${a}'`);if(i&&(G.isFunction(i)||(i=i.get(e))))break;o[a||"#"+s]=i}if(!i){const s=Object.entries(o).map(([h,c])=>`adapter ${h} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since :
|
|
8
|
-
`+s.map(
|
|
9
|
-
`):" "+
|
|
1
|
+
(function(Ee,I){typeof exports=="object"&&typeof module!="undefined"?I(exports,require("vue"),require("pinia"),require("lodash-es"),require("three"),require("three-edit-cores")):typeof define=="function"&&define.amd?define(["exports","vue","pinia","lodash-es","three","three-edit-cores"],I):(Ee=typeof globalThis!="undefined"?globalThis:Ee||self,I(Ee.SyThreedGraph={},Ee.Vue,Ee.Pinia,Ee._,Ee.Three,Ee.ThreeEditCores))})(this,function(Ee,I,Ie,ze,Re,ke){"use strict";var uv=Object.defineProperty,lv=Object.defineProperties;var hv=Object.getOwnPropertyDescriptors;var Si=Object.getOwnPropertySymbols;var Gf=Object.prototype.hasOwnProperty,jf=Object.prototype.propertyIsEnumerable;var Jr=(Ee,I)=>(I=Symbol[Ee])?I:Symbol.for("Symbol."+Ee),dv=Ee=>{throw TypeError(Ee)};var J0=(Ee,I,Ie)=>I in Ee?uv(Ee,I,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Ee[I]=Ie,We=(Ee,I)=>{for(var Ie in I||(I={}))Gf.call(I,Ie)&&J0(Ee,Ie,I[Ie]);if(Si)for(var Ie of Si(I))jf.call(I,Ie)&&J0(Ee,Ie,I[Ie]);return Ee},Vt=(Ee,I)=>lv(Ee,hv(I));var Kf=(Ee,I)=>{var Ie={};for(var ze in Ee)Gf.call(Ee,ze)&&I.indexOf(ze)<0&&(Ie[ze]=Ee[ze]);if(Ee!=null&&Si)for(var ze of Si(Ee))I.indexOf(ze)<0&&jf.call(Ee,ze)&&(Ie[ze]=Ee[ze]);return Ie};var _r=(Ee,I,Ie)=>J0(Ee,typeof I!="symbol"?I+"":I,Ie);var De=(Ee,I,Ie)=>new Promise((ze,Re)=>{var ke=Je=>{try{ve(Ie.next(Je))}catch(gt){Re(gt)}},tt=Je=>{try{ve(Ie.throw(Je))}catch(gt){Re(gt)}},ve=Je=>Je.done?ze(Je.value):Promise.resolve(Je.value).then(ke,tt);ve((Ie=Ie.apply(Ee,I)).next())}),br=function(Ee,I){this[0]=Ee,this[1]=I},Q0=(Ee,I,Ie)=>{var ze=(tt,ve,Je,gt)=>{try{var Gt=Ie[tt](ve),Fi=(ve=Gt.value)instanceof br,ea=Gt.done;Promise.resolve(Fi?ve[0]:ve).then(Bt=>Fi?ze(tt==="return"?tt:"next",ve[1]?{done:Bt.done,value:Bt.value}:Bt,Je,gt):Je({value:Bt,done:ea})).catch(Bt=>ze("throw",Bt,Je,gt))}catch(Bt){gt(Bt)}},Re=tt=>ke[tt]=ve=>new Promise((Je,gt)=>ze(tt,ve,Je,gt)),ke={};return Ie=Ie.apply(Ee,I),ke[Jr("asyncIterator")]=()=>ke,Re("next"),Re("throw"),Re("return"),ke},Z0=Ee=>{var I=Ee[Jr("asyncIterator")],Ie=!1,ze,Re={};return I==null?(I=Ee[Jr("iterator")](),ze=ke=>Re[ke]=tt=>I[ke](tt)):(I=I.call(Ee),ze=ke=>Re[ke]=tt=>{if(Ie){if(Ie=!1,ke==="throw")throw tt;return tt}return Ie=!0,{done:!1,value:new br(new Promise(ve=>{var Je=I[ke](tt);Je instanceof Object||dv("Object expected"),ve(Je)}),1)}}),Re[Jr("iterator")]=()=>Re,ze("next"),"throw"in I?ze("throw"):Re.throw=ke=>{throw ke},"return"in I&&ze("return"),Re},Yf=(Ee,I,Ie)=>(I=Ee[Jr("asyncIterator")])?I.call(Ee):(Ee=Ee[Jr("iterator")](),I={},Ie=(ze,Re)=>(Re=Ee[ze])&&(I[ze]=ke=>new Promise((tt,ve,Je)=>(ke=Re.call(Ee,ke),Je=ke.done,Promise.resolve(ke.value).then(gt=>tt({value:gt,done:Je}),ve)))),Ie("next"),Ie("return"),I);var If,Tf,Of,Pf,Nf,Lf,kf,Mf,Uf,$f,Hf,zf,qf,Wf,Vf;var tt=document.createElement("style");tt.textContent=`@charset "UTF-8";.threed-editor[data-v-cebfdbf8]{position:absolute;top:0;left:0;width:100%;height:100%;background-color:var(--sc-bg-color)}.threed-preview[data-v-46ac6fc4]{width:100%;height:100%}
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(tt);var ve=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Je(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function gt(t){if(t.__esModule)return t;var e=t.default;if(typeof e=="function"){var r=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};r.prototype=e.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(t).forEach(function(n){var i=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(r,n,i.get?i:{enumerable:!0,get:function(){return t[n]}})}),r}var Gt=TypeError;const Bt=gt(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Ri=typeof Map=="function"&&Map.prototype,Ii=Object.getOwnPropertyDescriptor&&Ri?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,On=Ri&&Ii&&typeof Ii.get=="function"?Ii.get:null,ta=Ri&&Map.prototype.forEach,Ti=typeof Set=="function"&&Set.prototype,Oi=Object.getOwnPropertyDescriptor&&Ti?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Pn=Ti&&Oi&&typeof Oi.get=="function"?Oi.get:null,ra=Ti&&Set.prototype.forEach,Qf=typeof WeakMap=="function"&&WeakMap.prototype,Qr=Qf?WeakMap.prototype.has:null,Zf=typeof WeakSet=="function"&&WeakSet.prototype,Zr=Zf?WeakSet.prototype.has:null,eu=typeof WeakRef=="function"&&WeakRef.prototype,na=eu?WeakRef.prototype.deref:null,tu=Boolean.prototype.valueOf,ru=Object.prototype.toString,nu=Function.prototype.toString,iu=String.prototype.match,Pi=String.prototype.slice,Jt=String.prototype.replace,ou=String.prototype.toUpperCase,ia=String.prototype.toLowerCase,oa=RegExp.prototype.test,aa=Array.prototype.concat,Ot=Array.prototype.join,au=Array.prototype.slice,sa=Math.floor,Ni=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Li=Object.getOwnPropertySymbols,ki=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Cr=typeof Symbol=="function"&&typeof Symbol.iterator=="object",en=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Cr||!0)?Symbol.toStringTag:null,ca=Object.prototype.propertyIsEnumerable,fa=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function ua(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||oa.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-sa(-t):sa(t);if(n!==t){var i=String(n),o=Pi.call(e,i.length+1);return Jt.call(i,r,"$&_")+"."+Jt.call(Jt.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Jt.call(e,r,"$&_")}var Mi=Bt,la=Mi.custom,ha=ya(la)?la:null,da={__proto__:null,double:'"',single:"'"},su={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Nn=function t(e,r,n,i){var o=r||{};if(jt(o,"quoteStyle")&&!jt(da,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(jt(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=jt(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(jt(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(jt(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof e=="undefined")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ma(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var u=String(e);return a?ua(e,u):u}if(typeof e=="bigint"){var c=String(e)+"n";return a?ua(e,c):c}var f=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=f&&f>0&&typeof e=="object")return Ui(e)?"[Array]":"[Object]";var x=Cu(o,n);if(typeof i=="undefined")i=[];else if(va(i,e)>=0)return"[Circular]";function h(X,ee,Y){if(ee&&(i=au.call(i),i.push(ee)),Y){var Z={depth:o.depth};return jt(o,"quoteStyle")&&(Z.quoteStyle=o.quoteStyle),t(X,Z,n+1,i)}return t(X,o,n+1,i)}if(typeof e=="function"&&!xa(e)){var v=yu(e),m=Ln(e,h);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(m.length>0?" { "+Ot.call(m,", ")+" }":"")}if(ya(e)){var E=Cr?Jt.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):ki.call(e);return typeof e=="object"&&!Cr?tn(E):E}if(wu(e)){for(var A="<"+ia.call(String(e.nodeName)),R=e.attributes||[],w=0;w<R.length;w++)A+=" "+R[w].name+"="+pa(cu(R[w].value),"double",o);return A+=">",e.childNodes&&e.childNodes.length&&(A+="..."),A+="</"+ia.call(String(e.nodeName))+">",A}if(Ui(e)){if(e.length===0)return"[]";var _=Ln(e,h);return x&&!bu(_)?"["+Hi(_,x)+"]":"[ "+Ot.call(_,", ")+" ]"}if(uu(e)){var B=Ln(e,h);return!("cause"in Error.prototype)&&"cause"in e&&!ca.call(e,"cause")?"{ ["+String(e)+"] "+Ot.call(aa.call("[cause]: "+h(e.cause),B),", ")+" }":B.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+Ot.call(B,", ")+" }"}if(typeof e=="object"&&s){if(ha&&typeof e[ha]=="function"&&Mi)return Mi(e,{depth:f-n});if(s!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(vu(e)){var D=[];return ta&&ta.call(e,function(X,ee){D.push(h(ee,e,!0)+" => "+h(X,e))}),ga("Map",On.call(e),D,x)}if(Eu(e)){var O=[];return ra&&ra.call(e,function(X){O.push(h(X,e))}),ga("Set",Pn.call(e),O,x)}if(mu(e))return $i("WeakMap");if(Au(e))return $i("WeakSet");if(gu(e))return $i("WeakRef");if(hu(e))return tn(h(Number(e)));if(pu(e))return tn(h(Ni.call(e)));if(du(e))return tn(tu.call(e));if(lu(e))return tn(h(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&e===globalThis||typeof ve!="undefined"&&e===ve)return"{ [object globalThis] }";if(!fu(e)&&!xa(e)){var L=Ln(e,h),z=fa?fa(e)===Object.prototype:e instanceof Object||e.constructor===Object,Q=e instanceof Object?"":"null prototype",P=!z&&en&&Object(e)===e&&en in e?Pi.call(Qt(e),8,-1):Q?"Object":"",k=z||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",V=k+(P||Q?"["+Ot.call(aa.call([],P||[],Q||[]),": ")+"] ":"");return L.length===0?V+"{}":x?V+"{"+Hi(L,x)+"}":V+"{ "+Ot.call(L,", ")+" }"}return String(e)};function pa(t,e,r){var n=r.quoteStyle||e,i=da[n];return i+t+i}function cu(t){return Jt.call(String(t),/"/g,""")}function ar(t){return!en||!(typeof t=="object"&&(en in t||typeof t[en]!="undefined"))}function Ui(t){return Qt(t)==="[object Array]"&&ar(t)}function fu(t){return Qt(t)==="[object Date]"&&ar(t)}function xa(t){return Qt(t)==="[object RegExp]"&&ar(t)}function uu(t){return Qt(t)==="[object Error]"&&ar(t)}function lu(t){return Qt(t)==="[object String]"&&ar(t)}function hu(t){return Qt(t)==="[object Number]"&&ar(t)}function du(t){return Qt(t)==="[object Boolean]"&&ar(t)}function ya(t){if(Cr)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!ki)return!1;try{return ki.call(t),!0}catch(e){}return!1}function pu(t){if(!t||typeof t!="object"||!Ni)return!1;try{return Ni.call(t),!0}catch(e){}return!1}var xu=Object.prototype.hasOwnProperty||function(t){return t in this};function jt(t,e){return xu.call(t,e)}function Qt(t){return ru.call(t)}function yu(t){if(t.name)return t.name;var e=iu.call(nu.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function va(t,e){if(t.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function vu(t){if(!On||!t||typeof t!="object")return!1;try{On.call(t);try{Pn.call(t)}catch(e){return!0}return t instanceof Map}catch(e){}return!1}function mu(t){if(!Qr||!t||typeof t!="object")return!1;try{Qr.call(t,Qr);try{Zr.call(t,Zr)}catch(e){return!0}return t instanceof WeakMap}catch(e){}return!1}function gu(t){if(!na||!t||typeof t!="object")return!1;try{return na.call(t),!0}catch(e){}return!1}function Eu(t){if(!Pn||!t||typeof t!="object")return!1;try{Pn.call(t);try{On.call(t)}catch(e){return!0}return t instanceof Set}catch(e){}return!1}function Au(t){if(!Zr||!t||typeof t!="object")return!1;try{Zr.call(t,Zr);try{Qr.call(t,Qr)}catch(e){return!0}return t instanceof WeakSet}catch(e){}return!1}function wu(t){return!t||typeof t!="object"?!1:typeof HTMLElement!="undefined"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function ma(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return ma(Pi.call(t,0,e.maxStringLength),e)+n}var i=su[e.quoteStyle||"single"];i.lastIndex=0;var o=Jt.call(Jt.call(t,i,"\\$1"),/[\x00-\x1f]/g,_u);return pa(o,"single",e)}function _u(t){var e=t.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return r?"\\"+r:"\\x"+(e<16?"0":"")+ou.call(e.toString(16))}function tn(t){return"Object("+t+")"}function $i(t){return t+" { ? }"}function ga(t,e,r,n){var i=n?Hi(r,n):Ot.call(r,", ");return t+" ("+e+") {"+i+"}"}function bu(t){for(var e=0;e<t.length;e++)if(va(t[e],`
|
|
3
|
+
`)>=0)return!1;return!0}function Cu(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=Ot.call(Array(t.indent+1)," ");else return null;return{base:r,prev:Ot.call(Array(e+1),r)}}function Hi(t,e){if(t.length===0)return"";var r=`
|
|
4
|
+
`+e.prev+e.base;return r+Ot.call(t,","+r)+`
|
|
5
|
+
`+e.prev}function Ln(t,e){var r=Ui(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=jt(t,i)?e(t[i],t):""}var o=typeof Li=="function"?Li(t):[],s;if(Cr){s={};for(var a=0;a<o.length;a++)s["$"+o[a]]=o[a]}for(var u in t)jt(t,u)&&(r&&String(Number(u))===u&&u<t.length||Cr&&s["$"+u]instanceof Symbol||(oa.call(/[^\w$]/,u)?n.push(e(u,t)+": "+e(t[u],t)):n.push(u+": "+e(t[u],t))));if(typeof Li=="function")for(var c=0;c<o.length;c++)ca.call(t,o[c])&&n.push("["+e(o[c])+"]: "+e(t[o[c]],t));return n}var Bu=Nn,Du=Gt,kn=function(t,e,r){for(var n=t,i;(i=n.next)!=null;n=i)if(i.key===e)return n.next=i.next,r||(i.next=t.next,t.next=i),i},Su=function(t,e){if(t){var r=kn(t,e);return r&&r.value}},Fu=function(t,e,r){var n=kn(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},Ru=function(t,e){return t?!!kn(t,e):!1},Iu=function(t,e){if(t)return kn(t,e,!0)},Tu=function(){var e,r={assert:function(n){if(!r.has(n))throw new Du("Side channel does not contain "+Bu(n))},delete:function(n){var i=e&&e.next,o=Iu(e,n);return o&&i&&i===o&&(e=void 0),!!o},get:function(n){return Su(e,n)},has:function(n){return Ru(e,n)},set:function(n,i){e||(e={next:void 0}),Fu(e,n,i)}};return r},Ea=Object,Ou=Error,Pu=EvalError,Nu=RangeError,Lu=ReferenceError,ku=SyntaxError,Mu=URIError,Uu=Math.abs,$u=Math.floor,Hu=Math.max,zu=Math.min,qu=Math.pow,Wu=Math.round,Vu=Number.isNaN||function(e){return e!==e},Gu=Vu,ju=function(e){return Gu(e)||e===0?e:e<0?-1:1},Ku=Object.getOwnPropertyDescriptor,Mn=Ku;if(Mn)try{Mn([],"length")}catch(t){Mn=null}var Aa=Mn,Un=Object.defineProperty||!1;if(Un)try{Un({},"a",{value:1})}catch(t){Un=!1}var Yu=Un,zi,wa;function Xu(){return wa||(wa=1,zi=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;e[r]=i;for(var o in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var s=Object.getOwnPropertySymbols(e);if(s.length!==1||s[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==i||a.enumerable!==!0)return!1}return!0}),zi}var qi,_a;function Ju(){if(_a)return qi;_a=1;var t=typeof Symbol!="undefined"&&Symbol,e=Xu();return qi=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},qi}var Wi,ba;function Ca(){return ba||(ba=1,Wi=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),Wi}var Vi,Ba;function Da(){if(Ba)return Vi;Ba=1;var t=Ea;return Vi=t.getPrototypeOf||null,Vi}var Gi,Sa;function Qu(){if(Sa)return Gi;Sa=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(u,c){for(var f=[],x=0;x<u.length;x+=1)f[x]=u[x];for(var h=0;h<c.length;h+=1)f[h+u.length]=c[h];return f},o=function(u,c){for(var f=[],x=c,h=0;x<u.length;x+=1,h+=1)f[h]=u[x];return f},s=function(a,u){for(var c="",f=0;f<a.length;f+=1)c+=a[f],f+1<a.length&&(c+=u);return c};return Gi=function(u){var c=this;if(typeof c!="function"||e.apply(c)!==n)throw new TypeError(t+c);for(var f=o(arguments,1),x,h=function(){if(this instanceof x){var R=c.apply(this,i(f,arguments));return Object(R)===R?R:this}return c.apply(u,i(f,arguments))},v=r(0,c.length-f.length),m=[],E=0;E<v;E++)m[E]="$"+E;if(x=Function("binder","return function ("+s(m,",")+"){ return binder.apply(this,arguments); }")(h),c.prototype){var A=function(){};A.prototype=c.prototype,x.prototype=new A,A.prototype=null}return x},Gi}var ji,Fa;function $n(){if(Fa)return ji;Fa=1;var t=Qu();return ji=Function.prototype.bind||t,ji}var Ki,Ra;function Yi(){return Ra||(Ra=1,Ki=Function.prototype.call),Ki}var Xi,Ia;function Ta(){return Ia||(Ia=1,Xi=Function.prototype.apply),Xi}var Zu=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,el=$n(),tl=Ta(),rl=Yi(),nl=Zu,il=nl||el.call(rl,tl),ol=$n(),al=Gt,sl=Yi(),cl=il,Oa=function(e){if(e.length<1||typeof e[0]!="function")throw new al("a function is required");return cl(ol,sl,e)},Ji,Pa;function fl(){if(Pa)return Ji;Pa=1;var t=Oa,e=Aa,r;try{r=[].__proto__===Array.prototype}catch(s){if(!s||typeof s!="object"||!("code"in s)||s.code!=="ERR_PROTO_ACCESS")throw s}var n=!!r&&e&&e(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return Ji=n&&typeof n.get=="function"?t([n.get]):typeof o=="function"?function(a){return o(a==null?a:i(a))}:!1,Ji}var Qi,Na;function ul(){if(Na)return Qi;Na=1;var t=Ca(),e=Da(),r=fl();return Qi=t?function(i){return t(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:r?function(i){return r(i)}:null,Qi}var Zi,La;function ll(){if(La)return Zi;La=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=$n();return Zi=r.call(t,e),Zi}var Te,hl=Ea,dl=Ou,pl=Pu,xl=Nu,yl=Lu,Br=ku,Dr=Gt,vl=Mu,ml=Uu,gl=$u,El=Hu,Al=zu,wl=qu,_l=Wu,bl=ju,ka=Function,eo=function(t){try{return ka('"use strict"; return ('+t+").constructor;")()}catch(e){}},rn=Aa,Cl=Yu,to=function(){throw new Dr},Bl=rn?function(){try{return arguments.callee,to}catch(t){try{return rn(arguments,"callee").get}catch(e){return to}}}():to,Sr=Ju()(),it=ul(),Dl=Da(),Sl=Ca(),Ma=Ta(),nn=Yi(),Fr={},Fl=typeof Uint8Array=="undefined"||!it?Te:it(Uint8Array),sr={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?Te:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?Te:ArrayBuffer,"%ArrayIteratorPrototype%":Sr&&it?it([][Symbol.iterator]()):Te,"%AsyncFromSyncIteratorPrototype%":Te,"%AsyncFunction%":Fr,"%AsyncGenerator%":Fr,"%AsyncGeneratorFunction%":Fr,"%AsyncIteratorPrototype%":Fr,"%Atomics%":typeof Atomics=="undefined"?Te:Atomics,"%BigInt%":typeof BigInt=="undefined"?Te:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?Te:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?Te:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?Te:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":dl,"%eval%":eval,"%EvalError%":pl,"%Float16Array%":typeof Float16Array=="undefined"?Te:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?Te:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?Te:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?Te:FinalizationRegistry,"%Function%":ka,"%GeneratorFunction%":Fr,"%Int8Array%":typeof Int8Array=="undefined"?Te:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?Te:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?Te:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Sr&&it?it(it([][Symbol.iterator]())):Te,"%JSON%":typeof JSON=="object"?JSON:Te,"%Map%":typeof Map=="undefined"?Te:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Sr||!it?Te:it(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":hl,"%Object.getOwnPropertyDescriptor%":rn,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?Te:Promise,"%Proxy%":typeof Proxy=="undefined"?Te:Proxy,"%RangeError%":xl,"%ReferenceError%":yl,"%Reflect%":typeof Reflect=="undefined"?Te:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?Te:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Sr||!it?Te:it(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?Te:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Sr&&it?it(""[Symbol.iterator]()):Te,"%Symbol%":Sr?Symbol:Te,"%SyntaxError%":Br,"%ThrowTypeError%":Bl,"%TypedArray%":Fl,"%TypeError%":Dr,"%Uint8Array%":typeof Uint8Array=="undefined"?Te:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?Te:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?Te:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?Te:Uint32Array,"%URIError%":vl,"%WeakMap%":typeof WeakMap=="undefined"?Te:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?Te:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?Te:WeakSet,"%Function.prototype.call%":nn,"%Function.prototype.apply%":Ma,"%Object.defineProperty%":Cl,"%Object.getPrototypeOf%":Dl,"%Math.abs%":ml,"%Math.floor%":gl,"%Math.max%":El,"%Math.min%":Al,"%Math.pow%":wl,"%Math.round%":_l,"%Math.sign%":bl,"%Reflect.getPrototypeOf%":Sl};if(it)try{null.error}catch(t){var Rl=it(it(t));sr["%Error.prototype%"]=Rl}var Il=function t(e){var r;if(e==="%AsyncFunction%")r=eo("async function () {}");else if(e==="%GeneratorFunction%")r=eo("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=eo("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&it&&(r=it(i.prototype))}return sr[e]=r,r},Ua={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},on=$n(),Hn=ll(),Tl=on.call(nn,Array.prototype.concat),Ol=on.call(Ma,Array.prototype.splice),$a=on.call(nn,String.prototype.replace),zn=on.call(nn,String.prototype.slice),Pl=on.call(nn,RegExp.prototype.exec),Nl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ll=/\\(\\)?/g,kl=function(e){var r=zn(e,0,1),n=zn(e,-1);if(r==="%"&&n!=="%")throw new Br("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Br("invalid intrinsic syntax, expected opening `%`");var i=[];return $a(e,Nl,function(o,s,a,u){i[i.length]=a?$a(u,Ll,"$1"):s||o}),i},Ml=function(e,r){var n=e,i;if(Hn(Ua,n)&&(i=Ua[n],n="%"+i[0]+"%"),Hn(sr,n)){var o=sr[n];if(o===Fr&&(o=Il(n)),typeof o=="undefined"&&!r)throw new Dr("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Br("intrinsic "+e+" does not exist!")},ro=function(e,r){if(typeof e!="string"||e.length===0)throw new Dr("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Dr('"allowMissing" argument must be a boolean');if(Pl(/^%?[^%]*%?$/,e)===null)throw new Br("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=kl(e),i=n.length>0?n[0]:"",o=Ml("%"+i+"%",r),s=o.name,a=o.value,u=!1,c=o.alias;c&&(i=c[0],Ol(n,Tl([0,1],c)));for(var f=1,x=!0;f<n.length;f+=1){var h=n[f],v=zn(h,0,1),m=zn(h,-1);if((v==='"'||v==="'"||v==="`"||m==='"'||m==="'"||m==="`")&&v!==m)throw new Br("property names with quotes must have matching quotes");if((h==="constructor"||!x)&&(u=!0),i+="."+h,s="%"+i+"%",Hn(sr,s))a=sr[s];else if(a!=null){if(!(h in a)){if(!r)throw new Dr("base intrinsic for "+e+" exists, but the property is not available.");return}if(rn&&f+1>=n.length){var E=rn(a,h);x=!!E,x&&"get"in E&&!("originalValue"in E.get)?a=E.get:a=a[h]}else x=Hn(a,h),a=a[h];x&&!u&&(sr[s]=a)}}return a},Ha=ro,za=Oa,Ul=za([Ha("%String.prototype.indexOf%")]),qa=function(e,r){var n=Ha(e,!!r);return typeof n=="function"&&Ul(e,".prototype.")>-1?za([n]):n},$l=ro,an=qa,Hl=Nn,zl=Gt,Wa=$l("%Map%",!0),ql=an("Map.prototype.get",!0),Wl=an("Map.prototype.set",!0),Vl=an("Map.prototype.has",!0),Gl=an("Map.prototype.delete",!0),jl=an("Map.prototype.size",!0),Va=!!Wa&&function(){var e,r={assert:function(n){if(!r.has(n))throw new zl("Side channel does not contain "+Hl(n))},delete:function(n){if(e){var i=Gl(e,n);return jl(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return ql(e,n)},has:function(n){return e?Vl(e,n):!1},set:function(n,i){e||(e=new Wa),Wl(e,n,i)}};return r},Kl=ro,qn=qa,Yl=Nn,Wn=Va,Xl=Gt,Rr=Kl("%WeakMap%",!0),Jl=qn("WeakMap.prototype.get",!0),Ql=qn("WeakMap.prototype.set",!0),Zl=qn("WeakMap.prototype.has",!0),eh=qn("WeakMap.prototype.delete",!0),th=Rr?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new Xl("Side channel does not contain "+Yl(i))},delete:function(i){if(Rr&&i&&(typeof i=="object"||typeof i=="function")){if(e)return eh(e,i)}else if(Wn&&r)return r.delete(i);return!1},get:function(i){return Rr&&i&&(typeof i=="object"||typeof i=="function")&&e?Jl(e,i):r&&r.get(i)},has:function(i){return Rr&&i&&(typeof i=="object"||typeof i=="function")&&e?Zl(e,i):!!r&&r.has(i)},set:function(i,o){Rr&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new Rr),Ql(e,i,o)):Wn&&(r||(r=Wn()),r.set(i,o))}};return n}:Wn,rh=Gt,nh=Nn,ih=Tu,oh=Va,ah=th,sh=ah||oh||ih,Ga=function(){var e,r={assert:function(n){if(!r.has(n))throw new rh("Side channel does not contain "+nh(n))},delete:function(n){return!!e&&e.delete(n)},get:function(n){return e&&e.get(n)},has:function(n){return!!e&&e.has(n)},set:function(n,i){e||(e=sh()),e.set(n,i)}};return r},ch=String.prototype.replace,fh=/%20/g,no={RFC1738:"RFC1738",RFC3986:"RFC3986"},io={default:no.RFC3986,formatters:{RFC1738:function(t){return ch.call(t,fh,"+")},RFC3986:function(t){return String(t)}},RFC1738:no.RFC1738,RFC3986:no.RFC3986},uh=io,lh=Ga,oo=Object.prototype.hasOwnProperty,cr=Array.isArray,Vn=lh(),Ir=function(e,r){return Vn.set(e,r),e},fr=function(e){return Vn.has(e)},sn=function(e){return Vn.get(e)},ao=function(e,r){Vn.set(e,r)},Pt=function(){for(var t=[],e=0;e<256;++e)t[t.length]="%"+((e<16?"0":"")+e.toString(16)).toUpperCase();return t}(),hh=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(cr(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]!="undefined"&&(i[i.length]=n[o]);r.obj[r.prop]=i}}},cn=function(e,r){for(var n=r&&r.plainObjects?{__proto__:null}:{},i=0;i<e.length;++i)typeof e[i]!="undefined"&&(n[i]=e[i]);return n},dh=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(cr(e)){var i=e.length;if(n&&typeof n.arrayLimit=="number"&&i>n.arrayLimit)return Ir(cn(e.concat(r),n),i);e[i]=r}else if(e&&typeof e=="object")if(fr(e)){var o=sn(e)+1;e[o]=r,ao(e,o)}else{if(n&&n.strictMerge)return[e,r];(n&&(n.plainObjects||n.allowPrototypes)||!oo.call(Object.prototype,r))&&(e[r]=!0)}else return[e,r];return e}if(!e||typeof e!="object"){if(fr(r)){for(var s=Object.keys(r),a=n&&n.plainObjects?{__proto__:null,0:e}:{0:e},u=0;u<s.length;u++){var c=parseInt(s[u],10);a[c+1]=r[s[u]]}return Ir(a,sn(r)+1)}var f=[e].concat(r);return n&&typeof n.arrayLimit=="number"&&f.length>n.arrayLimit?Ir(cn(f,n),f.length-1):f}var x=e;return cr(e)&&!cr(r)&&(x=cn(e,n)),cr(e)&&cr(r)?(r.forEach(function(h,v){if(oo.call(e,v)){var m=e[v];m&&typeof m=="object"&&h&&typeof h=="object"?e[v]=t(m,h,n):e[e.length]=h}else e[v]=h}),e):Object.keys(r).reduce(function(h,v){var m=r[v];if(oo.call(h,v)?h[v]=t(h[v],m,n):h[v]=m,fr(r)&&!fr(h)&&Ir(h,sn(r)),fr(h)){var E=parseInt(v,10);String(E)===v&&E>=0&&E>sn(h)&&ao(h,E)}return h},x)},ph=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},xh=function(t,e,r){var n=t.replace(/\+/g," ");if(r==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(i){return n}},so=1024,yh=function(e,r,n,i,o){if(e.length===0)return e;var s=e;if(typeof e=="symbol"?s=Symbol.prototype.toString.call(e):typeof e!="string"&&(s=String(e)),n==="iso-8859-1")return escape(s).replace(/%u[0-9a-f]{4}/gi,function(v){return"%26%23"+parseInt(v.slice(2),16)+"%3B"});for(var a="",u=0;u<s.length;u+=so){for(var c=s.length>=so?s.slice(u,u+so):s,f=[],x=0;x<c.length;++x){var h=c.charCodeAt(x);if(h===45||h===46||h===95||h===126||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||o===uh.RFC1738&&(h===40||h===41)){f[f.length]=c.charAt(x);continue}if(h<128){f[f.length]=Pt[h];continue}if(h<2048){f[f.length]=Pt[192|h>>6]+Pt[128|h&63];continue}if(h<55296||h>=57344){f[f.length]=Pt[224|h>>12]+Pt[128|h>>6&63]+Pt[128|h&63];continue}x+=1,h=65536+((h&1023)<<10|c.charCodeAt(x)&1023),f[f.length]=Pt[240|h>>18]+Pt[128|h>>12&63]+Pt[128|h>>6&63]+Pt[128|h&63]}a+=f.join("")}return a},vh=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],s=o.obj[o.prop],a=Object.keys(s),u=0;u<a.length;++u){var c=a[u],f=s[c];typeof f=="object"&&f!==null&&n.indexOf(f)===-1&&(r[r.length]={obj:s,prop:c},n[n.length]=f)}return hh(r),e},mh=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},gh=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Eh=function(e,r,n,i){if(fr(e)){var o=sn(e)+1;return e[o]=r,ao(e,o),e}var s=[].concat(e,r);return s.length>n?Ir(cn(s,{plainObjects:i}),s.length-1):s},Ah=function(e,r){if(cr(e)){for(var n=[],i=0;i<e.length;i+=1)n[n.length]=r(e[i]);return n}return r(e)},ja={arrayToObject:cn,assign:ph,combine:Eh,compact:vh,decode:xh,encode:yh,isBuffer:gh,isOverflow:fr,isRegExp:mh,markOverflow:Ir,maybeMap:Ah,merge:dh},Ka=Ga,Gn=ja,fn=io,wh=Object.prototype.hasOwnProperty,Ya={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},Nt=Array.isArray,_h=Array.prototype.push,Xa=function(t,e){_h.apply(t,Nt(e)?e:[e])},bh=Date.prototype.toISOString,Ja=fn.default,rt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:Gn.encode,encodeValuesOnly:!1,filter:void 0,format:Ja,formatter:fn.formatters[Ja],indices:!1,serializeDate:function(e){return bh.call(e)},skipNulls:!1,strictNullHandling:!1},Ch=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},co={},Bh=function t(e,r,n,i,o,s,a,u,c,f,x,h,v,m,E,A,R,w){for(var _=e,B=w,D=0,O=!1;(B=B.get(co))!==void 0&&!O;){var L=B.get(e);if(D+=1,typeof L!="undefined"){if(L===D)throw new RangeError("Cyclic object value");O=!0}typeof B.get(co)=="undefined"&&(D=0)}if(typeof f=="function"?_=f(r,_):_ instanceof Date?_=v(_):n==="comma"&&Nt(_)&&(_=Gn.maybeMap(_,function(fe){return fe instanceof Date?v(fe):fe})),_===null){if(s)return c&&!A?c(r,rt.encoder,R,"key",m):r;_=""}if(Ch(_)||Gn.isBuffer(_)){if(c){var z=A?r:c(r,rt.encoder,R,"key",m);return[E(z)+"="+E(c(_,rt.encoder,R,"value",m))]}return[E(r)+"="+E(String(_))]}var Q=[];if(typeof _=="undefined")return Q;var P;if(n==="comma"&&Nt(_))A&&c&&(_=Gn.maybeMap(_,c)),P=[{value:_.length>0?_.join(",")||null:void 0}];else if(Nt(f))P=f;else{var k=Object.keys(_);P=x?k.sort(x):k}var V=u?String(r).replace(/\./g,"%2E"):String(r),X=i&&Nt(_)&&_.length===1?V+"[]":V;if(o&&Nt(_)&&_.length===0)return X+"[]";for(var ee=0;ee<P.length;++ee){var Y=P[ee],Z=typeof Y=="object"&&Y&&typeof Y.value!="undefined"?Y.value:_[Y];if(!(a&&Z===null)){var oe=h&&u?String(Y).replace(/\./g,"%2E"):String(Y),ie=Nt(_)?typeof n=="function"?n(X,oe):X:X+(h?"."+oe:"["+oe+"]");w.set(e,D);var he=Ka();he.set(co,w),Xa(Q,t(Z,ie,n,i,o,s,a,u,n==="comma"&&A&&Nt(_)?null:c,f,x,h,v,m,E,A,R,he))}}return Q},Dh=function(e){if(!e)return rt;if(typeof e.allowEmptyArrays!="undefined"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.encodeDotInKeys!="undefined"&&typeof e.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(e.encoder!==null&&typeof e.encoder!="undefined"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=e.charset||rt.charset;if(typeof e.charset!="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=fn.default;if(typeof e.format!="undefined"){if(!wh.call(fn.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=fn.formatters[n],o=rt.filter;(typeof e.filter=="function"||Nt(e.filter))&&(o=e.filter);var s;if(e.arrayFormat in Ya?s=e.arrayFormat:"indices"in e?s=e.indices?"indices":"repeat":s=rt.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var a=typeof e.allowDots=="undefined"?e.encodeDotInKeys===!0?!0:rt.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:rt.addQueryPrefix,allowDots:a,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:rt.allowEmptyArrays,arrayFormat:s,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:rt.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter=="undefined"?rt.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:rt.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:rt.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:rt.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:rt.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:rt.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:rt.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:rt.strictNullHandling}},Sh=function(t,e){var r=t,n=Dh(e),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):Nt(n.filter)&&(o=n.filter,i=o);var s=[];if(typeof r!="object"||r===null)return"";var a=Ya[n.arrayFormat],u=a==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var c=Ka(),f=0;f<i.length;++f){var x=i[f],h=r[x];n.skipNulls&&h===null||Xa(s,Bh(h,x,a,u,n.allowEmptyArrays,n.strictNullHandling,n.skipNulls,n.encodeDotInKeys,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,c))}var v=s.join(n.delimiter),m=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?m+="utf8=%26%2310003%3B&":m+="utf8=%E2%9C%93&"),v.length>0?m+v:""},Lt=ja,jn=Object.prototype.hasOwnProperty,fo=Array.isArray,Qe={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Lt.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},Fh=function(t){return t.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})},Qa=function(t,e,r){if(t&&typeof t=="string"&&e.comma&&t.indexOf(",")>-1)return t.split(",");if(e.throwOnLimitExceeded&&r>=e.arrayLimit)throw new RangeError("Array limit exceeded. Only "+e.arrayLimit+" element"+(e.arrayLimit===1?"":"s")+" allowed in an array.");return t},Rh="utf8=%26%2310003%3B",Ih="utf8=%E2%9C%93",Th=function(e,r){var n={__proto__:null},i=r.ignoreQueryPrefix?e.replace(/^\?/,""):e;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var o=r.parameterLimit===1/0?void 0:r.parameterLimit,s=i.split(r.delimiter,r.throwOnLimitExceeded&&typeof o!="undefined"?o+1:o);if(r.throwOnLimitExceeded&&typeof o!="undefined"&&s.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var a=-1,u,c=r.charset;if(r.charsetSentinel)for(u=0;u<s.length;++u)s[u].indexOf("utf8=")===0&&(s[u]===Ih?c="utf-8":s[u]===Rh&&(c="iso-8859-1"),a=u,u=s.length);for(u=0;u<s.length;++u)if(u!==a){var f=s[u],x=f.indexOf("]="),h=x===-1?f.indexOf("="):x+1,v,m;if(h===-1?(v=r.decoder(f,Qe.decoder,c,"key"),m=r.strictNullHandling?null:""):(v=r.decoder(f.slice(0,h),Qe.decoder,c,"key"),v!==null&&(m=Lt.maybeMap(Qa(f.slice(h+1),r,fo(n[v])?n[v].length:0),function(A){return r.decoder(A,Qe.decoder,c,"value")}))),m&&r.interpretNumericEntities&&c==="iso-8859-1"&&(m=Fh(String(m))),f.indexOf("[]=")>-1&&(m=fo(m)?[m]:m),r.comma&&fo(m)&&m.length>r.arrayLimit){if(r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");m=Lt.combine([],m,r.arrayLimit,r.plainObjects)}if(v!==null){var E=jn.call(n,v);E&&(r.duplicates==="combine"||f.indexOf("[]=")>-1)?n[v]=Lt.combine(n[v],m,r.arrayLimit,r.plainObjects):(!E||r.duplicates==="last")&&(n[v]=m)}}return n},Oh=function(t,e,r,n){var i=0;if(t.length>0&&t[t.length-1]==="[]"){var o=t.slice(0,-1).join("");i=Array.isArray(e)&&e[o]?e[o].length:0}for(var s=n?e:Qa(e,r,i),a=t.length-1;a>=0;--a){var u,c=t[a];if(c==="[]"&&r.parseArrays)Lt.isOverflow(s)?u=s:u=r.allowEmptyArrays&&(s===""||r.strictNullHandling&&s===null)?[]:Lt.combine([],s,r.arrayLimit,r.plainObjects);else{u=r.plainObjects?{__proto__:null}:{};var f=c.charAt(0)==="["&&c.charAt(c.length-1)==="]"?c.slice(1,-1):c,x=r.decodeDotInKeys?f.replace(/%2E/g,"."):f,h=parseInt(x,10),v=!isNaN(h)&&c!==x&&String(h)===x&&h>=0&&r.parseArrays;if(!r.parseArrays&&x==="")u={0:s};else if(v&&h<r.arrayLimit)u=[],u[h]=s;else{if(v&&r.throwOnLimitExceeded)throw new RangeError("Array limit exceeded. Only "+r.arrayLimit+" element"+(r.arrayLimit===1?"":"s")+" allowed in an array.");v?(u[h]=s,Lt.markOverflow(u,h)):x!=="__proto__"&&(u[x]=s)}}s=u}return s},Ph=function(e,r){var n=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e;if(r.depth<=0)return!r.plainObjects&&jn.call(Object.prototype,n)&&!r.allowPrototypes?void 0:[n];var i=/(\[[^[\]]*])/,o=/(\[[^[\]]*])/g,s=i.exec(n),a=s?n.slice(0,s.index):n,u=[];if(a){if(!r.plainObjects&&jn.call(Object.prototype,a)&&!r.allowPrototypes)return;u[u.length]=a}for(var c=0;(s=o.exec(n))!==null&&c<r.depth;){c+=1;var f=s[1].slice(1,-1);if(!r.plainObjects&&jn.call(Object.prototype,f)&&!r.allowPrototypes)return;u[u.length]=s[1]}if(s){if(r.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+r.depth+" and strictDepth is true");u[u.length]="["+n.slice(s.index)+"]"}return u},Nh=function(e,r,n,i){if(e){var o=Ph(e,n);if(o)return Oh(o,r,n,i)}},Lh=function(e){if(!e)return Qe;if(typeof e.allowEmptyArrays!="undefined"&&typeof e.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof e.decodeDotInKeys!="undefined"&&typeof e.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(e.decoder!==null&&typeof e.decoder!="undefined"&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset!="undefined"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof e.throwOnLimitExceeded!="undefined"&&typeof e.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof e.charset=="undefined"?Qe.charset:e.charset,n=typeof e.duplicates=="undefined"?Qe.duplicates:e.duplicates;if(n!=="combine"&&n!=="first"&&n!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof e.allowDots=="undefined"?e.decodeDotInKeys===!0?!0:Qe.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Qe.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Qe.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Qe.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Qe.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Qe.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Qe.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Qe.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Qe.decoder,delimiter:typeof e.delimiter=="string"||Lt.isRegExp(e.delimiter)?e.delimiter:Qe.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Qe.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Qe.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Qe.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Qe.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Qe.strictDepth,strictMerge:typeof e.strictMerge=="boolean"?!!e.strictMerge:Qe.strictMerge,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Qe.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},kh=function(t,e){var r=Lh(e);if(t===""||t===null||typeof t=="undefined")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?Th(t,r):t,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),s=0;s<o.length;++s){var a=o[s],u=Nh(a,n[a],r,typeof t=="string");i=Lt.merge(i,u,r)}return r.allowSparse===!0?i:Lt.compact(i)},Mh=Sh,Uh=kh,$h=io,Hh={formats:$h,parse:Uh,stringify:Mh};const zh=Je(Hh);function Za(t,e){return function(){return t.apply(e,arguments)}}const{toString:qh}=Object.prototype,{getPrototypeOf:Kn}=Object,{iterator:Yn,toStringTag:es}=Symbol,Xn=(t=>e=>{const r=qh.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),Dt=t=>(t=t.toLowerCase(),e=>Xn(e)===t),Jn=t=>e=>typeof e===t,{isArray:Tr}=Array,Or=Jn("undefined");function un(t){return t!==null&&!Or(t)&&t.constructor!==null&&!Or(t.constructor)&&xt(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const ts=Dt("ArrayBuffer");function Wh(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&ts(t.buffer),e}const Vh=Jn("string"),xt=Jn("function"),rs=Jn("number"),ln=t=>t!==null&&typeof t=="object",Gh=t=>t===!0||t===!1,Qn=t=>{if(Xn(t)!=="object")return!1;const e=Kn(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(es in t)&&!(Yn in t)},jh=t=>{if(!ln(t)||un(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},Kh=Dt("Date"),Yh=Dt("File"),Xh=t=>!!(t&&typeof t.uri!="undefined"),Jh=t=>t&&typeof t.getParts!="undefined",Qh=Dt("Blob"),Zh=Dt("FileList"),ed=t=>ln(t)&&xt(t.pipe);function td(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const ns=td(),is=typeof ns.FormData!="undefined"?ns.FormData:void 0,rd=t=>{if(!t)return!1;if(is&&t instanceof is)return!0;const e=Kn(t);if(!e||e===Object.prototype||!xt(t.append))return!1;const r=Xn(t);return r==="formdata"||r==="object"&&xt(t.toString)&&t.toString()==="[object FormData]"},nd=Dt("URLSearchParams"),[id,od,ad,sd]=["ReadableStream","Request","Response","Headers"].map(Dt),cd=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hn(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t=="undefined")return;let n,i;if(typeof t!="object"&&(t=[t]),Tr(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(un(t))return;const o=r?Object.getOwnPropertyNames(t):Object.keys(t),s=o.length;let a;for(n=0;n<s;n++)a=o[n],e.call(null,t[a],a,t)}}function os(t,e){if(un(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,i;for(;n-- >0;)if(i=r[n],e===i.toLowerCase())return i;return null}const ur=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,as=t=>!Or(t)&&t!==ur;function uo(...t){const{caseless:e,skipUndefined:r}=as(this)&&this||{},n={},i=(o,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const a=e&&os(n,s)||s,u=lo(n,a)?n[a]:void 0;Qn(u)&&Qn(o)?n[a]=uo(u,o):Qn(o)?n[a]=uo({},o):Tr(o)?n[a]=o.slice():(!r||!Or(o))&&(n[a]=o)};for(let o=0,s=t.length;o<s;o++)t[o]&&hn(t[o],i);return n}const fd=(t,e,r,{allOwnKeys:n}={})=>(hn(e,(i,o)=>{r&&xt(i)?Object.defineProperty(t,o,{__proto__:null,value:Za(i,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,o,{__proto__:null,value:i,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),ud=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),ld=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{__proto__:null,value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{__proto__:null,value:e.prototype}),r&&Object.assign(t.prototype,r)},hd=(t,e,r,n)=>{let i,o,s;const a={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)s=i[o],(!n||n(s,t,e))&&!a[s]&&(e[s]=t[s],a[s]=!0);t=r!==!1&&Kn(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},dd=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},pd=t=>{if(!t)return null;if(Tr(t))return t;let e=t.length;if(!rs(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},xd=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&Kn(Uint8Array)),yd=(t,e)=>{const n=(t&&t[Yn]).call(t);let i;for(;(i=n.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},vd=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},md=Dt("HTMLFormElement"),gd=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),lo=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),Ed=Dt("RegExp"),ss=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};hn(r,(i,o)=>{let s;(s=e(i,o,t))!==!1&&(n[o]=s||i)}),Object.defineProperties(t,n)},Ad=t=>{ss(t,(e,r)=>{if(xt(t)&&["arguments","caller","callee"].includes(r))return!1;const n=t[r];if(xt(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},wd=(t,e)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Tr(t)?n(t):n(String(t).split(e)),r},_d=()=>{},bd=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Cd(t){return!!(t&&xt(t.append)&&t[es]==="FormData"&&t[Yn])}const Bd=t=>{const e=new Array(10),r=(n,i)=>{if(ln(n)){if(e.indexOf(n)>=0)return;if(un(n))return n;if(!("toJSON"in n)){e[i]=n;const o=Tr(n)?[]:{};return hn(n,(s,a)=>{const u=r(s,i+1);!Or(u)&&(o[a]=u)}),e[i]=void 0,o}}return n};return r(t,0)},Dd=Dt("AsyncFunction"),Sd=t=>t&&(ln(t)||xt(t))&&xt(t.then)&&xt(t.catch),cs=((t,e)=>t?setImmediate:e?((r,n)=>(ur.addEventListener("message",({source:i,data:o})=>{i===ur&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),ur.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",xt(ur.postMessage)),Fd=typeof queueMicrotask!="undefined"?queueMicrotask.bind(ur):typeof process!="undefined"&&process.nextTick||cs,G={isArray:Tr,isArrayBuffer:ts,isBuffer:un,isFormData:rd,isArrayBufferView:Wh,isString:Vh,isNumber:rs,isBoolean:Gh,isObject:ln,isPlainObject:Qn,isEmptyObject:jh,isReadableStream:id,isRequest:od,isResponse:ad,isHeaders:sd,isUndefined:Or,isDate:Kh,isFile:Yh,isReactNativeBlob:Xh,isReactNative:Jh,isBlob:Qh,isRegExp:Ed,isFunction:xt,isStream:ed,isURLSearchParams:nd,isTypedArray:xd,isFileList:Zh,forEach:hn,merge:uo,extend:fd,trim:cd,stripBOM:ud,inherits:ld,toFlatObject:hd,kindOf:Xn,kindOfTest:Dt,endsWith:dd,toArray:pd,forEachEntry:yd,matchAll:vd,isHTMLForm:md,hasOwnProperty:lo,hasOwnProp:lo,reduceDescriptors:ss,freezeMethods:Ad,toObjectSet:wd,toCamelCase:gd,noop:_d,toFiniteNumber:bd,findKey:os,global:ur,isContextDefined:as,isSpecCompliantForm:Cd,toJSONObject:Bd,isAsyncFn:Dd,isThenable:Sd,setImmediate:cs,asap:Fd,isIterable:t=>t!=null&&xt(t[Yn])},Rd=G.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Id=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
6
|
+
`).forEach(function(s){i=s.indexOf(":"),r=s.substring(0,i).trim().toLowerCase(),n=s.substring(i+1).trim(),!(!r||e[r]&&Rd[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},fs=Symbol("internals"),Td=/[^\x09\x20-\x7E\x80-\xFF]/g;function Od(t){let e=0,r=t.length;for(;e<r;){const n=t.charCodeAt(e);if(n!==9&&n!==32)break;e+=1}for(;r>e;){const n=t.charCodeAt(r-1);if(n!==9&&n!==32)break;r-=1}return e===0&&r===t.length?t:t.slice(e,r)}function dn(t){return t&&String(t).trim().toLowerCase()}function Pd(t){return Od(t.replace(Td,""))}function Zn(t){return t===!1||t==null?t:G.isArray(t)?t.map(Zn):Pd(String(t))}function Nd(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const Ld=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ho(t,e,r,n,i){if(G.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!G.isString(e)){if(G.isString(n))return e.indexOf(n)!==-1;if(G.isRegExp(n))return n.test(e)}}function kd(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function Md(t,e){const r=G.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{__proto__:null,value:function(i,o,s){return this[n].call(this,e,i,o,s)},configurable:!0})})}let dt=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function o(a,u,c){const f=dn(u);if(!f)throw new Error("header name must be a non-empty string");const x=G.findKey(i,f);(!x||i[x]===void 0||c===!0||c===void 0&&i[x]!==!1)&&(i[x||u]=Zn(a))}const s=(a,u)=>G.forEach(a,(c,f)=>o(c,f,u));if(G.isPlainObject(e)||e instanceof this.constructor)s(e,r);else if(G.isString(e)&&(e=e.trim())&&!Ld(e))s(Id(e),r);else if(G.isObject(e)&&G.isIterable(e)){let a={},u,c;for(const f of e){if(!G.isArray(f))throw TypeError("Object iterator must return a key-value pair");a[c=f[0]]=(u=a[c])?G.isArray(u)?[...u,f[1]]:[u,f[1]]:f[1]}s(a,r)}else e!=null&&o(r,e,n);return this}get(e,r){if(e=dn(e),e){const n=G.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return Nd(i);if(G.isFunction(r))return r.call(this,i,n);if(G.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=dn(e),e){const n=G.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||ho(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function o(s){if(s=dn(s),s){const a=G.findKey(n,s);a&&(!r||ho(n,n[a],a,r))&&(delete n[a],i=!0)}}return G.isArray(e)?e.forEach(o):o(e),i}clear(e){const r=Object.keys(this);let n=r.length,i=!1;for(;n--;){const o=r[n];(!e||ho(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const r=this,n={};return G.forEach(this,(i,o)=>{const s=G.findKey(n,o);if(s){r[s]=Zn(i),delete r[o];return}const a=e?kd(o):String(o).trim();a!==o&&delete r[o],r[a]=Zn(i),n[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return G.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&G.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
|
|
7
|
+
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(i=>n.set(i)),n}static accessor(e){const n=(this[fs]=this[fs]={accessors:{}}).accessors,i=this.prototype;function o(s){const a=dn(s);n[a]||(Md(i,s),n[a]=!0)}return G.isArray(e)?e.forEach(o):o(e),this}};dt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),G.reduceDescriptors(dt.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}}),G.freezeMethods(dt);const Ud="[REDACTED ****]";function $d(t){if(G.hasOwnProp(t,"toJSON"))return!0;let e=Object.getPrototypeOf(t);for(;e&&e!==Object.prototype;){if(G.hasOwnProp(e,"toJSON"))return!0;e=Object.getPrototypeOf(e)}return!1}function Hd(t,e){const r=new Set(e.map(o=>String(o).toLowerCase())),n=[],i=o=>{if(o===null||typeof o!="object"||G.isBuffer(o))return o;if(n.indexOf(o)!==-1)return;o instanceof dt&&(o=o.toJSON()),n.push(o);let s;if(G.isArray(o))s=[],o.forEach((a,u)=>{const c=i(a);G.isUndefined(c)||(s[u]=c)});else{if(!G.isPlainObject(o)&&$d(o))return n.pop(),o;s=Object.create(null);for(const[a,u]of Object.entries(o)){const c=r.has(a.toLowerCase())?Ud:i(u);G.isUndefined(c)||(s[a]=c)}}return n.pop(),s};return i(t)}let me=class Xf extends Error{static from(e,r,n,i,o,s){const a=new Xf(e.message,r||e.code,n,i,o);return a.cause=e,a.name=e.name,e.status!=null&&a.status==null&&(a.status=e.status),s&&Object.assign(a,s),a}constructor(e,r,n,i,o){super(e),Object.defineProperty(this,"message",{__proto__:null,value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),i&&(this.request=i),o&&(this.response=o,this.status=o.status)}toJSON(){const e=this.config,r=e&&G.hasOwnProp(e,"redact")?e.redact:void 0,n=G.isArray(r)&&r.length>0?Hd(e,r):G.toJSONObject(e);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:n,code:this.code,status:this.status}}};me.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE",me.ERR_BAD_OPTION="ERR_BAD_OPTION",me.ECONNABORTED="ECONNABORTED",me.ETIMEDOUT="ETIMEDOUT",me.ECONNREFUSED="ECONNREFUSED",me.ERR_NETWORK="ERR_NETWORK",me.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS",me.ERR_DEPRECATED="ERR_DEPRECATED",me.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE",me.ERR_BAD_REQUEST="ERR_BAD_REQUEST",me.ERR_CANCELED="ERR_CANCELED",me.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT",me.ERR_INVALID_URL="ERR_INVALID_URL",me.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const zd=null;function po(t){return G.isPlainObject(t)||G.isArray(t)}function us(t){return G.endsWith(t,"[]")?t.slice(0,-2):t}function xo(t,e,r){return t?t.concat(e).map(function(i,o){return i=us(i),!r&&o?"["+i+"]":i}).join(r?".":""):e}function qd(t){return G.isArray(t)&&!t.some(po)}const Wd=G.toFlatObject(G,{},null,function(e){return/^is[A-Z]/.test(e)});function ei(t,e,r){if(!G.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=G.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(A,R){return!G.isUndefined(R[A])});const n=r.metaTokens,i=r.visitor||x,o=r.dots,s=r.indexes,a=r.Blob||typeof Blob!="undefined"&&Blob,u=r.maxDepth===void 0?100:r.maxDepth,c=a&&G.isSpecCompliantForm(e);if(!G.isFunction(i))throw new TypeError("visitor must be a function");function f(E){if(E===null)return"";if(G.isDate(E))return E.toISOString();if(G.isBoolean(E))return E.toString();if(!c&&G.isBlob(E))throw new me("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(E)||G.isTypedArray(E)?c&&typeof Blob=="function"?new Blob([E]):Buffer.from(E):E}function x(E,A,R){let w=E;if(G.isReactNative(e)&&G.isReactNativeBlob(E))return e.append(xo(R,A,o),f(E)),!1;if(E&&!R&&typeof E=="object"){if(G.endsWith(A,"{}"))A=n?A:A.slice(0,-2),E=JSON.stringify(E);else if(G.isArray(E)&&qd(E)||(G.isFileList(E)||G.endsWith(A,"[]"))&&(w=G.toArray(E)))return A=us(A),w.forEach(function(B,D){!(G.isUndefined(B)||B===null)&&e.append(s===!0?xo([A],D,o):s===null?A:A+"[]",f(B))}),!1}return po(E)?!0:(e.append(xo(R,A,o),f(E)),!1)}const h=[],v=Object.assign(Wd,{defaultVisitor:x,convertValue:f,isVisitable:po});function m(E,A,R=0){if(!G.isUndefined(E)){if(R>u)throw new me("Object is too deeply nested ("+R+" levels). Max depth: "+u,me.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(E)!==-1)throw Error("Circular reference detected in "+A.join("."));h.push(E),G.forEach(E,function(_,B){(!(G.isUndefined(_)||_===null)&&i.call(e,_,G.isString(B)?B.trim():B,A,v))===!0&&m(_,A?A.concat(B):[B],R+1)}),h.pop()}}if(!G.isObject(t))throw new TypeError("data must be an object");return m(t),e}function ls(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(t).replace(/[!'()~]|%20/g,function(n){return e[n]})}function yo(t,e){this._pairs=[],t&&ei(t,this,e)}const hs=yo.prototype;hs.append=function(e,r){this._pairs.push([e,r])},hs.toString=function(e){const r=e?function(n){return e.call(this,n,ls)}:ls;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function Vd(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ds(t,e,r){if(!e)return t;const n=r&&r.encode||Vd,i=G.isFunction(r)?{serialize:r}:r,o=i&&i.serialize;let s;if(o?s=o(e,i):s=G.isURLSearchParams(e)?e.toString():new yo(e,i).toString(n),s){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t}class ps{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){G.forEach(this.handlers,function(n){n!==null&&e(n)})}}const vo={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},Gd={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams!="undefined"?URLSearchParams:yo,FormData:typeof FormData!="undefined"?FormData:null,Blob:typeof Blob!="undefined"?Blob:null},protocols:["http","https","file","blob","url","data"]},mo=typeof window!="undefined"&&typeof document!="undefined",go=typeof navigator=="object"&&navigator||void 0,jd=mo&&(!go||["ReactNative","NativeScript","NS"].indexOf(go.product)<0),Kd=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Yd=mo&&window.location.href||"http://localhost",ut=We(We({},Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:mo,hasStandardBrowserEnv:jd,hasStandardBrowserWebWorkerEnv:Kd,navigator:go,origin:Yd},Symbol.toStringTag,{value:"Module"}))),Gd);function Xd(t,e){return ei(t,new ut.classes.URLSearchParams,We({visitor:function(r,n,i,o){return ut.isNode&&G.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function Jd(t){return G.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function Qd(t){const e={},r=Object.keys(t);let n;const i=r.length;let o;for(n=0;n<i;n++)o=r[n],e[o]=t[o];return e}function xs(t){function e(r,n,i,o){let s=r[o++];if(s==="__proto__")return!0;const a=Number.isFinite(+s),u=o>=r.length;return s=!s&&G.isArray(i)?i.length:s,u?(G.hasOwnProp(i,s)?i[s]=G.isArray(i[s])?i[s].concat(n):[i[s],n]:i[s]=n,!a):((!i[s]||!G.isObject(i[s]))&&(i[s]=[]),e(r,n,i[s],o)&&G.isArray(i[s])&&(i[s]=Qd(i[s])),!a)}if(G.isFormData(t)&&G.isFunction(t.entries)){const r={};return G.forEachEntry(t,(n,i)=>{e(Jd(n),i,r,0)}),r}return null}const Pr=(t,e)=>t!=null&&G.hasOwnProp(t,e)?t[e]:void 0;function Zd(t,e,r){if(G.isString(t))try{return(e||JSON.parse)(t),G.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const pn={transitional:vo,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=G.isObject(e);if(o&&G.isHTMLForm(e)&&(e=new FormData(e)),G.isFormData(e))return i?JSON.stringify(xs(e)):e;if(G.isArrayBuffer(e)||G.isBuffer(e)||G.isStream(e)||G.isFile(e)||G.isBlob(e)||G.isReadableStream(e))return e;if(G.isArrayBufferView(e))return e.buffer;if(G.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){const u=Pr(this,"formSerializer");if(n.indexOf("application/x-www-form-urlencoded")>-1)return Xd(e,u).toString();if((a=G.isFileList(e))||n.indexOf("multipart/form-data")>-1){const c=Pr(this,"env"),f=c&&c.FormData;return ei(a?{"files[]":e}:e,f&&new f,u)}}return o||i?(r.setContentType("application/json",!1),Zd(e)):e}],transformResponse:[function(e){const r=Pr(this,"transitional")||pn.transitional,n=r&&r.forcedJSONParsing,i=Pr(this,"responseType"),o=i==="json";if(G.isResponse(e)||G.isReadableStream(e))return e;if(e&&G.isString(e)&&(n&&!i||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e,Pr(this,"parseReviver"))}catch(u){if(a)throw u.name==="SyntaxError"?me.from(u,me.ERR_BAD_RESPONSE,this,null,Pr(this,"response")):u}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ut.classes.FormData,Blob:ut.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch","query"],t=>{pn.headers[t]={}});function Eo(t,e){const r=this||pn,n=e||r,i=dt.from(n.headers);let o=n.data;return G.forEach(t,function(a){o=a.call(r,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function ys(t){return!!(t&&t.__CANCEL__)}let xn=class extends me{constructor(e,r,n){super(e==null?"canceled":e,me.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function vs(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new me("Request failed with status code "+r.status,r.status>=400&&r.status<500?me.ERR_BAD_REQUEST:me.ERR_BAD_RESPONSE,r.config,r.request,r))}function ep(t){const e=/^([-+\w]{1,25}):(?:\/\/)?/.exec(t);return e&&e[1]||""}function tp(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,o=0,s;return e=e!==void 0?e:1e3,function(u){const c=Date.now(),f=n[o];s||(s=c),r[i]=u,n[i]=c;let x=o,h=0;for(;x!==i;)h+=r[x++],x=x%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),c-s<e)return;const v=f&&c-f;return v?Math.round(h*1e3/v):void 0}}function rp(t,e){let r=0,n=1e3/e,i,o;const s=(c,f=Date.now())=>{r=f,i=null,o&&(clearTimeout(o),o=null),t(...c)};return[(...c)=>{const f=Date.now(),x=f-r;x>=n?s(c,f):(i=c,o||(o=setTimeout(()=>{o=null,s(i)},n-x)))},()=>i&&s(i)]}const ti=(t,e,r=3)=>{let n=0;const i=tp(50,250);return rp(o=>{const s=o.loaded,a=o.lengthComputable?o.total:void 0,u=a!=null?Math.min(s,a):s,c=Math.max(0,u-n),f=i(c);n=Math.max(n,u);const x={loaded:u,total:a,progress:a?u/a:void 0,bytes:c,rate:f||void 0,estimated:f&&a?(a-u)/f:void 0,event:o,lengthComputable:a!=null,[e?"download":"upload"]:!0};t(x)},r)},ms=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},gs=t=>(...e)=>G.asap(()=>t(...e)),np=ut.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,ut.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(ut.origin),ut.navigator&&/(msie|trident)/i.test(ut.navigator.userAgent)):()=>!0,ip=ut.hasStandardBrowserEnv?{write(t,e,r,n,i,o,s){if(typeof document=="undefined")return;const a=[`${t}=${encodeURIComponent(e)}`];G.isNumber(r)&&a.push(`expires=${new Date(r).toUTCString()}`),G.isString(n)&&a.push(`path=${n}`),G.isString(i)&&a.push(`domain=${i}`),o===!0&&a.push("secure"),G.isString(s)&&a.push(`SameSite=${s}`),document.cookie=a.join("; ")},read(t){if(typeof document=="undefined")return null;const e=document.cookie.split(";");for(let r=0;r<e.length;r++){const n=e[r].replace(/^\s+/,""),i=n.indexOf("=");if(i!==-1&&n.slice(0,i)===t)return decodeURIComponent(n.slice(i+1))}return null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function op(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function ap(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Es(t,e,r){let n=!op(e);return t&&(n||r===!1)?ap(t,e):e}const As=t=>t instanceof dt?We({},t):t;function lr(t,e){e=e||{};const r=Object.create(null);Object.defineProperty(r,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function n(c,f,x,h){return G.isPlainObject(c)&&G.isPlainObject(f)?G.merge.call({caseless:h},c,f):G.isPlainObject(f)?G.merge({},f):G.isArray(f)?f.slice():f}function i(c,f,x,h){if(G.isUndefined(f)){if(!G.isUndefined(c))return n(void 0,c,x,h)}else return n(c,f,x,h)}function o(c,f){if(!G.isUndefined(f))return n(void 0,f)}function s(c,f){if(G.isUndefined(f)){if(!G.isUndefined(c))return n(void 0,c)}else return n(void 0,f)}function a(c,f,x){if(G.hasOwnProp(e,x))return n(c,f);if(G.hasOwnProp(t,x))return n(void 0,c)}const u={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:a,headers:(c,f,x)=>i(As(c),As(f),x,!0)};return G.forEach(Object.keys(We(We({},t),e)),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const x=G.hasOwnProp(u,f)?u[f]:i,h=G.hasOwnProp(t,f)?t[f]:void 0,v=G.hasOwnProp(e,f)?e[f]:void 0,m=x(h,v,f);G.isUndefined(m)&&x!==a||(r[f]=m)}),r}const sp=["content-type","content-length"];function cp(t,e,r){if(r!=="content-only"){t.set(e);return}Object.entries(e).forEach(([n,i])=>{sp.includes(n.toLowerCase())&&t.set(n,i)})}const fp=t=>encodeURIComponent(t).replace(/%([0-9A-F]{2})/gi,(e,r)=>String.fromCharCode(parseInt(r,16))),ws=t=>{const e=lr({},t),r=h=>G.hasOwnProp(e,h)?e[h]:void 0,n=r("data");let i=r("withXSRFToken");const o=r("xsrfHeaderName"),s=r("xsrfCookieName");let a=r("headers");const u=r("auth"),c=r("baseURL"),f=r("allowAbsoluteUrls"),x=r("url");if(e.headers=a=dt.from(a),e.url=ds(Es(c,x,f),t.params,t.paramsSerializer),u&&a.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?fp(u.password):""))),G.isFormData(n)&&(ut.hasStandardBrowserEnv||ut.hasStandardBrowserWebWorkerEnv?a.setContentType(void 0):G.isFunction(n.getHeaders)&&cp(a,n.getHeaders(),r("formDataHeaderPolicy"))),ut.hasStandardBrowserEnv&&(G.isFunction(i)&&(i=i(e)),i===!0||i==null&&np(e.url))){const v=o&&s&&ip.read(s);v&&a.set(o,v)}return e},up=typeof XMLHttpRequest!="undefined"&&function(t){return new Promise(function(r,n){const i=ws(t);let o=i.data;const s=dt.from(i.headers).normalize();let{responseType:a,onUploadProgress:u,onDownloadProgress:c}=i,f,x,h,v,m;function E(){v&&v(),m&&m(),i.cancelToken&&i.cancelToken.unsubscribe(f),i.signal&&i.signal.removeEventListener("abort",f)}let A=new XMLHttpRequest;A.open(i.method.toUpperCase(),i.url,!0),A.timeout=i.timeout;function R(){if(!A)return;const _=dt.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),D={data:!a||a==="text"||a==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:_,config:t,request:A};vs(function(L){r(L),E()},function(L){n(L),E()},D),A=null}"onloadend"in A?A.onloadend=R:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.startsWith("file:"))||setTimeout(R)},A.onabort=function(){A&&(n(new me("Request aborted",me.ECONNABORTED,t,A)),E(),A=null)},A.onerror=function(B){const D=B&&B.message?B.message:"Network Error",O=new me(D,me.ERR_NETWORK,t,A);O.event=B||null,n(O),E(),A=null},A.ontimeout=function(){let B=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const D=i.transitional||vo;i.timeoutErrorMessage&&(B=i.timeoutErrorMessage),n(new me(B,D.clarifyTimeoutError?me.ETIMEDOUT:me.ECONNABORTED,t,A)),E(),A=null},o===void 0&&s.setContentType(null),"setRequestHeader"in A&&G.forEach(s.toJSON(),function(B,D){A.setRequestHeader(D,B)}),G.isUndefined(i.withCredentials)||(A.withCredentials=!!i.withCredentials),a&&a!=="json"&&(A.responseType=i.responseType),c&&([h,m]=ti(c,!0),A.addEventListener("progress",h)),u&&A.upload&&([x,v]=ti(u),A.upload.addEventListener("progress",x),A.upload.addEventListener("loadend",v)),(i.cancelToken||i.signal)&&(f=_=>{A&&(n(!_||_.type?new xn(null,t,A):_),A.abort(),E(),A=null)},i.cancelToken&&i.cancelToken.subscribe(f),i.signal&&(i.signal.aborted?f():i.signal.addEventListener("abort",f)));const w=ep(i.url);if(w&&!ut.protocols.includes(w)){n(new me("Unsupported protocol "+w+":",me.ERR_BAD_REQUEST,t));return}A.send(o||null)})},lp=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const o=function(c){if(!i){i=!0,a();const f=c instanceof Error?c:this.reason;n.abort(f instanceof me?f:new xn(f instanceof Error?f.message:f))}};let s=e&&setTimeout(()=>{s=null,o(new me(`timeout of ${e}ms exceeded`,me.ETIMEDOUT))},e);const a=()=>{t&&(s&&clearTimeout(s),s=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(o):c.removeEventListener("abort",o)}),t=null)};t.forEach(c=>c.addEventListener("abort",o));const{signal:u}=n;return u.unsubscribe=()=>G.asap(a),u}},hp=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,i;for(;n<r;)i=n+e,yield t.slice(n,i),n=i},dp=function(t,e){return Q0(this,null,function*(){try{for(var r=Yf(pp(t)),n,i,o;n=!(i=yield new br(r.next())).done;n=!1){const s=i.value;yield*Z0(hp(s,e))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new br(i.call(r)))}finally{if(o)throw o[0]}}})},pp=function(t){return Q0(this,null,function*(){if(t[Symbol.asyncIterator]){yield*Z0(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new br(e.read());if(r)break;yield n}}finally{yield new br(e.cancel())}})},_s=(t,e,r,n)=>{const i=dp(t,e);let o=0,s,a=c=>{s||(s=!0,n&&n(c))};return new ReadableStream({pull(c){return De(this,null,function*(){try{const{done:f,value:x}=yield i.next();if(f){a(),c.close();return}let h=x.byteLength;if(r){let v=o+=h;r(v)}c.enqueue(new Uint8Array(x))}catch(f){throw a(f),f}})},cancel(c){return a(c),i.return()}},{highWaterMark:2})};function xp(t){if(!t||typeof t!="string"||!t.startsWith("data:"))return 0;const e=t.indexOf(",");if(e<0)return 0;const r=t.slice(5,e),n=t.slice(e+1);if(/;base64/i.test(r)){let s=n.length;const a=n.length;for(let v=0;v<a;v++)if(n.charCodeAt(v)===37&&v+2<a){const m=n.charCodeAt(v+1),E=n.charCodeAt(v+2);(m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102)&&(E>=48&&E<=57||E>=65&&E<=70||E>=97&&E<=102)&&(s-=2,v+=2)}let u=0,c=a-1;const f=v=>v>=2&&n.charCodeAt(v-2)===37&&n.charCodeAt(v-1)===51&&(n.charCodeAt(v)===68||n.charCodeAt(v)===100);c>=0&&(n.charCodeAt(c)===61?(u++,c--):f(c)&&(u++,c-=3)),u===1&&c>=0&&(n.charCodeAt(c)===61||f(c))&&u++;const h=Math.floor(s/4)*3-(u||0);return h>0?h:0}if(typeof Buffer!="undefined"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(n,"utf8");let o=0;for(let s=0,a=n.length;s<a;s++){const u=n.charCodeAt(s);if(u<128)o+=1;else if(u<2048)o+=2;else if(u>=55296&&u<=56319&&s+1<a){const c=n.charCodeAt(s+1);c>=56320&&c<=57343?(o+=4,s++):o+=3}else o+=3}return o}const Ao="1.16.0",bs=64*1024,{isFunction:ri}=G,Cs=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},yp=t=>{var R;const e=(R=G.global)!=null?R:globalThis,{ReadableStream:r,TextEncoder:n}=e;t=G.merge.call({skipUndefined:!0},{Request:e.Request,Response:e.Response},t);const{fetch:i,Request:o,Response:s}=t,a=i?ri(i):typeof fetch=="function",u=ri(o),c=ri(s);if(!a)return!1;const f=a&&ri(r),x=a&&(typeof n=="function"?(w=>_=>w.encode(_))(new n):w=>De(this,null,function*(){return new Uint8Array(yield new o(w).arrayBuffer())})),h=u&&f&&Cs(()=>{let w=!1;const _=new o(ut.origin,{body:new r,method:"POST",get duplex(){return w=!0,"half"}}),B=_.headers.has("Content-Type");return _.body!=null&&_.body.cancel(),w&&!B}),v=c&&f&&Cs(()=>G.isReadableStream(new s("").body)),m={stream:v&&(w=>w.body)};a&&["text","arrayBuffer","blob","formData","stream"].forEach(w=>{!m[w]&&(m[w]=(_,B)=>{let D=_&&_[w];if(D)return D.call(_);throw new me(`Response type '${w}' is not supported`,me.ERR_NOT_SUPPORT,B)})});const E=w=>De(this,null,function*(){if(w==null)return 0;if(G.isBlob(w))return w.size;if(G.isSpecCompliantForm(w))return(yield new o(ut.origin,{method:"POST",body:w}).arrayBuffer()).byteLength;if(G.isArrayBufferView(w)||G.isArrayBuffer(w))return w.byteLength;if(G.isURLSearchParams(w)&&(w=w+""),G.isString(w))return(yield x(w)).byteLength}),A=(w,_)=>De(this,null,function*(){const B=G.toFiniteNumber(w.getContentLength());return B==null?E(_):B});return w=>De(this,null,function*(){let{url:_,method:B,data:D,signal:O,cancelToken:L,timeout:z,onDownloadProgress:Q,onUploadProgress:P,responseType:k,headers:V,withCredentials:X="same-origin",fetchOptions:ee,maxContentLength:Y,maxBodyLength:Z}=ws(w);const oe=G.isNumber(Y)&&Y>-1,ie=G.isNumber(Z)&&Z>-1;let he=i||fetch;k=k?(k+"").toLowerCase():"text";let fe=lp([O,L&&L.toAbortSignal()],z),H=null;const j=fe&&fe.unsubscribe&&(()=>{fe.unsubscribe()});let re;try{if(oe&&typeof _=="string"&&_.startsWith("data:")&&xp(_)>Y)throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,H);if(ie&&B!=="get"&&B!=="head"){const _e=yield A(V,D);if(typeof _e=="number"&&isFinite(_e)&&_e>Z)throw new me("Request body larger than maxBodyLength limit",me.ERR_BAD_REQUEST,w,H)}if(P&&h&&B!=="get"&&B!=="head"&&(re=yield A(V,D))!==0){let _e=new o(_,{method:"POST",body:D,duplex:"half"}),Pe;if(G.isFormData(D)&&(Pe=_e.headers.get("content-type"))&&V.setContentType(Pe),_e.body){const[Ge,Ve]=ms(re,ti(gs(P)));D=_s(_e.body,bs,Ge,Ve)}}G.isString(X)||(X=X?"include":"omit");const J=u&&"credentials"in o.prototype;if(G.isFormData(D)){const _e=V.getContentType();_e&&/^multipart\/form-data/i.test(_e)&&!/boundary=/i.test(_e)&&V.delete("content-type")}V.set("User-Agent","axios/"+Ao,!1);const Ae=Vt(We({},ee),{signal:fe,method:B.toUpperCase(),headers:V.normalize().toJSON(),body:D,duplex:"half",credentials:J?X:void 0});H=u&&new o(_,Ae);let we=yield u?he(H,ee):he(_,Ae);if(oe){const _e=G.toFiniteNumber(we.headers.get("content-length"));if(_e!=null&&_e>Y)throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,H)}const Me=v&&(k==="stream"||k==="response");if(v&&we.body&&(Q||oe||Me&&j)){const _e={};["status","statusText","headers"].forEach(Ke=>{_e[Ke]=we[Ke]});const Pe=G.toFiniteNumber(we.headers.get("content-length")),[Ge,Ve]=Q&&ms(Pe,ti(gs(Q),!0))||[];let Oe=0;const je=Ke=>{if(oe&&(Oe=Ke,Oe>Y))throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,H);Ge&&Ge(Ke)};we=new s(_s(we.body,bs,je,()=>{Ve&&Ve(),j&&j()}),_e)}k=k||"text";let ye=yield m[G.findKey(m,k)||"text"](we,w);if(oe&&!v&&!Me){let _e;if(ye!=null&&(typeof ye.byteLength=="number"?_e=ye.byteLength:typeof ye.size=="number"?_e=ye.size:typeof ye=="string"&&(_e=typeof n=="function"?new n().encode(ye).byteLength:ye.length)),typeof _e=="number"&&_e>Y)throw new me("maxContentLength size of "+Y+" exceeded",me.ERR_BAD_RESPONSE,w,H)}return!Me&&j&&j(),yield new Promise((_e,Pe)=>{vs(_e,Pe,{data:ye,headers:dt.from(we.headers),status:we.status,statusText:we.statusText,config:w,request:H})})}catch(J){if(j&&j(),fe&&fe.aborted&&fe.reason instanceof me){const Ae=fe.reason;throw Ae.config=w,H&&(Ae.request=H),J!==Ae&&(Ae.cause=J),Ae}throw J&&J.name==="TypeError"&&/Load failed|fetch/i.test(J.message)?Object.assign(new me("Network Error",me.ERR_NETWORK,w,H,J&&J.response),{cause:J.cause||J}):me.from(J,J&&J.code,w,H,J&&J.response)}})},vp=new Map,Bs=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:i}=e,o=[n,i,r];let s=o.length,a=s,u,c,f=vp;for(;a--;)u=o[a],c=f.get(u),c===void 0&&f.set(u,c=a?new Map:yp(e)),f=c;return c};Bs();const wo={http:zd,xhr:up,fetch:{get:Bs}};G.forEach(wo,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{__proto__:null,value:e})}catch(r){}Object.defineProperty(t,"adapterName",{__proto__:null,value:e})}});const Ds=t=>`- ${t}`,mp=t=>G.isFunction(t)||t===null||t===!1;function gp(t,e){t=G.isArray(t)?t:[t];const{length:r}=t;let n,i;const o={};for(let s=0;s<r;s++){n=t[s];let a;if(i=n,!mp(n)&&(i=wo[(a=String(n)).toLowerCase()],i===void 0))throw new me(`Unknown adapter '${a}'`);if(i&&(G.isFunction(i)||(i=i.get(e))))break;o[a||"#"+s]=i}if(!i){const s=Object.entries(o).map(([u,c])=>`adapter ${u} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=r?s.length>1?`since :
|
|
8
|
+
`+s.map(Ds).join(`
|
|
9
|
+
`):" "+Ds(s[0]):"as no adapter specified";throw new me("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return i}const Ss={getAdapter:gp,adapters:wo};function _o(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new xn(null,t)}function Fs(t){return _o(t),t.headers=dt.from(t.headers),t.data=Eo.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ss.getAdapter(t.adapter||pn.adapter,t)(t).then(function(n){_o(t),t.response=n;try{n.data=Eo.call(t,t.transformResponse,n)}finally{delete t.response}return n.headers=dt.from(n.headers),n},function(n){if(!ys(n)&&(_o(t),n&&n.response)){t.response=n.response;try{n.response.data=Eo.call(t,t.transformResponse,n.response)}finally{delete t.response}n.response.headers=dt.from(n.response.headers)}return Promise.reject(n)})}const ni={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{ni[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Rs={};ni.transitional=function(e,r,n){function i(o,s){return"[Axios v"+Ao+"] Transitional option '"+o+"'"+s+(n?". "+n:"")}return(o,s,a)=>{if(e===!1)throw new me(i(s," has been removed"+(r?" in "+r:"")),me.ERR_DEPRECATED);return r&&!Rs[s]&&(Rs[s]=!0,console.warn(i(s," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,s,a):!0}},ni.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function Ep(t,e,r){if(typeof t!="object")throw new me("options must be an object",me.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const o=n[i],s=Object.prototype.hasOwnProperty.call(e,o)?e[o]:void 0;if(s){const a=t[o],u=a===void 0||s(a,o,t);if(u!==!0)throw new me("option "+o+" must be "+u,me.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new me("Unknown option "+o,me.ERR_BAD_OPTION)}}const ii={assertOptions:Ep,validators:ni},wt=ii.validators;let hr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new ps,response:new ps}}request(e,r){return De(this,null,function*(){try{return yield this._request(e,r)}catch(n){if(n instanceof Error){let i={};Error.captureStackTrace?Error.captureStackTrace(i):i=new Error;const o=(()=>{if(!i.stack)return"";const s=i.stack.indexOf(`
|
|
10
10
|
`);return s===-1?"":i.stack.slice(s+1)})();try{if(!n.stack)n.stack=o;else if(o){const s=o.indexOf(`
|
|
11
11
|
`),a=s===-1?-1:o.indexOf(`
|
|
12
|
-
`,s+1),
|
|
13
|
-
`+o)}}catch(s){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=lr(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&
|
|
12
|
+
`,s+1),u=a===-1?"":o.slice(a+1);String(n.stack).endsWith(u)||(n.stack+=`
|
|
13
|
+
`+o)}}catch(s){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=lr(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&ii.assertOptions(n,{silentJSONParsing:wt.transitional(wt.boolean),forcedJSONParsing:wt.transitional(wt.boolean),clarifyTimeoutError:wt.transitional(wt.boolean),legacyInterceptorReqResOrdering:wt.transitional(wt.boolean)},!1),i!=null&&(G.isFunction(i)?r.paramsSerializer={serialize:i}:ii.assertOptions(i,{encode:wt.function,serialize:wt.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),ii.assertOptions(r,{baseUrl:wt.spelling("baseURL"),withXsrfToken:wt.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let s=o&&G.merge(o.common,o[r.method]);o&&G.forEach(["delete","get","head","post","put","patch","query","common"],m=>{delete o[m]}),r.headers=dt.concat(s,o);const a=[];let u=!0;this.interceptors.request.forEach(function(E){if(typeof E.runWhen=="function"&&E.runWhen(r)===!1)return;u=u&&E.synchronous;const A=r.transitional||vo;A&&A.legacyInterceptorReqResOrdering?a.unshift(E.fulfilled,E.rejected):a.push(E.fulfilled,E.rejected)});const c=[];this.interceptors.response.forEach(function(E){c.push(E.fulfilled,E.rejected)});let f,x=0,h;if(!u){const m=[Fs.bind(this),void 0];for(m.unshift(...a),m.push(...c),h=m.length,f=Promise.resolve(r);x<h;)f=f.then(m[x++],m[x++]);return f}h=a.length;let v=r;for(;x<h;){const m=a[x++],E=a[x++];try{v=m(v)}catch(A){E.call(this,A);break}}try{f=Fs.call(this,v)}catch(m){return Promise.reject(m)}for(x=0,h=c.length;x<h;)f=f.then(c[x++],c[x++]);return f}getUri(e){e=lr(this.defaults,e);const r=Es(e.baseURL,e.url,e.allowAbsoluteUrls);return ds(r,e.params,e.paramsSerializer)}};G.forEach(["delete","get","head","options"],function(e){hr.prototype[e]=function(r,n){return this.request(lr(n||{},{method:e,url:r,data:(n||{}).data}))}}),G.forEach(["post","put","patch","query"],function(e){function r(n){return function(o,s,a){return this.request(lr(a||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}hr.prototype[e]=r(),e!=="query"&&(hr.prototype[e+"Form"]=r(!0))});let Ap=class Jf{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(o){r=o});const n=this;this.promise.then(i=>{if(!n._listeners)return;let o=n._listeners.length;for(;o-- >0;)n._listeners[o](i);n._listeners=null}),this.promise.then=i=>{let o;const s=new Promise(a=>{n.subscribe(a),o=a}).then(i);return s.cancel=function(){n.unsubscribe(o)},s},e(function(o,s,a){n.reason||(n.reason=new xn(o,s,a),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new Jf(function(i){e=i}),cancel:e}}};function wp(t){return function(r){return t.apply(null,r)}}function _p(t){return G.isObject(t)&&t.isAxiosError===!0}const bo={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(bo).forEach(([t,e])=>{bo[e]=t});function Is(t){const e=new hr(t),r=Za(hr.prototype.request,e);return G.extend(r,hr.prototype,e,{allOwnKeys:!0}),G.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return Is(lr(t,i))},r}const et=Is(pn);et.Axios=hr,et.CanceledError=xn,et.CancelToken=Ap,et.isCancel=ys,et.VERSION=Ao,et.toFormData=ei,et.AxiosError=me,et.Cancel=et.CanceledError,et.all=function(e){return Promise.all(e)},et.spread=wp,et.isAxiosError=_p,et.mergeConfig=lr,et.AxiosHeaders=dt,et.formToJSON=t=>xs(G.isHTMLForm(t)?new FormData(t):t),et.getAdapter=Ss.getAdapter,et.HttpStatusCode=bo,et.default=et;const{Axios:Ev,AxiosError:Av,CanceledError:wv,isCancel:_v,CancelToken:bv,VERSION:Cv,all:Bv,Cancel:Dv,isAxiosError:Sv,spread:Fv,toFormData:Rv,AxiosHeaders:Iv,HttpStatusCode:Tv,formToJSON:Ov,getAdapter:Pv,mergeConfig:Nv,create:Lv}=et,Kt={NONE:"none",WUJIE:"wujie",QIANKUN:"qiankun",MICROAPP:"microapp"},Ts={ACPOINT:{YCVALUE:"status.platform.ycvalue",YXVALUE:"status.platform.yxvalue"}};var oi={};/*!
|
|
14
14
|
* vite-plugin-qiankun.js v1.0.14
|
|
15
15
|
* (c) 2021-2022 Teng Mao Qing
|
|
16
16
|
* Released under the MIT License.
|
|
17
|
-
*/Object.defineProperty(ai,"__esModule",{value:!0});var Nr=typeof window!="undefined"?window.proxy||window:{},Ps=function(t){Nr!=null&&Nr.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),Nr.qiankunName&&(window.moudleQiankunAppLifeCycles[Nr.qiankunName]=t))};ai.default=Ps;var si=ai.qiankunWindow=Nr;ai.renderWithQiankun=Ps;function bp(){return window.__POWERED_BY_WUJIE__||window.$wujie?Kt.WUJIE:window.__POWERED_BY_QIANKUN__||si!=null&&si.__POWERED_BY_QIANKUN__?Kt.QIANKUN:window.__MICRO_APP_ENVIRONMENT__||window.microApp?Kt.MICROAPP:Kt.NONE}function Cp(){return{microType:bp()}}const Bp="/",{microType:Ns}=Cp(),Dp=si||window,ci=Ns!==Kt.NONE?Ns:(Tf=(If=Dp.meta)==null?void 0:If.vite.micro)==null?void 0:Tf.type,Sp=ci===Kt.WUJIE,Fp=ci===Kt.QIANKUN,Rp=ci===Kt.MICROAPP,Ip=window.top!==window.self||ci!==Kt.NONE;console.log("🚀 ~ isNested:",Ip,Sp,Fp,Rp);const Tp=location.origin,Ls={savePath:((Pf=(Of=window.meta)==null?void 0:Of.graph)==null?void 0:Pf.savePath)||"/cockpit/drawing",graphPenPath:((Lf=(Nf=window.meta)==null?void 0:Nf.graph)==null?void 0:Lf.graphPenPath)||"/cockpit/graph",templatePath:((Mf=(kf=window.meta)==null?void 0:kf.graph)==null?void 0:Mf.templatePath)||"/cockpit/template",graphImgUploadPath:(($f=(Uf=window.meta)==null?void 0:Uf.graph)==null?void 0:$f.graphImgUploadPath)||"/cockpit/upload",threeSavePath:((zf=(Hf=window.meta)==null?void 0:Hf.graph)==null?void 0:zf.threeSavePath)||"/cockpit/threed",threeModelPath:((Wf=(qf=window.meta)==null?void 0:qf.graph)==null?void 0:Wf.threeModelPath)||"/cockpit/models"},Ye=Ze.create({baseURL:Tp,timeout:window.meta.axios.timeout||12e4,withCredentials:!1,paramsSerializer:t=>zh.stringify(t)});Ye.interceptors.request.use(t=>(t.headers["x-token"]="ewoglCJhbGcilDogpc3",t),t=>Promise.reject(t)),Ye.interceptors.response.use(t=>{const{data:e}=t;return Promise.resolve(e)},t=>Promise.reject(t));function Op(t,e={},r={}){return new Promise(n=>{Ye.get(t,We({params:e},r)).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function Pp(t,e={},r={}){return new Promise(n=>{Ye.post(t,e,r).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function Np(t,e={},r={}){return Ye.get(t,We({params:e},r))}function Lp(t,e={},r={}){return Ye.post(t,e,r)}function kp(t,e={}){return Ye.get(`/filehandle/${t}`,{params:e})}function Mp(t,e={},r={}){return Ye.post(`/filehandle/${t}`,e,r)}function Up(t,e={}){return Ye.get(`/user/${t}`,{params:e})}function $p(t,e={},r={}){return Ye.post(`/user/${t}`,e,r)}function Hp(t,e={}){return Ye.get(`${t}`,e.local?{params:e,baseURL:Bp}:{params:e})}function zp(t,e={}){return Ye.get(`/media/${t}/`,{params:e})}function qp(t,e={},r={}){return Ye.post(`/media/${t}/`,e,r)}function Wp(t,e={}){return Ye.get(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${t}/`,{params:e})}function Vp(t,e={},r={}){return Ye.post(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${t}/`,e,r)}function Gp(t,e={}){return Ye.get(`/history/${t}`,{params:e})}function jp(t,e={},r={}){return Ye.post(`/history/${t}`,e,r)}function Kp(t,e={}){return Ye.get(`/scada/${t}`,{params:e})}function Yp(t,e={},r={}){return Ye.post(`/scada/${t}`,e,r)}function Xp(t,e={}){return Ye.get(`/common/factory/${t}`,{params:e})}function Jp(t,e={},r={}){return Ye.post(`/common/factory/${t}`,e,r)}function Qp(t,e={}){return Ye.get(`/factory/${t}`,{params:e})}function Zp(t,e={},r={}){return Ye.post(`/factory/${t}`,e,r)}function e1(t,e={}){return Ye.get(`/pd/${t}`,{params:e})}function t1(t,e={},r={}){return Ye.post(`/pd/${t}`,e,r)}const Lt={getApi:Op,postApi:Pp,getFileApi:kp,postFileApi:Mp,getBaseApi:Np,postBaseApi:Lp,getUserApi:Up,postUserApi:$p,getGraphApi:Hp,getMediaApi:zp,postMediaApi:qp,getScadaApi:Kp,postScadaApi:Yp,getCommonApi:Wp,postCommonApi:Vp,getHistoryApi:Gp,postHistoryApi:jp,getFactoryApi:Qp,postFactoryApi:Zp,getCommonFactoryApi:Xp,postCommonFactoryApi:Jp,getPDApi:e1,postPDApi:t1};var r1={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(ye,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",a="minute",h="hour",c="day",f="week",x="month",l="quarter",m="year",v="date",E="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|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,w={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(te){var Y=["th","st","nd","rd"],Q=te%100;return"["+te+(Y[(Q-20)%10]||Y[Q]||Y[0])+"]"}},_=function(te,Y,Q){var oe=String(te);return!oe||oe.length>=Y?te:""+Array(Y+1-oe.length).join(Q)+te},D={s:_,z:function(te){var Y=-te.utcOffset(),Q=Math.abs(Y),oe=Math.floor(Q/60),ie=Q%60;return(Y<=0?"+":"-")+_(oe,2,"0")+":"+_(ie,2,"0")},m:function te(Y,Q){if(Y.date()<Q.date())return-te(Q,Y);var oe=12*(Q.year()-Y.year())+(Q.month()-Y.month()),ie=Y.clone().add(oe,x),he=Q-ie<0,fe=Y.clone().add(oe+(he?-1:1),x);return+(-(oe+(Q-ie)/(he?ie-fe:fe-ie))||0)},a:function(te){return te<0?Math.ceil(te)||0:Math.floor(te)},p:function(te){return{M:x,y:m,w:f,d:c,D:v,h,m:a,s,ms:o,Q:l}[te]||String(te||"").toLowerCase().replace(/s$/,"")},u:function(te){return te===void 0}},C="en",O={};O[C]=w;var L="$isDayjsObject",H=function(te){return te instanceof V||!(!te||!te[L])},Z=function te(Y,Q,oe){var ie;if(!Y)return C;if(typeof Y=="string"){var he=Y.toLowerCase();O[he]&&(ie=he),Q&&(O[he]=Q,ie=he);var fe=Y.split("-");if(!ie&&fe.length>1)return te(fe[0])}else{var z=Y.name;O[z]=Y,ie=z}return!oe&&ie&&(C=ie),ie||!oe&&C},P=function(te,Y){if(H(te))return te.clone();var Q=typeof Y=="object"?Y:{};return Q.date=te,Q.args=arguments,new V(Q)},k=D;k.l=Z,k.i=H,k.w=function(te,Y){return P(te,{locale:Y.$L,utc:Y.$u,x:Y.$x,$offset:Y.$offset})};var V=function(){function te(Q){this.$L=Z(Q.locale,null,!0),this.parse(Q),this.$x=this.$x||Q.x||{},this[L]=!0}var Y=te.prototype;return Y.parse=function(Q){this.$d=function(oe){var ie=oe.date,he=oe.utc;if(ie===null)return new Date(NaN);if(k.u(ie))return new Date;if(ie instanceof Date)return new Date(ie);if(typeof ie=="string"&&!/Z$/i.test(ie)){var fe=ie.match(A);if(fe){var z=fe[2]-1||0,j=(fe[7]||"0").substring(0,3);return he?new Date(Date.UTC(fe[1],z,fe[3]||1,fe[4]||0,fe[5]||0,fe[6]||0,j)):new Date(fe[1],z,fe[3]||1,fe[4]||0,fe[5]||0,fe[6]||0,j)}}return new Date(ie)}(Q),this.init()},Y.init=function(){var Q=this.$d;this.$y=Q.getFullYear(),this.$M=Q.getMonth(),this.$D=Q.getDate(),this.$W=Q.getDay(),this.$H=Q.getHours(),this.$m=Q.getMinutes(),this.$s=Q.getSeconds(),this.$ms=Q.getMilliseconds()},Y.$utils=function(){return k},Y.isValid=function(){return this.$d.toString()!==E},Y.isSame=function(Q,oe){var ie=P(Q);return this.startOf(oe)<=ie&&ie<=this.endOf(oe)},Y.isAfter=function(Q,oe){return P(Q)<this.startOf(oe)},Y.isBefore=function(Q,oe){return this.endOf(oe)<P(Q)},Y.$g=function(Q,oe,ie){return k.u(Q)?this[oe]:this.set(ie,Q)},Y.unix=function(){return Math.floor(this.valueOf()/1e3)},Y.valueOf=function(){return this.$d.getTime()},Y.startOf=function(Q,oe){var ie=this,he=!!k.u(oe)||oe,fe=k.p(Q),z=function(_e,Pe){var Ge=k.w(ie.$u?Date.UTC(ie.$y,Pe,_e):new Date(ie.$y,Pe,_e),ie);return he?Ge:Ge.endOf(c)},j=function(_e,Pe){return k.w(ie.toDate()[_e].apply(ie.toDate("s"),(he?[0,0,0,0]:[23,59,59,999]).slice(Pe)),ie)},re=this.$W,J=this.$M,Ee=this.$D,we="set"+(this.$u?"UTC":"");switch(fe){case m:return he?z(1,0):z(31,11);case x:return he?z(1,J):z(0,J+1);case f:var Me=this.$locale().weekStart||0,ve=(re<Me?re+7:re)-Me;return z(he?Ee-ve:Ee+(6-ve),J);case c:case v:return j(we+"Hours",0);case h:return j(we+"Minutes",1);case a:return j(we+"Seconds",2);case s:return j(we+"Milliseconds",3);default:return this.clone()}},Y.endOf=function(Q){return this.startOf(Q,!1)},Y.$set=function(Q,oe){var ie,he=k.p(Q),fe="set"+(this.$u?"UTC":""),z=(ie={},ie[c]=fe+"Date",ie[v]=fe+"Date",ie[x]=fe+"Month",ie[m]=fe+"FullYear",ie[h]=fe+"Hours",ie[a]=fe+"Minutes",ie[s]=fe+"Seconds",ie[o]=fe+"Milliseconds",ie)[he],j=he===c?this.$D+(oe-this.$W):oe;if(he===x||he===m){var re=this.clone().set(v,1);re.$d[z](j),re.init(),this.$d=re.set(v,Math.min(this.$D,re.daysInMonth())).$d}else z&&this.$d[z](j);return this.init(),this},Y.set=function(Q,oe){return this.clone().$set(Q,oe)},Y.get=function(Q){return this[k.p(Q)]()},Y.add=function(Q,oe){var ie,he=this;Q=Number(Q);var fe=k.p(oe),z=function(J){var Ee=P(he);return k.w(Ee.date(Ee.date()+Math.round(J*Q)),he)};if(fe===x)return this.set(x,this.$M+Q);if(fe===m)return this.set(m,this.$y+Q);if(fe===c)return z(1);if(fe===f)return z(7);var j=(ie={},ie[a]=n,ie[h]=i,ie[s]=r,ie)[fe]||1,re=this.$d.getTime()+Q*j;return k.w(re,this)},Y.subtract=function(Q,oe){return this.add(-1*Q,oe)},Y.format=function(Q){var oe=this,ie=this.$locale();if(!this.isValid())return ie.invalidDate||E;var he=Q||"YYYY-MM-DDTHH:mm:ssZ",fe=k.z(this),z=this.$H,j=this.$m,re=this.$M,J=ie.weekdays,Ee=ie.months,we=ie.meridiem,Me=function(Pe,Ge,Ve,Oe){return Pe&&(Pe[Ge]||Pe(oe,he))||Ve[Ge].slice(0,Oe)},ve=function(Pe){return k.s(z%12||12,Pe,"0")},_e=we||function(Pe,Ge,Ve){var Oe=Pe<12?"AM":"PM";return Ve?Oe.toLowerCase():Oe};return he.replace(R,function(Pe,Ge){return Ge||function(Ve){switch(Ve){case"YY":return String(oe.$y).slice(-2);case"YYYY":return k.s(oe.$y,4,"0");case"M":return re+1;case"MM":return k.s(re+1,2,"0");case"MMM":return Me(ie.monthsShort,re,Ee,3);case"MMMM":return Me(Ee,re);case"D":return oe.$D;case"DD":return k.s(oe.$D,2,"0");case"d":return String(oe.$W);case"dd":return Me(ie.weekdaysMin,oe.$W,J,2);case"ddd":return Me(ie.weekdaysShort,oe.$W,J,3);case"dddd":return J[oe.$W];case"H":return String(z);case"HH":return k.s(z,2,"0");case"h":return ve(1);case"hh":return ve(2);case"a":return _e(z,j,!0);case"A":return _e(z,j,!1);case"m":return String(j);case"mm":return k.s(j,2,"0");case"s":return String(oe.$s);case"ss":return k.s(oe.$s,2,"0");case"SSS":return k.s(oe.$ms,3,"0");case"Z":return fe}return null}(Pe)||fe.replace(":","")})},Y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Y.diff=function(Q,oe,ie){var he,fe=this,z=k.p(oe),j=P(Q),re=(j.utcOffset()-this.utcOffset())*n,J=this-j,Ee=function(){return k.m(fe,j)};switch(z){case m:he=Ee()/12;break;case x:he=Ee();break;case l:he=Ee()/3;break;case f:he=(J-re)/6048e5;break;case c:he=(J-re)/864e5;break;case h:he=J/i;break;case a:he=J/n;break;case s:he=J/r;break;default:he=J}return ie?he:k.a(he)},Y.daysInMonth=function(){return this.endOf(x).$D},Y.$locale=function(){return O[this.$L]},Y.locale=function(Q,oe){if(!Q)return this.$L;var ie=this.clone(),he=Z(Q,oe,!0);return he&&(ie.$L=he),ie},Y.clone=function(){return k.w(this.$d,this)},Y.toDate=function(){return new Date(this.valueOf())},Y.toJSON=function(){return this.isValid()?this.toISOString():null},Y.toISOString=function(){return this.$d.toISOString()},Y.toString=function(){return this.$d.toUTCString()},te}(),X=V.prototype;return P.prototype=X,[["$ms",o],["$s",s],["$m",a],["$H",h],["$W",c],["$M",x],["$y",m],["$D",v]].forEach(function(te){X[te[1]]=function(Y){return this.$g(Y,te[0],te[1])}}),P.extend=function(te,Y){return te.$i||(te(Y,V,P),te.$i=!0),P},P.locale=Z,P.isDayjs=H,P.unix=function(te){return P(1e3*te)},P.en=O[C],P.Ls=O,P.p={},P})})(r1);const n1=()=>{var n;const t={},e=((n=window.location.href.split("?"))==null?void 0:n[1])||"",r=new URLSearchParams(e);for(const[i,o]of r.entries())t[i]=o;return t};function ks(t){return Object.prototype.toString.call(t).slice(8,-1)}function Co(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function i1(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(i){i(r)}),(n=t.get("*"))&&n.slice().map(function(i){i(e,r)})}}}const Bo=i1();class o1{constructor(e={}){this._options=We({url:e.socketUrl,onOpen:null,onClose:null,onError:null,onMessage:null},e),this._client=null,this._isConnect=!1,this._closeClient=!1,this._retryCount=0,this._retryTimes=10,this._retryInterval=1e4,this._retryIntervalObj=null,this._initSockjs()}_initSockjs(){const{url:e,onOpen:r,onClose:n,onError:i,onMessage:o,token:s}=this._options;WebSocket!==void 0?this._client=new WebSocket(e,[s]):this.$message({type:"error",message:"当前浏览器不支持WebSocket推送!"}),this._client.onopen=a=>{this._client.readyState===WebSocket.OPEN&&(this._retryCount=0,this._isConnect=!0,this._closeClient=!1,this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null),r&&r(a)},this._client.onclose=a=>{!this._closeClient&&this.retryIntervalStart(),this._isConnect=!1,n&&n(a)},this._client.onerror=a=>{i&&i(a)},this._client.onmessage=a=>{o&&o(a)}}_reconnect(){if(this._retryCount===this._retryTimes){this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null;return}this._client=null,this._initSockjs(),this._retryCount++}retryIntervalStart(){this._closeClient=!0,this._retryIntervalObj||(this._retryIntervalObj=setInterval(()=>{this._reconnect()},this._retryInterval))}sendMsg(e){this._isConnect&&this._client.send(e)}destroy(){this._client&&(this._isConnect=!1,this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null,this._closeClient=!0,this._client.close(),this._client=null)}}const a1=(t,e)=>new Promise((r,n)=>{Lt.postApi("/filehandle/save",{path:t,data:e}).then(i=>{i.res.success?r(!0):n(!1)})});Ie.createPinia();var s1={exports:{}};function yn(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Do={exports:{}},Ms;function Le(){return Ms||(Ms=1,function(t,e){(function(r,n){t.exports=n()})(ye,function(){var r=r||function(n,i){var o;if(typeof window!="undefined"&&window.crypto&&(o=window.crypto),typeof self!="undefined"&&self.crypto&&(o=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window!="undefined"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof ye!="undefined"&&ye.crypto&&(o=ye.crypto),!o&&typeof yn=="function")try{o=ta}catch(w){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(w){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(w){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function w(){}return function(_){var D;return w.prototype=_,D=new w,w.prototype=null,D}}(),h={},c=h.lib={},f=c.Base=function(){return{extend:function(w){var _=a(this);return w&&_.mixIn(w),(!_.hasOwnProperty("init")||this.init===_.init)&&(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var _ in w)w.hasOwnProperty(_)&&(this[_]=w[_]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=f.extend({init:function(w,_){w=this.words=w||[],_!=i?this.sigBytes=_:this.sigBytes=w.length*4},toString:function(w){return(w||m).stringify(this)},concat:function(w){var _=this.words,D=w.words,C=this.sigBytes,O=w.sigBytes;if(this.clamp(),C%4)for(var L=0;L<O;L++){var H=D[L>>>2]>>>24-L%4*8&255;_[C+L>>>2]|=H<<24-(C+L)%4*8}else for(var Z=0;Z<O;Z+=4)_[C+Z>>>2]=D[Z>>>2];return this.sigBytes+=O,this},clamp:function(){var w=this.words,_=this.sigBytes;w[_>>>2]&=4294967295<<32-_%4*8,w.length=n.ceil(_/4)},clone:function(){var w=f.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var _=[],D=0;D<w;D+=4)_.push(s());return new x.init(_,w)}}),l=h.enc={},m=l.Hex={stringify:function(w){for(var _=w.words,D=w.sigBytes,C=[],O=0;O<D;O++){var L=_[O>>>2]>>>24-O%4*8&255;C.push((L>>>4).toString(16)),C.push((L&15).toString(16))}return C.join("")},parse:function(w){for(var _=w.length,D=[],C=0;C<_;C+=2)D[C>>>3]|=parseInt(w.substr(C,2),16)<<24-C%8*4;return new x.init(D,_/2)}},v=l.Latin1={stringify:function(w){for(var _=w.words,D=w.sigBytes,C=[],O=0;O<D;O++){var L=_[O>>>2]>>>24-O%4*8&255;C.push(String.fromCharCode(L))}return C.join("")},parse:function(w){for(var _=w.length,D=[],C=0;C<_;C++)D[C>>>2]|=(w.charCodeAt(C)&255)<<24-C%4*8;return new x.init(D,_)}},E=l.Utf8={stringify:function(w){try{return decodeURIComponent(escape(v.stringify(w)))}catch(_){throw new Error("Malformed UTF-8 data")}},parse:function(w){return v.parse(unescape(encodeURIComponent(w)))}},A=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=E.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var _,D=this._data,C=D.words,O=D.sigBytes,L=this.blockSize,H=L*4,Z=O/H;w?Z=n.ceil(Z):Z=n.max((Z|0)-this._minBufferSize,0);var P=Z*L,k=n.min(P*4,O);if(P){for(var V=0;V<P;V+=L)this._doProcessBlock(C,V);_=C.splice(0,P),D.sigBytes-=k}return new x.init(_,k)},clone:function(){var w=f.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});c.Hasher=A.extend({cfg:f.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){A.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var _=this._doFinalize();return _},blockSize:16,_createHelper:function(w){return function(_,D){return new w.init(D).finalize(_)}},_createHmacHelper:function(w){return function(_,D){return new R.HMAC.init(w,D).finalize(_)}}});var R=h.algo={};return h}(Math);return r})}(Do)),Do.exports}var So={exports:{}},Us;function fi(){return Us||(Us=1,function(t,e){(function(r,n){t.exports=n(Le())})(ye,function(r){return function(n){var i=r,o=i.lib,s=o.Base,a=o.WordArray,h=i.x64={};h.Word=s.extend({init:function(c,f){this.high=c,this.low=f}}),h.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=n?this.sigBytes=f:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,f=c.length,x=[],l=0;l<f;l++){var m=c[l];x.push(m.high),x.push(m.low)}return a.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),x=f.length,l=0;l<x;l++)f[l]=f[l].clone();return c}})}(),r})}(So)),So.exports}var Fo={exports:{}},$s;function c1(){return $s||($s=1,function(t,e){(function(r,n){t.exports=n(Le())})(ye,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,i=n.lib,o=i.WordArray,s=o.init,a=o.init=function(h){if(h instanceof ArrayBuffer&&(h=new Uint8Array(h)),(h instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&h instanceof Uint8ClampedArray||h instanceof Int16Array||h instanceof Uint16Array||h instanceof Int32Array||h instanceof Uint32Array||h instanceof Float32Array||h instanceof Float64Array)&&(h=new Uint8Array(h.buffer,h.byteOffset,h.byteLength)),h instanceof Uint8Array){for(var c=h.byteLength,f=[],x=0;x<c;x++)f[x>>>2]|=h[x]<<24-x%4*8;s.call(this,f,c)}else s.apply(this,arguments)};a.prototype=o}}(),r.lib.WordArray})}(Fo)),Fo.exports}var Ro={exports:{}},Hs;function f1(){return Hs||(Hs=1,function(t,e){(function(r,n){t.exports=n(Le())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Utf16=s.Utf16BE={stringify:function(h){for(var c=h.words,f=h.sigBytes,x=[],l=0;l<f;l+=2){var m=c[l>>>2]>>>16-l%4*8&65535;x.push(String.fromCharCode(m))}return x.join("")},parse:function(h){for(var c=h.length,f=[],x=0;x<c;x++)f[x>>>1]|=h.charCodeAt(x)<<16-x%2*16;return o.create(f,c*2)}},s.Utf16LE={stringify:function(h){for(var c=h.words,f=h.sigBytes,x=[],l=0;l<f;l+=2){var m=a(c[l>>>2]>>>16-l%4*8&65535);x.push(String.fromCharCode(m))}return x.join("")},parse:function(h){for(var c=h.length,f=[],x=0;x<c;x++)f[x>>>1]|=a(h.charCodeAt(x)<<16-x%2*16);return o.create(f,c*2)}};function a(h){return h<<8&4278255360|h>>>8&16711935}}(),r.enc.Utf16})}(Ro)),Ro.exports}var Io={exports:{}},zs;function dr(){return zs||(zs=1,function(t,e){(function(r,n){t.exports=n(Le())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64={stringify:function(h){var c=h.words,f=h.sigBytes,x=this._map;h.clamp();for(var l=[],m=0;m<f;m+=3)for(var v=c[m>>>2]>>>24-m%4*8&255,E=c[m+1>>>2]>>>24-(m+1)%4*8&255,A=c[m+2>>>2]>>>24-(m+2)%4*8&255,R=v<<16|E<<8|A,w=0;w<4&&m+w*.75<f;w++)l.push(x.charAt(R>>>6*(3-w)&63));var _=x.charAt(64);if(_)for(;l.length%4;)l.push(_);return l.join("")},parse:function(h){var c=h.length,f=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var l=0;l<f.length;l++)x[f.charCodeAt(l)]=l}var m=f.charAt(64);if(m){var v=h.indexOf(m);v!==-1&&(c=v)}return a(h,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(h,c,f){for(var x=[],l=0,m=0;m<c;m++)if(m%4){var v=f[h.charCodeAt(m-1)]<<m%4*2,E=f[h.charCodeAt(m)]>>>6-m%4*2,A=v|E;x[l>>>2]|=A<<24-l%4*8,l++}return o.create(x,l)}}(),r.enc.Base64})}(Io)),Io.exports}var To={exports:{}},qs;function u1(){return qs||(qs=1,function(t,e){(function(r,n){t.exports=n(Le())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64url={stringify:function(h,c){c===void 0&&(c=!0);var f=h.words,x=h.sigBytes,l=c?this._safe_map:this._map;h.clamp();for(var m=[],v=0;v<x;v+=3)for(var E=f[v>>>2]>>>24-v%4*8&255,A=f[v+1>>>2]>>>24-(v+1)%4*8&255,R=f[v+2>>>2]>>>24-(v+2)%4*8&255,w=E<<16|A<<8|R,_=0;_<4&&v+_*.75<x;_++)m.push(l.charAt(w>>>6*(3-_)&63));var D=l.charAt(64);if(D)for(;m.length%4;)m.push(D);return m.join("")},parse:function(h,c){c===void 0&&(c=!0);var f=h.length,x=c?this._safe_map:this._map,l=this._reverseMap;if(!l){l=this._reverseMap=[];for(var m=0;m<x.length;m++)l[x.charCodeAt(m)]=m}var v=x.charAt(64);if(v){var E=h.indexOf(v);E!==-1&&(f=E)}return a(h,f,l)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(h,c,f){for(var x=[],l=0,m=0;m<c;m++)if(m%4){var v=f[h.charCodeAt(m-1)]<<m%4*2,E=f[h.charCodeAt(m)]>>>6-m%4*2,A=v|E;x[l>>>2]|=A<<24-l%4*8,l++}return o.create(x,l)}}(),r.enc.Base64url})}(To)),To.exports}var Oo={exports:{}},Ws;function pr(){return Ws||(Ws=1,function(t,e){(function(r,n){t.exports=n(Le())})(ye,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,h=i.algo,c=[];(function(){for(var E=0;E<64;E++)c[E]=n.abs(n.sin(E+1))*4294967296|0})();var f=h.MD5=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,A){for(var R=0;R<16;R++){var w=A+R,_=E[w];E[w]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var D=this._hash.words,C=E[A+0],O=E[A+1],L=E[A+2],H=E[A+3],Z=E[A+4],P=E[A+5],k=E[A+6],V=E[A+7],X=E[A+8],te=E[A+9],Y=E[A+10],Q=E[A+11],oe=E[A+12],ie=E[A+13],he=E[A+14],fe=E[A+15],z=D[0],j=D[1],re=D[2],J=D[3];z=x(z,j,re,J,C,7,c[0]),J=x(J,z,j,re,O,12,c[1]),re=x(re,J,z,j,L,17,c[2]),j=x(j,re,J,z,H,22,c[3]),z=x(z,j,re,J,Z,7,c[4]),J=x(J,z,j,re,P,12,c[5]),re=x(re,J,z,j,k,17,c[6]),j=x(j,re,J,z,V,22,c[7]),z=x(z,j,re,J,X,7,c[8]),J=x(J,z,j,re,te,12,c[9]),re=x(re,J,z,j,Y,17,c[10]),j=x(j,re,J,z,Q,22,c[11]),z=x(z,j,re,J,oe,7,c[12]),J=x(J,z,j,re,ie,12,c[13]),re=x(re,J,z,j,he,17,c[14]),j=x(j,re,J,z,fe,22,c[15]),z=l(z,j,re,J,O,5,c[16]),J=l(J,z,j,re,k,9,c[17]),re=l(re,J,z,j,Q,14,c[18]),j=l(j,re,J,z,C,20,c[19]),z=l(z,j,re,J,P,5,c[20]),J=l(J,z,j,re,Y,9,c[21]),re=l(re,J,z,j,fe,14,c[22]),j=l(j,re,J,z,Z,20,c[23]),z=l(z,j,re,J,te,5,c[24]),J=l(J,z,j,re,he,9,c[25]),re=l(re,J,z,j,H,14,c[26]),j=l(j,re,J,z,X,20,c[27]),z=l(z,j,re,J,ie,5,c[28]),J=l(J,z,j,re,L,9,c[29]),re=l(re,J,z,j,V,14,c[30]),j=l(j,re,J,z,oe,20,c[31]),z=m(z,j,re,J,P,4,c[32]),J=m(J,z,j,re,X,11,c[33]),re=m(re,J,z,j,Q,16,c[34]),j=m(j,re,J,z,he,23,c[35]),z=m(z,j,re,J,O,4,c[36]),J=m(J,z,j,re,Z,11,c[37]),re=m(re,J,z,j,V,16,c[38]),j=m(j,re,J,z,Y,23,c[39]),z=m(z,j,re,J,ie,4,c[40]),J=m(J,z,j,re,C,11,c[41]),re=m(re,J,z,j,H,16,c[42]),j=m(j,re,J,z,k,23,c[43]),z=m(z,j,re,J,te,4,c[44]),J=m(J,z,j,re,oe,11,c[45]),re=m(re,J,z,j,fe,16,c[46]),j=m(j,re,J,z,L,23,c[47]),z=v(z,j,re,J,C,6,c[48]),J=v(J,z,j,re,V,10,c[49]),re=v(re,J,z,j,he,15,c[50]),j=v(j,re,J,z,P,21,c[51]),z=v(z,j,re,J,oe,6,c[52]),J=v(J,z,j,re,H,10,c[53]),re=v(re,J,z,j,Y,15,c[54]),j=v(j,re,J,z,O,21,c[55]),z=v(z,j,re,J,X,6,c[56]),J=v(J,z,j,re,fe,10,c[57]),re=v(re,J,z,j,k,15,c[58]),j=v(j,re,J,z,ie,21,c[59]),z=v(z,j,re,J,Z,6,c[60]),J=v(J,z,j,re,Q,10,c[61]),re=v(re,J,z,j,L,15,c[62]),j=v(j,re,J,z,te,21,c[63]),D[0]=D[0]+z|0,D[1]=D[1]+j|0,D[2]=D[2]+re|0,D[3]=D[3]+J|0},_doFinalize:function(){var E=this._data,A=E.words,R=this._nDataBytes*8,w=E.sigBytes*8;A[w>>>5]|=128<<24-w%32;var _=n.floor(R/4294967296),D=R;A[(w+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,A[(w+64>>>9<<4)+14]=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,E.sigBytes=(A.length+1)*4,this._process();for(var C=this._hash,O=C.words,L=0;L<4;L++){var H=O[L];O[L]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360}return C},clone:function(){var E=a.clone.call(this);return E._hash=this._hash.clone(),E}});function x(E,A,R,w,_,D,C){var O=E+(A&R|~A&w)+_+C;return(O<<D|O>>>32-D)+A}function l(E,A,R,w,_,D,C){var O=E+(A&w|R&~w)+_+C;return(O<<D|O>>>32-D)+A}function m(E,A,R,w,_,D,C){var O=E+(A^R^w)+_+C;return(O<<D|O>>>32-D)+A}function v(E,A,R,w,_,D,C){var O=E+(R^(A|~w))+_+C;return(O<<D|O>>>32-D)+A}i.MD5=a._createHelper(f),i.HmacMD5=a._createHmacHelper(f)}(Math),r.MD5})}(Oo)),Oo.exports}var Po={exports:{}},Vs;function Gs(){return Vs||(Vs=1,function(t,e){(function(r,n){t.exports=n(Le())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.Hasher,a=n.algo,h=[],c=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,x){for(var l=this._hash.words,m=l[0],v=l[1],E=l[2],A=l[3],R=l[4],w=0;w<80;w++){if(w<16)h[w]=f[x+w]|0;else{var _=h[w-3]^h[w-8]^h[w-14]^h[w-16];h[w]=_<<1|_>>>31}var D=(m<<5|m>>>27)+R+h[w];w<20?D+=(v&E|~v&A)+1518500249:w<40?D+=(v^E^A)+1859775393:w<60?D+=(v&E|v&A|E&A)-1894007588:D+=(v^E^A)-899497514,R=A,A=E,E=v<<30|v>>>2,v=m,m=D}l[0]=l[0]+m|0,l[1]=l[1]+v|0,l[2]=l[2]+E|0,l[3]=l[3]+A|0,l[4]=l[4]+R|0},_doFinalize:function(){var f=this._data,x=f.words,l=this._nDataBytes*8,m=f.sigBytes*8;return x[m>>>5]|=128<<24-m%32,x[(m+64>>>9<<4)+14]=Math.floor(l/4294967296),x[(m+64>>>9<<4)+15]=l,f.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA1=s._createHelper(c),n.HmacSHA1=s._createHmacHelper(c)}(),r.SHA1})}(Po)),Po.exports}var No={exports:{}},js;function Lo(){return js||(js=1,function(t,e){(function(r,n){t.exports=n(Le())})(ye,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,h=i.algo,c=[],f=[];(function(){function m(R){for(var w=n.sqrt(R),_=2;_<=w;_++)if(!(R%_))return!1;return!0}function v(R){return(R-(R|0))*4294967296|0}for(var E=2,A=0;A<64;)m(E)&&(A<8&&(c[A]=v(n.pow(E,1/2))),f[A]=v(n.pow(E,1/3)),A++),E++})();var x=[],l=h.SHA256=a.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(m,v){for(var E=this._hash.words,A=E[0],R=E[1],w=E[2],_=E[3],D=E[4],C=E[5],O=E[6],L=E[7],H=0;H<64;H++){if(H<16)x[H]=m[v+H]|0;else{var Z=x[H-15],P=(Z<<25|Z>>>7)^(Z<<14|Z>>>18)^Z>>>3,k=x[H-2],V=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;x[H]=P+x[H-7]+V+x[H-16]}var X=D&C^~D&O,te=A&R^A&w^R&w,Y=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),Q=(D<<26|D>>>6)^(D<<21|D>>>11)^(D<<7|D>>>25),oe=L+Q+X+f[H]+x[H],ie=Y+te;L=O,O=C,C=D,D=_+oe|0,_=w,w=R,R=A,A=oe+ie|0}E[0]=E[0]+A|0,E[1]=E[1]+R|0,E[2]=E[2]+w|0,E[3]=E[3]+_|0,E[4]=E[4]+D|0,E[5]=E[5]+C|0,E[6]=E[6]+O|0,E[7]=E[7]+L|0},_doFinalize:function(){var m=this._data,v=m.words,E=this._nDataBytes*8,A=m.sigBytes*8;return v[A>>>5]|=128<<24-A%32,v[(A+64>>>9<<4)+14]=n.floor(E/4294967296),v[(A+64>>>9<<4)+15]=E,m.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var m=a.clone.call(this);return m._hash=this._hash.clone(),m}});i.SHA256=a._createHelper(l),i.HmacSHA256=a._createHmacHelper(l)}(Math),r.SHA256})}(No)),No.exports}var ko={exports:{}},Ks;function l1(){return Ks||(Ks=1,function(t,e){(function(r,n,i){t.exports=n(Le(),Lo())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.algo,a=s.SHA256,h=s.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c}});n.SHA224=a._createHelper(h),n.HmacSHA224=a._createHmacHelper(h)}(),r.SHA224})}(ko)),ko.exports}var Mo={exports:{}},Ys;function Xs(){return Ys||(Ys=1,function(t,e){(function(r,n,i){t.exports=n(Le(),fi())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.Hasher,s=n.x64,a=s.Word,h=s.WordArray,c=n.algo;function f(){return a.create.apply(a,arguments)}var x=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],l=[];(function(){for(var v=0;v<80;v++)l[v]=f()})();var m=c.SHA512=o.extend({_doReset:function(){this._hash=new h.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(v,E){for(var A=this._hash.words,R=A[0],w=A[1],_=A[2],D=A[3],C=A[4],O=A[5],L=A[6],H=A[7],Z=R.high,P=R.low,k=w.high,V=w.low,X=_.high,te=_.low,Y=D.high,Q=D.low,oe=C.high,ie=C.low,he=O.high,fe=O.low,z=L.high,j=L.low,re=H.high,J=H.low,Ee=Z,we=P,Me=k,ve=V,_e=X,Pe=te,Ge=Y,Ve=Q,Oe=oe,je=ie,Ke=he,F=fe,u=z,d=j,y=re,T=J,W=0;W<80;W++){var K,pe,Ce=l[W];if(W<16)pe=Ce.high=v[E+W*2]|0,K=Ce.low=v[E+W*2+1]|0;else{var be=l[W-15],Be=be.high,ke=be.low,gt=(Be>>>1|ke<<31)^(Be>>>8|ke<<24)^Be>>>7,__$t__=(ke>>>1|Be<<31)^(ke>>>8|Be<<24)^(ke>>>7|Be<<25),Ht=l[W-2],Ft=Ht.high,zt=Ht.low,zr=(Ft>>>19|zt<<13)^(Ft<<3|zt>>>29)^Ft>>>6,qt=(zt>>>19|Ft<<13)^(zt<<3|Ft>>>29)^(zt>>>6|Ft<<26),qr=l[W-7],Wr=qr.high,gr=qr.low,nr=l[W-16],bn=nr.high,Et=nr.low;K=__$t__+gr,pe=gt+Wr+(K>>>0<__$t__>>>0?1:0),K=K+qt,pe=pe+zr+(K>>>0<qt>>>0?1:0),K=K+Et,pe=pe+bn+(K>>>0<Et>>>0?1:0),Ce.high=pe,Ce.low=K}var Cn=Oe&Ke^~Oe&u,Vr=je&F^~je&d,Gr=Ee&Me^Ee&_e^Me&_e,Bn=we&ve^we&Pe^ve&Pe,Dn=(Ee>>>28|we<<4)^(Ee<<30|we>>>2)^(Ee<<25|we>>>7),jr=(we>>>28|Ee<<4)^(we<<30|Ee>>>2)^(we<<25|Ee>>>7),Sn=(Oe>>>14|je<<18)^(Oe>>>18|je<<14)^(Oe<<23|je>>>9),Fn=(je>>>14|Oe<<18)^(je>>>18|Oe<<14)^(je<<23|Oe>>>9),Kr=x[W],Rn=Kr.high,Yr=Kr.low,ft=T+Fn,bt=y+Sn+(ft>>>0<T>>>0?1:0),ft=ft+Vr,bt=bt+Cn+(ft>>>0<Vr>>>0?1:0),ft=ft+Yr,bt=bt+Rn+(ft>>>0<Yr>>>0?1:0),ft=ft+K,bt=bt+pe+(ft>>>0<K>>>0?1:0),Er=jr+Bn,In=Dn+Gr+(Er>>>0<jr>>>0?1:0);y=u,T=d,u=Ke,d=F,Ke=Oe,F=je,je=Ve+ft|0,Oe=Ge+bt+(je>>>0<Ve>>>0?1:0)|0,Ge=_e,Ve=Pe,_e=Me,Pe=ve,Me=Ee,ve=we,we=ft+Er|0,Ee=bt+In+(we>>>0<ft>>>0?1:0)|0}P=R.low=P+we,R.high=Z+Ee+(P>>>0<we>>>0?1:0),V=w.low=V+ve,w.high=k+Me+(V>>>0<ve>>>0?1:0),te=_.low=te+Pe,_.high=X+_e+(te>>>0<Pe>>>0?1:0),Q=D.low=Q+Ve,D.high=Y+Ge+(Q>>>0<Ve>>>0?1:0),ie=C.low=ie+je,C.high=oe+Oe+(ie>>>0<je>>>0?1:0),fe=O.low=fe+F,O.high=he+Ke+(fe>>>0<F>>>0?1:0),j=L.low=j+d,L.high=z+u+(j>>>0<d>>>0?1:0),J=H.low=J+T,H.high=re+y+(J>>>0<T>>>0?1:0)},_doFinalize:function(){var v=this._data,E=v.words,A=this._nDataBytes*8,R=v.sigBytes*8;E[R>>>5]|=128<<24-R%32,E[(R+128>>>10<<5)+30]=Math.floor(A/4294967296),E[(R+128>>>10<<5)+31]=A,v.sigBytes=E.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var v=o.clone.call(this);return v._hash=this._hash.clone(),v},blockSize:1024/32});n.SHA512=o._createHelper(m),n.HmacSHA512=o._createHmacHelper(m)}(),r.SHA512})}(Mo)),Mo.exports}var Uo={exports:{}},Js;function h1(){return Js||(Js=1,function(t,e){(function(r,n,i){t.exports=n(Le(),fi(),Xs())})(ye,function(r){return function(){var n=r,i=n.x64,o=i.Word,s=i.WordArray,a=n.algo,h=a.SHA512,c=a.SHA384=h.extend({_doReset:function(){this._hash=new s.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 f=h._doFinalize.call(this);return f.sigBytes-=16,f}});n.SHA384=h._createHelper(c),n.HmacSHA384=h._createHmacHelper(c)}(),r.SHA384})}(Uo)),Uo.exports}var $o={exports:{}},Qs;function d1(){return Qs||(Qs=1,function(t,e){(function(r,n,i){t.exports=n(Le(),fi())})(ye,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,h=i.x64,c=h.Word,f=i.algo,x=[],l=[],m=[];(function(){for(var A=1,R=0,w=0;w<24;w++){x[A+5*R]=(w+1)*(w+2)/2%64;var _=R%5,D=(2*A+3*R)%5;A=_,R=D}for(var A=0;A<5;A++)for(var R=0;R<5;R++)l[A+5*R]=R+(2*A+3*R)%5*5;for(var C=1,O=0;O<24;O++){for(var L=0,H=0,Z=0;Z<7;Z++){if(C&1){var P=(1<<Z)-1;P<32?H^=1<<P:L^=1<<P-32}C&128?C=C<<1^113:C<<=1}m[O]=c.create(L,H)}})();var v=[];(function(){for(var A=0;A<25;A++)v[A]=c.create()})();var E=f.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var A=this._state=[],R=0;R<25;R++)A[R]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(A,R){for(var w=this._state,_=this.blockSize/2,D=0;D<_;D++){var C=A[R+2*D],O=A[R+2*D+1];C=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360;var L=w[D];L.high^=O,L.low^=C}for(var H=0;H<24;H++){for(var Z=0;Z<5;Z++){for(var P=0,k=0,V=0;V<5;V++){var L=w[Z+5*V];P^=L.high,k^=L.low}var X=v[Z];X.high=P,X.low=k}for(var Z=0;Z<5;Z++)for(var te=v[(Z+4)%5],Y=v[(Z+1)%5],Q=Y.high,oe=Y.low,P=te.high^(Q<<1|oe>>>31),k=te.low^(oe<<1|Q>>>31),V=0;V<5;V++){var L=w[Z+5*V];L.high^=P,L.low^=k}for(var ie=1;ie<25;ie++){var P,k,L=w[ie],he=L.high,fe=L.low,z=x[ie];z<32?(P=he<<z|fe>>>32-z,k=fe<<z|he>>>32-z):(P=fe<<z-32|he>>>64-z,k=he<<z-32|fe>>>64-z);var j=v[l[ie]];j.high=P,j.low=k}var re=v[0],J=w[0];re.high=J.high,re.low=J.low;for(var Z=0;Z<5;Z++)for(var V=0;V<5;V++){var ie=Z+5*V,L=w[ie],Ee=v[ie],we=v[(Z+1)%5+5*V],Me=v[(Z+2)%5+5*V];L.high=Ee.high^~we.high&Me.high,L.low=Ee.low^~we.low&Me.low}var L=w[0],ve=m[H];L.high^=ve.high,L.low^=ve.low}},_doFinalize:function(){var A=this._data,R=A.words;this._nDataBytes*8;var w=A.sigBytes*8,_=this.blockSize*32;R[w>>>5]|=1<<24-w%32,R[(n.ceil((w+1)/_)*_>>>5)-1]|=128,A.sigBytes=R.length*4,this._process();for(var D=this._state,C=this.cfg.outputLength/8,O=C/8,L=[],H=0;H<O;H++){var Z=D[H],P=Z.high,k=Z.low;P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,L.push(k),L.push(P)}return new s.init(L,C)},clone:function(){for(var A=a.clone.call(this),R=A._state=this._state.slice(0),w=0;w<25;w++)R[w]=R[w].clone();return A}});i.SHA3=a._createHelper(E),i.HmacSHA3=a._createHmacHelper(E)}(Math),r.SHA3})}($o)),$o.exports}var Ho={exports:{}},Zs;function p1(){return Zs||(Zs=1,function(t,e){(function(r,n){t.exports=n(Le())})(ye,function(r){/** @preserve
|
|
17
|
+
*/Object.defineProperty(oi,"__esModule",{value:!0});var Nr=typeof window!="undefined"?window.proxy||window:{},Os=function(t){Nr!=null&&Nr.__POWERED_BY_QIANKUN__&&(window.moudleQiankunAppLifeCycles||(window.moudleQiankunAppLifeCycles={}),Nr.qiankunName&&(window.moudleQiankunAppLifeCycles[Nr.qiankunName]=t))};oi.default=Os;var ai=oi.qiankunWindow=Nr;oi.renderWithQiankun=Os;function bp(){return window.__POWERED_BY_WUJIE__||window.$wujie?Kt.WUJIE:window.__POWERED_BY_QIANKUN__||ai!=null&&ai.__POWERED_BY_QIANKUN__?Kt.QIANKUN:window.__MICRO_APP_ENVIRONMENT__||window.microApp?Kt.MICROAPP:Kt.NONE}function Cp(){return{microType:bp()}}const Bp="/",{microType:Ps}=Cp(),Dp=ai||window,si=Ps!==Kt.NONE?Ps:(Tf=(If=Dp.meta)==null?void 0:If.vite.micro)==null?void 0:Tf.type,Sp=si===Kt.WUJIE,Fp=si===Kt.QIANKUN,Rp=si===Kt.MICROAPP,Ip=window.top!==window.self||si!==Kt.NONE;console.log("🚀 ~ isNested:",Ip,Sp,Fp,Rp);const Tp=location.origin,Ns={savePath:((Pf=(Of=window.meta)==null?void 0:Of.graph)==null?void 0:Pf.savePath)||"/cockpit/drawing",graphPenPath:((Lf=(Nf=window.meta)==null?void 0:Nf.graph)==null?void 0:Lf.graphPenPath)||"/cockpit/graph",templatePath:((Mf=(kf=window.meta)==null?void 0:kf.graph)==null?void 0:Mf.templatePath)||"/cockpit/template",graphImgUploadPath:(($f=(Uf=window.meta)==null?void 0:Uf.graph)==null?void 0:$f.graphImgUploadPath)||"/cockpit/upload",threeSavePath:((zf=(Hf=window.meta)==null?void 0:Hf.graph)==null?void 0:zf.threeSavePath)||"/cockpit/threed",threeModelPath:((Wf=(qf=window.meta)==null?void 0:qf.graph)==null?void 0:Wf.threeModelPath)||"/cockpit/models"},Ye=et.create({baseURL:Tp,timeout:window.meta.axios.timeout||12e4,withCredentials:!1,paramsSerializer:t=>zh.stringify(t)});Ye.interceptors.request.use(t=>(t.headers["x-token"]="ewoglCJhbGcilDogpc3",t),t=>Promise.reject(t)),Ye.interceptors.response.use(t=>{const{data:e}=t;return Promise.resolve(e)},t=>Promise.reject(t));function Op(t,e={},r={}){return new Promise(n=>{Ye.get(t,We({params:e},r)).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function Pp(t,e={},r={}){return new Promise(n=>{Ye.post(t,e,r).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function Np(t,e={},r={}){return Ye.get(t,We({params:e},r))}function Lp(t,e={},r={}){return Ye.post(t,e,r)}function kp(t,e={}){return Ye.get(`/filehandle/${t}`,{params:e})}function Mp(t,e={},r={}){return Ye.post(`/filehandle/${t}`,e,r)}function Up(t,e={}){return Ye.get(`/user/${t}`,{params:e})}function $p(t,e={},r={}){return Ye.post(`/user/${t}`,e,r)}function Hp(t,e={}){return Ye.get(`${t}`,e.local?{params:e,baseURL:Bp}:{params:e})}function zp(t,e={}){return Ye.get(`/media/${t}/`,{params:e})}function qp(t,e={},r={}){return Ye.post(`/media/${t}/`,e,r)}function Wp(t,e={}){return Ye.get(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${t}/`,{params:e})}function Vp(t,e={},r={}){return Ye.post(`/${window.meta.app.isFactory?window.meta.factory.singo_prefix||"acproxy/common":"common"}/${t}/`,e,r)}function Gp(t,e={}){return Ye.get(`/history/${t}`,{params:e})}function jp(t,e={},r={}){return Ye.post(`/history/${t}`,e,r)}function Kp(t,e={}){return Ye.get(`/scada/${t}`,{params:e})}function Yp(t,e={},r={}){return Ye.post(`/scada/${t}`,e,r)}function Xp(t,e={}){return Ye.get(`/common/factory/${t}`,{params:e})}function Jp(t,e={},r={}){return Ye.post(`/common/factory/${t}`,e,r)}function Qp(t,e={}){return Ye.get(`/factory/${t}`,{params:e})}function Zp(t,e={},r={}){return Ye.post(`/factory/${t}`,e,r)}function e1(t,e={}){return Ye.get(`/pd/${t}`,{params:e})}function t1(t,e={},r={}){return Ye.post(`/pd/${t}`,e,r)}const kt={getApi:Op,postApi:Pp,getFileApi:kp,postFileApi:Mp,getBaseApi:Np,postBaseApi:Lp,getUserApi:Up,postUserApi:$p,getGraphApi:Hp,getMediaApi:zp,postMediaApi:qp,getScadaApi:Kp,postScadaApi:Yp,getCommonApi:Wp,postCommonApi:Vp,getHistoryApi:Gp,postHistoryApi:jp,getFactoryApi:Qp,postFactoryApi:Zp,getCommonFactoryApi:Xp,postCommonFactoryApi:Jp,getPDApi:e1,postPDApi:t1};var r1={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(ve,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",s="second",a="minute",u="hour",c="day",f="week",x="month",h="quarter",v="year",m="date",E="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,R=/\[([^\]]+)]|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,w={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(ee){var Y=["th","st","nd","rd"],Z=ee%100;return"["+ee+(Y[(Z-20)%10]||Y[Z]||Y[0])+"]"}},_=function(ee,Y,Z){var oe=String(ee);return!oe||oe.length>=Y?ee:""+Array(Y+1-oe.length).join(Z)+ee},B={s:_,z:function(ee){var Y=-ee.utcOffset(),Z=Math.abs(Y),oe=Math.floor(Z/60),ie=Z%60;return(Y<=0?"+":"-")+_(oe,2,"0")+":"+_(ie,2,"0")},m:function ee(Y,Z){if(Y.date()<Z.date())return-ee(Z,Y);var oe=12*(Z.year()-Y.year())+(Z.month()-Y.month()),ie=Y.clone().add(oe,x),he=Z-ie<0,fe=Y.clone().add(oe+(he?-1:1),x);return+(-(oe+(Z-ie)/(he?ie-fe:fe-ie))||0)},a:function(ee){return ee<0?Math.ceil(ee)||0:Math.floor(ee)},p:function(ee){return{M:x,y:v,w:f,d:c,D:m,h:u,m:a,s,ms:o,Q:h}[ee]||String(ee||"").toLowerCase().replace(/s$/,"")},u:function(ee){return ee===void 0}},D="en",O={};O[D]=w;var L="$isDayjsObject",z=function(ee){return ee instanceof V||!(!ee||!ee[L])},Q=function ee(Y,Z,oe){var ie;if(!Y)return D;if(typeof Y=="string"){var he=Y.toLowerCase();O[he]&&(ie=he),Z&&(O[he]=Z,ie=he);var fe=Y.split("-");if(!ie&&fe.length>1)return ee(fe[0])}else{var H=Y.name;O[H]=Y,ie=H}return!oe&&ie&&(D=ie),ie||!oe&&D},P=function(ee,Y){if(z(ee))return ee.clone();var Z=typeof Y=="object"?Y:{};return Z.date=ee,Z.args=arguments,new V(Z)},k=B;k.l=Q,k.i=z,k.w=function(ee,Y){return P(ee,{locale:Y.$L,utc:Y.$u,x:Y.$x,$offset:Y.$offset})};var V=function(){function ee(Z){this.$L=Q(Z.locale,null,!0),this.parse(Z),this.$x=this.$x||Z.x||{},this[L]=!0}var Y=ee.prototype;return Y.parse=function(Z){this.$d=function(oe){var ie=oe.date,he=oe.utc;if(ie===null)return new Date(NaN);if(k.u(ie))return new Date;if(ie instanceof Date)return new Date(ie);if(typeof ie=="string"&&!/Z$/i.test(ie)){var fe=ie.match(A);if(fe){var H=fe[2]-1||0,j=(fe[7]||"0").substring(0,3);return he?new Date(Date.UTC(fe[1],H,fe[3]||1,fe[4]||0,fe[5]||0,fe[6]||0,j)):new Date(fe[1],H,fe[3]||1,fe[4]||0,fe[5]||0,fe[6]||0,j)}}return new Date(ie)}(Z),this.init()},Y.init=function(){var Z=this.$d;this.$y=Z.getFullYear(),this.$M=Z.getMonth(),this.$D=Z.getDate(),this.$W=Z.getDay(),this.$H=Z.getHours(),this.$m=Z.getMinutes(),this.$s=Z.getSeconds(),this.$ms=Z.getMilliseconds()},Y.$utils=function(){return k},Y.isValid=function(){return this.$d.toString()!==E},Y.isSame=function(Z,oe){var ie=P(Z);return this.startOf(oe)<=ie&&ie<=this.endOf(oe)},Y.isAfter=function(Z,oe){return P(Z)<this.startOf(oe)},Y.isBefore=function(Z,oe){return this.endOf(oe)<P(Z)},Y.$g=function(Z,oe,ie){return k.u(Z)?this[oe]:this.set(ie,Z)},Y.unix=function(){return Math.floor(this.valueOf()/1e3)},Y.valueOf=function(){return this.$d.getTime()},Y.startOf=function(Z,oe){var ie=this,he=!!k.u(oe)||oe,fe=k.p(Z),H=function(_e,Pe){var Ge=k.w(ie.$u?Date.UTC(ie.$y,Pe,_e):new Date(ie.$y,Pe,_e),ie);return he?Ge:Ge.endOf(c)},j=function(_e,Pe){return k.w(ie.toDate()[_e].apply(ie.toDate("s"),(he?[0,0,0,0]:[23,59,59,999]).slice(Pe)),ie)},re=this.$W,J=this.$M,Ae=this.$D,we="set"+(this.$u?"UTC":"");switch(fe){case v:return he?H(1,0):H(31,11);case x:return he?H(1,J):H(0,J+1);case f:var Me=this.$locale().weekStart||0,ye=(re<Me?re+7:re)-Me;return H(he?Ae-ye:Ae+(6-ye),J);case c:case m:return j(we+"Hours",0);case u:return j(we+"Minutes",1);case a:return j(we+"Seconds",2);case s:return j(we+"Milliseconds",3);default:return this.clone()}},Y.endOf=function(Z){return this.startOf(Z,!1)},Y.$set=function(Z,oe){var ie,he=k.p(Z),fe="set"+(this.$u?"UTC":""),H=(ie={},ie[c]=fe+"Date",ie[m]=fe+"Date",ie[x]=fe+"Month",ie[v]=fe+"FullYear",ie[u]=fe+"Hours",ie[a]=fe+"Minutes",ie[s]=fe+"Seconds",ie[o]=fe+"Milliseconds",ie)[he],j=he===c?this.$D+(oe-this.$W):oe;if(he===x||he===v){var re=this.clone().set(m,1);re.$d[H](j),re.init(),this.$d=re.set(m,Math.min(this.$D,re.daysInMonth())).$d}else H&&this.$d[H](j);return this.init(),this},Y.set=function(Z,oe){return this.clone().$set(Z,oe)},Y.get=function(Z){return this[k.p(Z)]()},Y.add=function(Z,oe){var ie,he=this;Z=Number(Z);var fe=k.p(oe),H=function(J){var Ae=P(he);return k.w(Ae.date(Ae.date()+Math.round(J*Z)),he)};if(fe===x)return this.set(x,this.$M+Z);if(fe===v)return this.set(v,this.$y+Z);if(fe===c)return H(1);if(fe===f)return H(7);var j=(ie={},ie[a]=n,ie[u]=i,ie[s]=r,ie)[fe]||1,re=this.$d.getTime()+Z*j;return k.w(re,this)},Y.subtract=function(Z,oe){return this.add(-1*Z,oe)},Y.format=function(Z){var oe=this,ie=this.$locale();if(!this.isValid())return ie.invalidDate||E;var he=Z||"YYYY-MM-DDTHH:mm:ssZ",fe=k.z(this),H=this.$H,j=this.$m,re=this.$M,J=ie.weekdays,Ae=ie.months,we=ie.meridiem,Me=function(Pe,Ge,Ve,Oe){return Pe&&(Pe[Ge]||Pe(oe,he))||Ve[Ge].slice(0,Oe)},ye=function(Pe){return k.s(H%12||12,Pe,"0")},_e=we||function(Pe,Ge,Ve){var Oe=Pe<12?"AM":"PM";return Ve?Oe.toLowerCase():Oe};return he.replace(R,function(Pe,Ge){return Ge||function(Ve){switch(Ve){case"YY":return String(oe.$y).slice(-2);case"YYYY":return k.s(oe.$y,4,"0");case"M":return re+1;case"MM":return k.s(re+1,2,"0");case"MMM":return Me(ie.monthsShort,re,Ae,3);case"MMMM":return Me(Ae,re);case"D":return oe.$D;case"DD":return k.s(oe.$D,2,"0");case"d":return String(oe.$W);case"dd":return Me(ie.weekdaysMin,oe.$W,J,2);case"ddd":return Me(ie.weekdaysShort,oe.$W,J,3);case"dddd":return J[oe.$W];case"H":return String(H);case"HH":return k.s(H,2,"0");case"h":return ye(1);case"hh":return ye(2);case"a":return _e(H,j,!0);case"A":return _e(H,j,!1);case"m":return String(j);case"mm":return k.s(j,2,"0");case"s":return String(oe.$s);case"ss":return k.s(oe.$s,2,"0");case"SSS":return k.s(oe.$ms,3,"0");case"Z":return fe}return null}(Pe)||fe.replace(":","")})},Y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},Y.diff=function(Z,oe,ie){var he,fe=this,H=k.p(oe),j=P(Z),re=(j.utcOffset()-this.utcOffset())*n,J=this-j,Ae=function(){return k.m(fe,j)};switch(H){case v:he=Ae()/12;break;case x:he=Ae();break;case h:he=Ae()/3;break;case f:he=(J-re)/6048e5;break;case c:he=(J-re)/864e5;break;case u:he=J/i;break;case a:he=J/n;break;case s:he=J/r;break;default:he=J}return ie?he:k.a(he)},Y.daysInMonth=function(){return this.endOf(x).$D},Y.$locale=function(){return O[this.$L]},Y.locale=function(Z,oe){if(!Z)return this.$L;var ie=this.clone(),he=Q(Z,oe,!0);return he&&(ie.$L=he),ie},Y.clone=function(){return k.w(this.$d,this)},Y.toDate=function(){return new Date(this.valueOf())},Y.toJSON=function(){return this.isValid()?this.toISOString():null},Y.toISOString=function(){return this.$d.toISOString()},Y.toString=function(){return this.$d.toUTCString()},ee}(),X=V.prototype;return P.prototype=X,[["$ms",o],["$s",s],["$m",a],["$H",u],["$W",c],["$M",x],["$y",v],["$D",m]].forEach(function(ee){X[ee[1]]=function(Y){return this.$g(Y,ee[0],ee[1])}}),P.extend=function(ee,Y){return ee.$i||(ee(Y,V,P),ee.$i=!0),P},P.locale=Q,P.isDayjs=z,P.unix=function(ee){return P(1e3*ee)},P.en=O[D],P.Ls=O,P.p={},P})})(r1);const n1=()=>{var n;const t={},e=((n=window.location.href.split("?"))==null?void 0:n[1])||"",r=new URLSearchParams(e);for(const[i,o]of r.entries())t[i]=o;return t};function Ls(t){return Object.prototype.toString.call(t).slice(8,-1)}function Co(){return("10000000-1000-4000-8000"+-1e11).replace(/[018]/g,t=>(t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>t/4).toString(16))}function i1(t){return{all:t=t||new Map,on:function(e,r){var n=t.get(e);n?n.push(r):t.set(e,[r])},off:function(e,r){var n=t.get(e);n&&(r?n.splice(n.indexOf(r)>>>0,1):t.set(e,[]))},emit:function(e,r){var n=t.get(e);n&&n.slice().map(function(i){i(r)}),(n=t.get("*"))&&n.slice().map(function(i){i(e,r)})}}}const Bo=i1();class o1{constructor(e={}){this._options=We({url:e.socketUrl,onOpen:null,onClose:null,onError:null,onMessage:null},e),this._client=null,this._isConnect=!1,this._closeClient=!1,this._retryCount=0,this._retryTimes=10,this._retryInterval=1e4,this._retryIntervalObj=null,this._initSockjs()}_initSockjs(){const{url:e,onOpen:r,onClose:n,onError:i,onMessage:o,token:s}=this._options;WebSocket!==void 0?this._client=new WebSocket(e,[s]):this.$message({type:"error",message:"当前浏览器不支持WebSocket推送!"}),this._client.onopen=a=>{this._client.readyState===WebSocket.OPEN&&(this._retryCount=0,this._isConnect=!0,this._closeClient=!1,this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null),r&&r(a)},this._client.onclose=a=>{!this._closeClient&&this.retryIntervalStart(),this._isConnect=!1,n&&n(a)},this._client.onerror=a=>{i&&i(a)},this._client.onmessage=a=>{o&&o(a)}}_reconnect(){if(this._retryCount===this._retryTimes){this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null;return}this._client=null,this._initSockjs(),this._retryCount++}retryIntervalStart(){this._closeClient=!0,this._retryIntervalObj||(this._retryIntervalObj=setInterval(()=>{this._reconnect()},this._retryInterval))}sendMsg(e){this._isConnect&&this._client.send(e)}destroy(){this._client&&(this._isConnect=!1,this._retryIntervalObj&&clearInterval(this._retryIntervalObj),this._retryIntervalObj=null,this._closeClient=!0,this._client.close(),this._client=null)}}const a1=(t,e)=>new Promise((r,n)=>{kt.postApi("/filehandle/save",{path:t,data:e}).then(i=>{i.res.success?r(!0):n(!1)})});Ie.createPinia();var s1={exports:{}};function yn(t){throw new Error('Could not dynamically require "'+t+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Do={exports:{}},ks;function Ne(){return ks||(ks=1,function(t,e){(function(r,n){t.exports=n()})(ve,function(){var r=r||function(n,i){var o;if(typeof window!="undefined"&&window.crypto&&(o=window.crypto),typeof self!="undefined"&&self.crypto&&(o=self.crypto),typeof globalThis!="undefined"&&globalThis.crypto&&(o=globalThis.crypto),!o&&typeof window!="undefined"&&window.msCrypto&&(o=window.msCrypto),!o&&typeof ve!="undefined"&&ve.crypto&&(o=ve.crypto),!o&&typeof yn=="function")try{o=Bt}catch(w){}var s=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(w){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(w){}}throw new Error("Native crypto module could not be used to get secure random number.")},a=Object.create||function(){function w(){}return function(_){var B;return w.prototype=_,B=new w,w.prototype=null,B}}(),u={},c=u.lib={},f=c.Base=function(){return{extend:function(w){var _=a(this);return w&&_.mixIn(w),(!_.hasOwnProperty("init")||this.init===_.init)&&(_.init=function(){_.$super.init.apply(this,arguments)}),_.init.prototype=_,_.$super=this,_},create:function(){var w=this.extend();return w.init.apply(w,arguments),w},init:function(){},mixIn:function(w){for(var _ in w)w.hasOwnProperty(_)&&(this[_]=w[_]);w.hasOwnProperty("toString")&&(this.toString=w.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),x=c.WordArray=f.extend({init:function(w,_){w=this.words=w||[],_!=i?this.sigBytes=_:this.sigBytes=w.length*4},toString:function(w){return(w||v).stringify(this)},concat:function(w){var _=this.words,B=w.words,D=this.sigBytes,O=w.sigBytes;if(this.clamp(),D%4)for(var L=0;L<O;L++){var z=B[L>>>2]>>>24-L%4*8&255;_[D+L>>>2]|=z<<24-(D+L)%4*8}else for(var Q=0;Q<O;Q+=4)_[D+Q>>>2]=B[Q>>>2];return this.sigBytes+=O,this},clamp:function(){var w=this.words,_=this.sigBytes;w[_>>>2]&=4294967295<<32-_%4*8,w.length=n.ceil(_/4)},clone:function(){var w=f.clone.call(this);return w.words=this.words.slice(0),w},random:function(w){for(var _=[],B=0;B<w;B+=4)_.push(s());return new x.init(_,w)}}),h=u.enc={},v=h.Hex={stringify:function(w){for(var _=w.words,B=w.sigBytes,D=[],O=0;O<B;O++){var L=_[O>>>2]>>>24-O%4*8&255;D.push((L>>>4).toString(16)),D.push((L&15).toString(16))}return D.join("")},parse:function(w){for(var _=w.length,B=[],D=0;D<_;D+=2)B[D>>>3]|=parseInt(w.substr(D,2),16)<<24-D%8*4;return new x.init(B,_/2)}},m=h.Latin1={stringify:function(w){for(var _=w.words,B=w.sigBytes,D=[],O=0;O<B;O++){var L=_[O>>>2]>>>24-O%4*8&255;D.push(String.fromCharCode(L))}return D.join("")},parse:function(w){for(var _=w.length,B=[],D=0;D<_;D++)B[D>>>2]|=(w.charCodeAt(D)&255)<<24-D%4*8;return new x.init(B,_)}},E=h.Utf8={stringify:function(w){try{return decodeURIComponent(escape(m.stringify(w)))}catch(_){throw new Error("Malformed UTF-8 data")}},parse:function(w){return m.parse(unescape(encodeURIComponent(w)))}},A=c.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new x.init,this._nDataBytes=0},_append:function(w){typeof w=="string"&&(w=E.parse(w)),this._data.concat(w),this._nDataBytes+=w.sigBytes},_process:function(w){var _,B=this._data,D=B.words,O=B.sigBytes,L=this.blockSize,z=L*4,Q=O/z;w?Q=n.ceil(Q):Q=n.max((Q|0)-this._minBufferSize,0);var P=Q*L,k=n.min(P*4,O);if(P){for(var V=0;V<P;V+=L)this._doProcessBlock(D,V);_=D.splice(0,P),B.sigBytes-=k}return new x.init(_,k)},clone:function(){var w=f.clone.call(this);return w._data=this._data.clone(),w},_minBufferSize:0});c.Hasher=A.extend({cfg:f.extend(),init:function(w){this.cfg=this.cfg.extend(w),this.reset()},reset:function(){A.reset.call(this),this._doReset()},update:function(w){return this._append(w),this._process(),this},finalize:function(w){w&&this._append(w);var _=this._doFinalize();return _},blockSize:16,_createHelper:function(w){return function(_,B){return new w.init(B).finalize(_)}},_createHmacHelper:function(w){return function(_,B){return new R.HMAC.init(w,B).finalize(_)}}});var R=u.algo={};return u}(Math);return r})}(Do)),Do.exports}var So={exports:{}},Ms;function ci(){return Ms||(Ms=1,function(t,e){(function(r,n){t.exports=n(Ne())})(ve,function(r){return function(n){var i=r,o=i.lib,s=o.Base,a=o.WordArray,u=i.x64={};u.Word=s.extend({init:function(c,f){this.high=c,this.low=f}}),u.WordArray=s.extend({init:function(c,f){c=this.words=c||[],f!=n?this.sigBytes=f:this.sigBytes=c.length*8},toX32:function(){for(var c=this.words,f=c.length,x=[],h=0;h<f;h++){var v=c[h];x.push(v.high),x.push(v.low)}return a.create(x,this.sigBytes)},clone:function(){for(var c=s.clone.call(this),f=c.words=this.words.slice(0),x=f.length,h=0;h<x;h++)f[h]=f[h].clone();return c}})}(),r})}(So)),So.exports}var Fo={exports:{}},Us;function c1(){return Us||(Us=1,function(t,e){(function(r,n){t.exports=n(Ne())})(ve,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,i=n.lib,o=i.WordArray,s=o.init,a=o.init=function(u){if(u instanceof ArrayBuffer&&(u=new Uint8Array(u)),(u instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&u instanceof Uint8ClampedArray||u instanceof Int16Array||u instanceof Uint16Array||u instanceof Int32Array||u instanceof Uint32Array||u instanceof Float32Array||u instanceof Float64Array)&&(u=new Uint8Array(u.buffer,u.byteOffset,u.byteLength)),u instanceof Uint8Array){for(var c=u.byteLength,f=[],x=0;x<c;x++)f[x>>>2]|=u[x]<<24-x%4*8;s.call(this,f,c)}else s.apply(this,arguments)};a.prototype=o}}(),r.lib.WordArray})}(Fo)),Fo.exports}var Ro={exports:{}},$s;function f1(){return $s||($s=1,function(t,e){(function(r,n){t.exports=n(Ne())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Utf16=s.Utf16BE={stringify:function(u){for(var c=u.words,f=u.sigBytes,x=[],h=0;h<f;h+=2){var v=c[h>>>2]>>>16-h%4*8&65535;x.push(String.fromCharCode(v))}return x.join("")},parse:function(u){for(var c=u.length,f=[],x=0;x<c;x++)f[x>>>1]|=u.charCodeAt(x)<<16-x%2*16;return o.create(f,c*2)}},s.Utf16LE={stringify:function(u){for(var c=u.words,f=u.sigBytes,x=[],h=0;h<f;h+=2){var v=a(c[h>>>2]>>>16-h%4*8&65535);x.push(String.fromCharCode(v))}return x.join("")},parse:function(u){for(var c=u.length,f=[],x=0;x<c;x++)f[x>>>1]|=a(u.charCodeAt(x)<<16-x%2*16);return o.create(f,c*2)}};function a(u){return u<<8&4278255360|u>>>8&16711935}}(),r.enc.Utf16})}(Ro)),Ro.exports}var Io={exports:{}},Hs;function dr(){return Hs||(Hs=1,function(t,e){(function(r,n){t.exports=n(Ne())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64={stringify:function(u){var c=u.words,f=u.sigBytes,x=this._map;u.clamp();for(var h=[],v=0;v<f;v+=3)for(var m=c[v>>>2]>>>24-v%4*8&255,E=c[v+1>>>2]>>>24-(v+1)%4*8&255,A=c[v+2>>>2]>>>24-(v+2)%4*8&255,R=m<<16|E<<8|A,w=0;w<4&&v+w*.75<f;w++)h.push(x.charAt(R>>>6*(3-w)&63));var _=x.charAt(64);if(_)for(;h.length%4;)h.push(_);return h.join("")},parse:function(u){var c=u.length,f=this._map,x=this._reverseMap;if(!x){x=this._reverseMap=[];for(var h=0;h<f.length;h++)x[f.charCodeAt(h)]=h}var v=f.charAt(64);if(v){var m=u.indexOf(v);m!==-1&&(c=m)}return a(u,c,x)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function a(u,c,f){for(var x=[],h=0,v=0;v<c;v++)if(v%4){var m=f[u.charCodeAt(v-1)]<<v%4*2,E=f[u.charCodeAt(v)]>>>6-v%4*2,A=m|E;x[h>>>2]|=A<<24-h%4*8,h++}return o.create(x,h)}}(),r.enc.Base64})}(Io)),Io.exports}var To={exports:{}},zs;function u1(){return zs||(zs=1,function(t,e){(function(r,n){t.exports=n(Ne())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.enc;s.Base64url={stringify:function(u,c){c===void 0&&(c=!0);var f=u.words,x=u.sigBytes,h=c?this._safe_map:this._map;u.clamp();for(var v=[],m=0;m<x;m+=3)for(var E=f[m>>>2]>>>24-m%4*8&255,A=f[m+1>>>2]>>>24-(m+1)%4*8&255,R=f[m+2>>>2]>>>24-(m+2)%4*8&255,w=E<<16|A<<8|R,_=0;_<4&&m+_*.75<x;_++)v.push(h.charAt(w>>>6*(3-_)&63));var B=h.charAt(64);if(B)for(;v.length%4;)v.push(B);return v.join("")},parse:function(u,c){c===void 0&&(c=!0);var f=u.length,x=c?this._safe_map:this._map,h=this._reverseMap;if(!h){h=this._reverseMap=[];for(var v=0;v<x.length;v++)h[x.charCodeAt(v)]=v}var m=x.charAt(64);if(m){var E=u.indexOf(m);E!==-1&&(f=E)}return a(u,f,h)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function a(u,c,f){for(var x=[],h=0,v=0;v<c;v++)if(v%4){var m=f[u.charCodeAt(v-1)]<<v%4*2,E=f[u.charCodeAt(v)]>>>6-v%4*2,A=m|E;x[h>>>2]|=A<<24-h%4*8,h++}return o.create(x,h)}}(),r.enc.Base64url})}(To)),To.exports}var Oo={exports:{}},qs;function pr(){return qs||(qs=1,function(t,e){(function(r,n){t.exports=n(Ne())})(ve,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,u=i.algo,c=[];(function(){for(var E=0;E<64;E++)c[E]=n.abs(n.sin(E+1))*4294967296|0})();var f=u.MD5=a.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(E,A){for(var R=0;R<16;R++){var w=A+R,_=E[w];E[w]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360}var B=this._hash.words,D=E[A+0],O=E[A+1],L=E[A+2],z=E[A+3],Q=E[A+4],P=E[A+5],k=E[A+6],V=E[A+7],X=E[A+8],ee=E[A+9],Y=E[A+10],Z=E[A+11],oe=E[A+12],ie=E[A+13],he=E[A+14],fe=E[A+15],H=B[0],j=B[1],re=B[2],J=B[3];H=x(H,j,re,J,D,7,c[0]),J=x(J,H,j,re,O,12,c[1]),re=x(re,J,H,j,L,17,c[2]),j=x(j,re,J,H,z,22,c[3]),H=x(H,j,re,J,Q,7,c[4]),J=x(J,H,j,re,P,12,c[5]),re=x(re,J,H,j,k,17,c[6]),j=x(j,re,J,H,V,22,c[7]),H=x(H,j,re,J,X,7,c[8]),J=x(J,H,j,re,ee,12,c[9]),re=x(re,J,H,j,Y,17,c[10]),j=x(j,re,J,H,Z,22,c[11]),H=x(H,j,re,J,oe,7,c[12]),J=x(J,H,j,re,ie,12,c[13]),re=x(re,J,H,j,he,17,c[14]),j=x(j,re,J,H,fe,22,c[15]),H=h(H,j,re,J,O,5,c[16]),J=h(J,H,j,re,k,9,c[17]),re=h(re,J,H,j,Z,14,c[18]),j=h(j,re,J,H,D,20,c[19]),H=h(H,j,re,J,P,5,c[20]),J=h(J,H,j,re,Y,9,c[21]),re=h(re,J,H,j,fe,14,c[22]),j=h(j,re,J,H,Q,20,c[23]),H=h(H,j,re,J,ee,5,c[24]),J=h(J,H,j,re,he,9,c[25]),re=h(re,J,H,j,z,14,c[26]),j=h(j,re,J,H,X,20,c[27]),H=h(H,j,re,J,ie,5,c[28]),J=h(J,H,j,re,L,9,c[29]),re=h(re,J,H,j,V,14,c[30]),j=h(j,re,J,H,oe,20,c[31]),H=v(H,j,re,J,P,4,c[32]),J=v(J,H,j,re,X,11,c[33]),re=v(re,J,H,j,Z,16,c[34]),j=v(j,re,J,H,he,23,c[35]),H=v(H,j,re,J,O,4,c[36]),J=v(J,H,j,re,Q,11,c[37]),re=v(re,J,H,j,V,16,c[38]),j=v(j,re,J,H,Y,23,c[39]),H=v(H,j,re,J,ie,4,c[40]),J=v(J,H,j,re,D,11,c[41]),re=v(re,J,H,j,z,16,c[42]),j=v(j,re,J,H,k,23,c[43]),H=v(H,j,re,J,ee,4,c[44]),J=v(J,H,j,re,oe,11,c[45]),re=v(re,J,H,j,fe,16,c[46]),j=v(j,re,J,H,L,23,c[47]),H=m(H,j,re,J,D,6,c[48]),J=m(J,H,j,re,V,10,c[49]),re=m(re,J,H,j,he,15,c[50]),j=m(j,re,J,H,P,21,c[51]),H=m(H,j,re,J,oe,6,c[52]),J=m(J,H,j,re,z,10,c[53]),re=m(re,J,H,j,Y,15,c[54]),j=m(j,re,J,H,O,21,c[55]),H=m(H,j,re,J,X,6,c[56]),J=m(J,H,j,re,fe,10,c[57]),re=m(re,J,H,j,k,15,c[58]),j=m(j,re,J,H,ie,21,c[59]),H=m(H,j,re,J,Q,6,c[60]),J=m(J,H,j,re,Z,10,c[61]),re=m(re,J,H,j,L,15,c[62]),j=m(j,re,J,H,ee,21,c[63]),B[0]=B[0]+H|0,B[1]=B[1]+j|0,B[2]=B[2]+re|0,B[3]=B[3]+J|0},_doFinalize:function(){var E=this._data,A=E.words,R=this._nDataBytes*8,w=E.sigBytes*8;A[w>>>5]|=128<<24-w%32;var _=n.floor(R/4294967296),B=R;A[(w+64>>>9<<4)+15]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,A[(w+64>>>9<<4)+14]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,E.sigBytes=(A.length+1)*4,this._process();for(var D=this._hash,O=D.words,L=0;L<4;L++){var z=O[L];O[L]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360}return D},clone:function(){var E=a.clone.call(this);return E._hash=this._hash.clone(),E}});function x(E,A,R,w,_,B,D){var O=E+(A&R|~A&w)+_+D;return(O<<B|O>>>32-B)+A}function h(E,A,R,w,_,B,D){var O=E+(A&w|R&~w)+_+D;return(O<<B|O>>>32-B)+A}function v(E,A,R,w,_,B,D){var O=E+(A^R^w)+_+D;return(O<<B|O>>>32-B)+A}function m(E,A,R,w,_,B,D){var O=E+(R^(A|~w))+_+D;return(O<<B|O>>>32-B)+A}i.MD5=a._createHelper(f),i.HmacMD5=a._createHmacHelper(f)}(Math),r.MD5})}(Oo)),Oo.exports}var Po={exports:{}},Ws;function Vs(){return Ws||(Ws=1,function(t,e){(function(r,n){t.exports=n(Ne())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.Hasher,a=n.algo,u=[],c=a.SHA1=s.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(f,x){for(var h=this._hash.words,v=h[0],m=h[1],E=h[2],A=h[3],R=h[4],w=0;w<80;w++){if(w<16)u[w]=f[x+w]|0;else{var _=u[w-3]^u[w-8]^u[w-14]^u[w-16];u[w]=_<<1|_>>>31}var B=(v<<5|v>>>27)+R+u[w];w<20?B+=(m&E|~m&A)+1518500249:w<40?B+=(m^E^A)+1859775393:w<60?B+=(m&E|m&A|E&A)-1894007588:B+=(m^E^A)-899497514,R=A,A=E,E=m<<30|m>>>2,m=v,v=B}h[0]=h[0]+v|0,h[1]=h[1]+m|0,h[2]=h[2]+E|0,h[3]=h[3]+A|0,h[4]=h[4]+R|0},_doFinalize:function(){var f=this._data,x=f.words,h=this._nDataBytes*8,v=f.sigBytes*8;return x[v>>>5]|=128<<24-v%32,x[(v+64>>>9<<4)+14]=Math.floor(h/4294967296),x[(v+64>>>9<<4)+15]=h,f.sigBytes=x.length*4,this._process(),this._hash},clone:function(){var f=s.clone.call(this);return f._hash=this._hash.clone(),f}});n.SHA1=s._createHelper(c),n.HmacSHA1=s._createHmacHelper(c)}(),r.SHA1})}(Po)),Po.exports}var No={exports:{}},Gs;function Lo(){return Gs||(Gs=1,function(t,e){(function(r,n){t.exports=n(Ne())})(ve,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,u=i.algo,c=[],f=[];(function(){function v(R){for(var w=n.sqrt(R),_=2;_<=w;_++)if(!(R%_))return!1;return!0}function m(R){return(R-(R|0))*4294967296|0}for(var E=2,A=0;A<64;)v(E)&&(A<8&&(c[A]=m(n.pow(E,1/2))),f[A]=m(n.pow(E,1/3)),A++),E++})();var x=[],h=u.SHA256=a.extend({_doReset:function(){this._hash=new s.init(c.slice(0))},_doProcessBlock:function(v,m){for(var E=this._hash.words,A=E[0],R=E[1],w=E[2],_=E[3],B=E[4],D=E[5],O=E[6],L=E[7],z=0;z<64;z++){if(z<16)x[z]=v[m+z]|0;else{var Q=x[z-15],P=(Q<<25|Q>>>7)^(Q<<14|Q>>>18)^Q>>>3,k=x[z-2],V=(k<<15|k>>>17)^(k<<13|k>>>19)^k>>>10;x[z]=P+x[z-7]+V+x[z-16]}var X=B&D^~B&O,ee=A&R^A&w^R&w,Y=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),Z=(B<<26|B>>>6)^(B<<21|B>>>11)^(B<<7|B>>>25),oe=L+Z+X+f[z]+x[z],ie=Y+ee;L=O,O=D,D=B,B=_+oe|0,_=w,w=R,R=A,A=oe+ie|0}E[0]=E[0]+A|0,E[1]=E[1]+R|0,E[2]=E[2]+w|0,E[3]=E[3]+_|0,E[4]=E[4]+B|0,E[5]=E[5]+D|0,E[6]=E[6]+O|0,E[7]=E[7]+L|0},_doFinalize:function(){var v=this._data,m=v.words,E=this._nDataBytes*8,A=v.sigBytes*8;return m[A>>>5]|=128<<24-A%32,m[(A+64>>>9<<4)+14]=n.floor(E/4294967296),m[(A+64>>>9<<4)+15]=E,v.sigBytes=m.length*4,this._process(),this._hash},clone:function(){var v=a.clone.call(this);return v._hash=this._hash.clone(),v}});i.SHA256=a._createHelper(h),i.HmacSHA256=a._createHmacHelper(h)}(Math),r.SHA256})}(No)),No.exports}var ko={exports:{}},js;function l1(){return js||(js=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),Lo())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=n.algo,a=s.SHA256,u=s.SHA224=a.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var c=a._doFinalize.call(this);return c.sigBytes-=4,c}});n.SHA224=a._createHelper(u),n.HmacSHA224=a._createHmacHelper(u)}(),r.SHA224})}(ko)),ko.exports}var Mo={exports:{}},Ks;function Ys(){return Ks||(Ks=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ci())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.Hasher,s=n.x64,a=s.Word,u=s.WordArray,c=n.algo;function f(){return a.create.apply(a,arguments)}var x=[f(1116352408,3609767458),f(1899447441,602891725),f(3049323471,3964484399),f(3921009573,2173295548),f(961987163,4081628472),f(1508970993,3053834265),f(2453635748,2937671579),f(2870763221,3664609560),f(3624381080,2734883394),f(310598401,1164996542),f(607225278,1323610764),f(1426881987,3590304994),f(1925078388,4068182383),f(2162078206,991336113),f(2614888103,633803317),f(3248222580,3479774868),f(3835390401,2666613458),f(4022224774,944711139),f(264347078,2341262773),f(604807628,2007800933),f(770255983,1495990901),f(1249150122,1856431235),f(1555081692,3175218132),f(1996064986,2198950837),f(2554220882,3999719339),f(2821834349,766784016),f(2952996808,2566594879),f(3210313671,3203337956),f(3336571891,1034457026),f(3584528711,2466948901),f(113926993,3758326383),f(338241895,168717936),f(666307205,1188179964),f(773529912,1546045734),f(1294757372,1522805485),f(1396182291,2643833823),f(1695183700,2343527390),f(1986661051,1014477480),f(2177026350,1206759142),f(2456956037,344077627),f(2730485921,1290863460),f(2820302411,3158454273),f(3259730800,3505952657),f(3345764771,106217008),f(3516065817,3606008344),f(3600352804,1432725776),f(4094571909,1467031594),f(275423344,851169720),f(430227734,3100823752),f(506948616,1363258195),f(659060556,3750685593),f(883997877,3785050280),f(958139571,3318307427),f(1322822218,3812723403),f(1537002063,2003034995),f(1747873779,3602036899),f(1955562222,1575990012),f(2024104815,1125592928),f(2227730452,2716904306),f(2361852424,442776044),f(2428436474,593698344),f(2756734187,3733110249),f(3204031479,2999351573),f(3329325298,3815920427),f(3391569614,3928383900),f(3515267271,566280711),f(3940187606,3454069534),f(4118630271,4000239992),f(116418474,1914138554),f(174292421,2731055270),f(289380356,3203993006),f(460393269,320620315),f(685471733,587496836),f(852142971,1086792851),f(1017036298,365543100),f(1126000580,2618297676),f(1288033470,3409855158),f(1501505948,4234509866),f(1607167915,987167468),f(1816402316,1246189591)],h=[];(function(){for(var m=0;m<80;m++)h[m]=f()})();var v=c.SHA512=o.extend({_doReset:function(){this._hash=new u.init([new a.init(1779033703,4089235720),new a.init(3144134277,2227873595),new a.init(1013904242,4271175723),new a.init(2773480762,1595750129),new a.init(1359893119,2917565137),new a.init(2600822924,725511199),new a.init(528734635,4215389547),new a.init(1541459225,327033209)])},_doProcessBlock:function(m,E){for(var A=this._hash.words,R=A[0],w=A[1],_=A[2],B=A[3],D=A[4],O=A[5],L=A[6],z=A[7],Q=R.high,P=R.low,k=w.high,V=w.low,X=_.high,ee=_.low,Y=B.high,Z=B.low,oe=D.high,ie=D.low,he=O.high,fe=O.low,H=L.high,j=L.low,re=z.high,J=z.low,Ae=Q,we=P,Me=k,ye=V,_e=X,Pe=ee,Ge=Y,Ve=Z,Oe=oe,je=ie,Ke=he,F=fe,l=H,d=j,y=re,T=J,W=0;W<80;W++){var K,pe,Ce=h[W];if(W<16)pe=Ce.high=m[E+W*2]|0,K=Ce.low=m[E+W*2+1]|0;else{var be=h[W-15],Be=be.high,Le=be.low,mt=(Be>>>1|Le<<31)^(Be>>>8|Le<<24)^Be>>>7,Ht=(Le>>>1|Be<<31)^(Le>>>8|Be<<24)^(Le>>>7|Be<<25),zt=h[W-2],Rt=zt.high,qt=zt.low,zr=(Rt>>>19|qt<<13)^(Rt<<3|qt>>>29)^Rt>>>6,Wt=(qt>>>19|Rt<<13)^(qt<<3|Rt>>>29)^(qt>>>6|Rt<<26),qr=h[W-7],Wr=qr.high,gr=qr.low,nr=h[W-16],bn=nr.high,Et=nr.low;K=Ht+gr,pe=mt+Wr+(K>>>0<Ht>>>0?1:0),K=K+Wt,pe=pe+zr+(K>>>0<Wt>>>0?1:0),K=K+Et,pe=pe+bn+(K>>>0<Et>>>0?1:0),Ce.high=pe,Ce.low=K}var Cn=Oe&Ke^~Oe&l,Vr=je&F^~je&d,Gr=Ae&Me^Ae&_e^Me&_e,Bn=we&ye^we&Pe^ye&Pe,Dn=(Ae>>>28|we<<4)^(Ae<<30|we>>>2)^(Ae<<25|we>>>7),jr=(we>>>28|Ae<<4)^(we<<30|Ae>>>2)^(we<<25|Ae>>>7),Sn=(Oe>>>14|je<<18)^(Oe>>>18|je<<14)^(Oe<<23|je>>>9),Fn=(je>>>14|Oe<<18)^(je>>>18|Oe<<14)^(je<<23|Oe>>>9),Kr=x[W],Rn=Kr.high,Yr=Kr.low,ft=T+Fn,bt=y+Sn+(ft>>>0<T>>>0?1:0),ft=ft+Vr,bt=bt+Cn+(ft>>>0<Vr>>>0?1:0),ft=ft+Yr,bt=bt+Rn+(ft>>>0<Yr>>>0?1:0),ft=ft+K,bt=bt+pe+(ft>>>0<K>>>0?1:0),Er=jr+Bn,In=Dn+Gr+(Er>>>0<jr>>>0?1:0);y=l,T=d,l=Ke,d=F,Ke=Oe,F=je,je=Ve+ft|0,Oe=Ge+bt+(je>>>0<Ve>>>0?1:0)|0,Ge=_e,Ve=Pe,_e=Me,Pe=ye,Me=Ae,ye=we,we=ft+Er|0,Ae=bt+In+(we>>>0<ft>>>0?1:0)|0}P=R.low=P+we,R.high=Q+Ae+(P>>>0<we>>>0?1:0),V=w.low=V+ye,w.high=k+Me+(V>>>0<ye>>>0?1:0),ee=_.low=ee+Pe,_.high=X+_e+(ee>>>0<Pe>>>0?1:0),Z=B.low=Z+Ve,B.high=Y+Ge+(Z>>>0<Ve>>>0?1:0),ie=D.low=ie+je,D.high=oe+Oe+(ie>>>0<je>>>0?1:0),fe=O.low=fe+F,O.high=he+Ke+(fe>>>0<F>>>0?1:0),j=L.low=j+d,L.high=H+l+(j>>>0<d>>>0?1:0),J=z.low=J+T,z.high=re+y+(J>>>0<T>>>0?1:0)},_doFinalize:function(){var m=this._data,E=m.words,A=this._nDataBytes*8,R=m.sigBytes*8;E[R>>>5]|=128<<24-R%32,E[(R+128>>>10<<5)+30]=Math.floor(A/4294967296),E[(R+128>>>10<<5)+31]=A,m.sigBytes=E.length*4,this._process();var w=this._hash.toX32();return w},clone:function(){var m=o.clone.call(this);return m._hash=this._hash.clone(),m},blockSize:1024/32});n.SHA512=o._createHelper(v),n.HmacSHA512=o._createHmacHelper(v)}(),r.SHA512})}(Mo)),Mo.exports}var Uo={exports:{}},Xs;function h1(){return Xs||(Xs=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ci(),Ys())})(ve,function(r){return function(){var n=r,i=n.x64,o=i.Word,s=i.WordArray,a=n.algo,u=a.SHA512,c=a.SHA384=u.extend({_doReset:function(){this._hash=new s.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 f=u._doFinalize.call(this);return f.sigBytes-=16,f}});n.SHA384=u._createHelper(c),n.HmacSHA384=u._createHmacHelper(c)}(),r.SHA384})}(Uo)),Uo.exports}var $o={exports:{}},Js;function d1(){return Js||(Js=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ci())})(ve,function(r){return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,u=i.x64,c=u.Word,f=i.algo,x=[],h=[],v=[];(function(){for(var A=1,R=0,w=0;w<24;w++){x[A+5*R]=(w+1)*(w+2)/2%64;var _=R%5,B=(2*A+3*R)%5;A=_,R=B}for(var A=0;A<5;A++)for(var R=0;R<5;R++)h[A+5*R]=R+(2*A+3*R)%5*5;for(var D=1,O=0;O<24;O++){for(var L=0,z=0,Q=0;Q<7;Q++){if(D&1){var P=(1<<Q)-1;P<32?z^=1<<P:L^=1<<P-32}D&128?D=D<<1^113:D<<=1}v[O]=c.create(L,z)}})();var m=[];(function(){for(var A=0;A<25;A++)m[A]=c.create()})();var E=f.SHA3=a.extend({cfg:a.cfg.extend({outputLength:512}),_doReset:function(){for(var A=this._state=[],R=0;R<25;R++)A[R]=new c.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(A,R){for(var w=this._state,_=this.blockSize/2,B=0;B<_;B++){var D=A[R+2*B],O=A[R+2*B+1];D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360,O=(O<<8|O>>>24)&16711935|(O<<24|O>>>8)&4278255360;var L=w[B];L.high^=O,L.low^=D}for(var z=0;z<24;z++){for(var Q=0;Q<5;Q++){for(var P=0,k=0,V=0;V<5;V++){var L=w[Q+5*V];P^=L.high,k^=L.low}var X=m[Q];X.high=P,X.low=k}for(var Q=0;Q<5;Q++)for(var ee=m[(Q+4)%5],Y=m[(Q+1)%5],Z=Y.high,oe=Y.low,P=ee.high^(Z<<1|oe>>>31),k=ee.low^(oe<<1|Z>>>31),V=0;V<5;V++){var L=w[Q+5*V];L.high^=P,L.low^=k}for(var ie=1;ie<25;ie++){var P,k,L=w[ie],he=L.high,fe=L.low,H=x[ie];H<32?(P=he<<H|fe>>>32-H,k=fe<<H|he>>>32-H):(P=fe<<H-32|he>>>64-H,k=he<<H-32|fe>>>64-H);var j=m[h[ie]];j.high=P,j.low=k}var re=m[0],J=w[0];re.high=J.high,re.low=J.low;for(var Q=0;Q<5;Q++)for(var V=0;V<5;V++){var ie=Q+5*V,L=w[ie],Ae=m[ie],we=m[(Q+1)%5+5*V],Me=m[(Q+2)%5+5*V];L.high=Ae.high^~we.high&Me.high,L.low=Ae.low^~we.low&Me.low}var L=w[0],ye=v[z];L.high^=ye.high,L.low^=ye.low}},_doFinalize:function(){var A=this._data,R=A.words;this._nDataBytes*8;var w=A.sigBytes*8,_=this.blockSize*32;R[w>>>5]|=1<<24-w%32,R[(n.ceil((w+1)/_)*_>>>5)-1]|=128,A.sigBytes=R.length*4,this._process();for(var B=this._state,D=this.cfg.outputLength/8,O=D/8,L=[],z=0;z<O;z++){var Q=B[z],P=Q.high,k=Q.low;P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,k=(k<<8|k>>>24)&16711935|(k<<24|k>>>8)&4278255360,L.push(k),L.push(P)}return new s.init(L,D)},clone:function(){for(var A=a.clone.call(this),R=A._state=this._state.slice(0),w=0;w<25;w++)R[w]=R[w].clone();return A}});i.SHA3=a._createHelper(E),i.HmacSHA3=a._createHmacHelper(E)}(Math),r.SHA3})}($o)),$o.exports}var Ho={exports:{}},Qs;function p1(){return Qs||(Qs=1,function(t,e){(function(r,n){t.exports=n(Ne())})(ve,function(r){/** @preserve
|
|
18
18
|
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
19
19
|
|
|
20
20
|
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
@@ -23,34 +23,34 @@
|
|
|
23
23
|
- 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.
|
|
24
24
|
|
|
25
25
|
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.
|
|
26
|
-
*/return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,h=i.algo,c=s.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]),f=s.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]),x=s.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]),l=s.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]),m=s.create([0,1518500249,1859775393,2400959708,2840853838]),v=s.create([1352829926,1548603684,1836072691,2053994217,0]),E=h.RIPEMD160=a.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(O,L){for(var H=0;H<16;H++){var Z=L+H,P=O[Z];O[Z]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}var k=this._hash.words,V=m.words,X=v.words,te=c.words,Y=f.words,Q=x.words,oe=l.words,ie,he,fe,z,j,re,J,Ee,we,Me;re=ie=k[0],J=he=k[1],Ee=fe=k[2],we=z=k[3],Me=j=k[4];for(var ve,H=0;H<80;H+=1)ve=ie+O[L+te[H]]|0,H<16?ve+=A(he,fe,z)+V[0]:H<32?ve+=R(he,fe,z)+V[1]:H<48?ve+=w(he,fe,z)+V[2]:H<64?ve+=_(he,fe,z)+V[3]:ve+=D(he,fe,z)+V[4],ve=ve|0,ve=C(ve,Q[H]),ve=ve+j|0,ie=j,j=z,z=C(fe,10),fe=he,he=ve,ve=re+O[L+Y[H]]|0,H<16?ve+=D(J,Ee,we)+X[0]:H<32?ve+=_(J,Ee,we)+X[1]:H<48?ve+=w(J,Ee,we)+X[2]:H<64?ve+=R(J,Ee,we)+X[3]:ve+=A(J,Ee,we)+X[4],ve=ve|0,ve=C(ve,oe[H]),ve=ve+Me|0,re=Me,Me=we,we=C(Ee,10),Ee=J,J=ve;ve=k[1]+fe+we|0,k[1]=k[2]+z+Me|0,k[2]=k[3]+j+re|0,k[3]=k[4]+ie+J|0,k[4]=k[0]+he+Ee|0,k[0]=ve},_doFinalize:function(){var O=this._data,L=O.words,H=this._nDataBytes*8,Z=O.sigBytes*8;L[Z>>>5]|=128<<24-Z%32,L[(Z+64>>>9<<4)+14]=(H<<8|H>>>24)&16711935|(H<<24|H>>>8)&4278255360,O.sigBytes=(L.length+1)*4,this._process();for(var P=this._hash,k=P.words,V=0;V<5;V++){var X=k[V];k[V]=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360}return P},clone:function(){var O=a.clone.call(this);return O._hash=this._hash.clone(),O}});function A(O,L,H){return O^L^H}function R(O,L,H){return O&L|~O&H}function w(O,L,H){return(O|~L)^H}function _(O,L,H){return O&H|L&~H}function D(O,L,H){return O^(L|~H)}function C(O,L){return O<<L|O>>>32-L}i.RIPEMD160=a._createHelper(E),i.HmacRIPEMD160=a._createHmacHelper(E)}(),r.RIPEMD160})}(Ho)),Ho.exports}var zo={exports:{}},ec;function qo(){return ec||(ec=1,function(t,e){(function(r,n){t.exports=n(Le())})(ye,function(r){(function(){var n=r,i=n.lib,o=i.Base,s=n.enc,a=s.Utf8,h=n.algo;h.HMAC=o.extend({init:function(c,f){c=this._hasher=new c.init,typeof f=="string"&&(f=a.parse(f));var x=c.blockSize,l=x*4;f.sigBytes>l&&(f=c.finalize(f)),f.clamp();for(var m=this._oKey=f.clone(),v=this._iKey=f.clone(),E=m.words,A=v.words,R=0;R<x;R++)E[R]^=1549556828,A[R]^=909522486;m.sigBytes=v.sigBytes=l,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var f=this._hasher,x=f.finalize(c);f.reset();var l=f.finalize(this._oKey.clone().concat(x));return l}})})()})}(zo)),zo.exports}var Wo={exports:{}},tc;function x1(){return tc||(tc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),Lo(),qo())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,a=n.algo,h=a.SHA256,c=a.HMAC,f=a.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:25e4}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,l){for(var m=this.cfg,v=c.create(m.hasher,x),E=s.create(),A=s.create([1]),R=E.words,w=A.words,_=m.keySize,D=m.iterations;R.length<_;){var C=v.update(l).finalize(A);v.reset();for(var O=C.words,L=O.length,H=C,Z=1;Z<D;Z++){H=v.finalize(H),v.reset();for(var P=H.words,k=0;k<L;k++)O[k]^=P[k]}E.concat(C),w[0]++}return E.sigBytes=_*4,E}});n.PBKDF2=function(x,l,m){return f.create(m).compute(x,l)}}(),r.PBKDF2})}(Wo)),Wo.exports}var Vo={exports:{}},rc;function Zt(){return rc||(rc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),Gs(),qo())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,a=n.algo,h=a.MD5,c=a.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:h,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,x){for(var l,m=this.cfg,v=m.hasher.create(),E=s.create(),A=E.words,R=m.keySize,w=m.iterations;A.length<R;){l&&v.update(l),l=v.update(f).finalize(x),v.reset();for(var _=1;_<w;_++)l=v.finalize(l),v.reset();E.concat(l)}return E.sigBytes=R*4,E}});n.EvpKDF=function(f,x,l){return c.create(l).compute(f,x)}}(),r.EvpKDF})}(Vo)),Vo.exports}var Go={exports:{}},nc;function ot(){return nc||(nc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),Zt())})(ye,function(r){r.lib.Cipher||function(n){var i=r,o=i.lib,s=o.Base,a=o.WordArray,h=o.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var f=c.Base64,x=i.algo,l=x.EvpKDF,m=o.Cipher=h.extend({cfg:s.extend(),createEncryptor:function(P,k){return this.create(this._ENC_XFORM_MODE,P,k)},createDecryptor:function(P,k){return this.create(this._DEC_XFORM_MODE,P,k)},init:function(P,k,V){this.cfg=this.cfg.extend(V),this._xformMode=P,this._key=k,this.reset()},reset:function(){h.reset.call(this),this._doReset()},process:function(P){return this._append(P),this._process()},finalize:function(P){P&&this._append(P);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function P(k){return typeof k=="string"?Z:O}return function(k){return{encrypt:function(V,X,te){return P(X).encrypt(k,V,X,te)},decrypt:function(V,X,te){return P(X).decrypt(k,V,X,te)}}}}()});o.StreamCipher=m.extend({_doFinalize:function(){var P=this._process(!0);return P},blockSize:1});var v=i.mode={},E=o.BlockCipherMode=s.extend({createEncryptor:function(P,k){return this.Encryptor.create(P,k)},createDecryptor:function(P,k){return this.Decryptor.create(P,k)},init:function(P,k){this._cipher=P,this._iv=k}}),A=v.CBC=function(){var P=E.extend();P.Encryptor=P.extend({processBlock:function(V,X){var te=this._cipher,Y=te.blockSize;k.call(this,V,X,Y),te.encryptBlock(V,X),this._prevBlock=V.slice(X,X+Y)}}),P.Decryptor=P.extend({processBlock:function(V,X){var te=this._cipher,Y=te.blockSize,Q=V.slice(X,X+Y);te.decryptBlock(V,X),k.call(this,V,X,Y),this._prevBlock=Q}});function k(V,X,te){var Y,Q=this._iv;Q?(Y=Q,this._iv=n):Y=this._prevBlock;for(var oe=0;oe<te;oe++)V[X+oe]^=Y[oe]}return P}(),R=i.pad={},w=R.Pkcs7={pad:function(P,k){for(var V=k*4,X=V-P.sigBytes%V,te=X<<24|X<<16|X<<8|X,Y=[],Q=0;Q<X;Q+=4)Y.push(te);var oe=a.create(Y,X);P.concat(oe)},unpad:function(P){var k=P.words[P.sigBytes-1>>>2]&255;P.sigBytes-=k}};o.BlockCipher=m.extend({cfg:m.cfg.extend({mode:A,padding:w}),reset:function(){var P;m.reset.call(this);var k=this.cfg,V=k.iv,X=k.mode;this._xformMode==this._ENC_XFORM_MODE?P=X.createEncryptor:(P=X.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==P?this._mode.init(this,V&&V.words):(this._mode=P.call(X,this,V&&V.words),this._mode.__creator=P)},_doProcessBlock:function(P,k){this._mode.processBlock(P,k)},_doFinalize:function(){var P,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),P=this._process(!0)):(P=this._process(!0),k.unpad(P)),P},blockSize:128/32});var _=o.CipherParams=s.extend({init:function(P){this.mixIn(P)},toString:function(P){return(P||this.formatter).stringify(this)}}),D=i.format={},C=D.OpenSSL={stringify:function(P){var k,V=P.ciphertext,X=P.salt;return X?k=a.create([1398893684,1701076831]).concat(X).concat(V):k=V,k.toString(f)},parse:function(P){var k,V=f.parse(P),X=V.words;return X[0]==1398893684&&X[1]==1701076831&&(k=a.create(X.slice(2,4)),X.splice(0,4),V.sigBytes-=16),_.create({ciphertext:V,salt:k})}},O=o.SerializableCipher=s.extend({cfg:s.extend({format:C}),encrypt:function(P,k,V,X){X=this.cfg.extend(X);var te=P.createEncryptor(V,X),Y=te.finalize(k),Q=te.cfg;return _.create({ciphertext:Y,key:V,iv:Q.iv,algorithm:P,mode:Q.mode,padding:Q.padding,blockSize:P.blockSize,formatter:X.format})},decrypt:function(P,k,V,X){X=this.cfg.extend(X),k=this._parse(k,X.format);var te=P.createDecryptor(V,X).finalize(k.ciphertext);return te},_parse:function(P,k){return typeof P=="string"?k.parse(P,this):P}}),L=i.kdf={},H=L.OpenSSL={execute:function(P,k,V,X,te){if(X||(X=a.random(64/8)),te)var Y=l.create({keySize:k+V,hasher:te}).compute(P,X);else var Y=l.create({keySize:k+V}).compute(P,X);var Q=a.create(Y.words.slice(k),V*4);return Y.sigBytes=k*4,_.create({key:Y,iv:Q,salt:X})}},Z=o.PasswordBasedCipher=O.extend({cfg:O.cfg.extend({kdf:H}),encrypt:function(P,k,V,X){X=this.cfg.extend(X);var te=X.kdf.execute(V,P.keySize,P.ivSize,X.salt,X.hasher);X.iv=te.iv;var Y=O.encrypt.call(this,P,k,te.key,X);return Y.mixIn(te),Y},decrypt:function(P,k,V,X){X=this.cfg.extend(X),k=this._parse(k,X.format);var te=X.kdf.execute(V,P.keySize,P.ivSize,k.salt,X.hasher);X.iv=te.iv;var Y=O.decrypt.call(this,P,k,te.key,X);return Y}})}()})}(Go)),Go.exports}var jo={exports:{}},ic;function y1(){return ic||(ic=1,function(t,e){(function(r,n,i){t.exports=n(Le(),ot())})(ye,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(o,s){var a=this._cipher,h=a.blockSize;i.call(this,o,s,h,a),this._prevBlock=o.slice(s,s+h)}}),n.Decryptor=n.extend({processBlock:function(o,s){var a=this._cipher,h=a.blockSize,c=o.slice(s,s+h);i.call(this,o,s,h,a),this._prevBlock=c}});function i(o,s,a,h){var c,f=this._iv;f?(c=f.slice(0),this._iv=void 0):c=this._prevBlock,h.encryptBlock(c,0);for(var x=0;x<a;x++)o[s+x]^=c[x]}return n}(),r.mode.CFB})}(jo)),jo.exports}var Ko={exports:{}},oc;function v1(){return oc||(oc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),ot())})(ye,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,s){var a=this._cipher,h=a.blockSize,c=this._iv,f=this._counter;c&&(f=this._counter=c.slice(0),this._iv=void 0);var x=f.slice(0);a.encryptBlock(x,0),f[h-1]=f[h-1]+1|0;for(var l=0;l<h;l++)o[s+l]^=x[l]}});return n.Decryptor=i,n}(),r.mode.CTR})}(Ko)),Ko.exports}var Yo={exports:{}},ac;function m1(){return ac||(ac=1,function(t,e){(function(r,n,i){t.exports=n(Le(),ot())})(ye,function(r){/** @preserve
|
|
26
|
+
*/return function(n){var i=r,o=i.lib,s=o.WordArray,a=o.Hasher,u=i.algo,c=s.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]),f=s.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]),x=s.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]),h=s.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]),v=s.create([0,1518500249,1859775393,2400959708,2840853838]),m=s.create([1352829926,1548603684,1836072691,2053994217,0]),E=u.RIPEMD160=a.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(O,L){for(var z=0;z<16;z++){var Q=L+z,P=O[Q];O[Q]=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360}var k=this._hash.words,V=v.words,X=m.words,ee=c.words,Y=f.words,Z=x.words,oe=h.words,ie,he,fe,H,j,re,J,Ae,we,Me;re=ie=k[0],J=he=k[1],Ae=fe=k[2],we=H=k[3],Me=j=k[4];for(var ye,z=0;z<80;z+=1)ye=ie+O[L+ee[z]]|0,z<16?ye+=A(he,fe,H)+V[0]:z<32?ye+=R(he,fe,H)+V[1]:z<48?ye+=w(he,fe,H)+V[2]:z<64?ye+=_(he,fe,H)+V[3]:ye+=B(he,fe,H)+V[4],ye=ye|0,ye=D(ye,Z[z]),ye=ye+j|0,ie=j,j=H,H=D(fe,10),fe=he,he=ye,ye=re+O[L+Y[z]]|0,z<16?ye+=B(J,Ae,we)+X[0]:z<32?ye+=_(J,Ae,we)+X[1]:z<48?ye+=w(J,Ae,we)+X[2]:z<64?ye+=R(J,Ae,we)+X[3]:ye+=A(J,Ae,we)+X[4],ye=ye|0,ye=D(ye,oe[z]),ye=ye+Me|0,re=Me,Me=we,we=D(Ae,10),Ae=J,J=ye;ye=k[1]+fe+we|0,k[1]=k[2]+H+Me|0,k[2]=k[3]+j+re|0,k[3]=k[4]+ie+J|0,k[4]=k[0]+he+Ae|0,k[0]=ye},_doFinalize:function(){var O=this._data,L=O.words,z=this._nDataBytes*8,Q=O.sigBytes*8;L[Q>>>5]|=128<<24-Q%32,L[(Q+64>>>9<<4)+14]=(z<<8|z>>>24)&16711935|(z<<24|z>>>8)&4278255360,O.sigBytes=(L.length+1)*4,this._process();for(var P=this._hash,k=P.words,V=0;V<5;V++){var X=k[V];k[V]=(X<<8|X>>>24)&16711935|(X<<24|X>>>8)&4278255360}return P},clone:function(){var O=a.clone.call(this);return O._hash=this._hash.clone(),O}});function A(O,L,z){return O^L^z}function R(O,L,z){return O&L|~O&z}function w(O,L,z){return(O|~L)^z}function _(O,L,z){return O&z|L&~z}function B(O,L,z){return O^(L|~z)}function D(O,L){return O<<L|O>>>32-L}i.RIPEMD160=a._createHelper(E),i.HmacRIPEMD160=a._createHmacHelper(E)}(),r.RIPEMD160})}(Ho)),Ho.exports}var zo={exports:{}},Zs;function qo(){return Zs||(Zs=1,function(t,e){(function(r,n){t.exports=n(Ne())})(ve,function(r){(function(){var n=r,i=n.lib,o=i.Base,s=n.enc,a=s.Utf8,u=n.algo;u.HMAC=o.extend({init:function(c,f){c=this._hasher=new c.init,typeof f=="string"&&(f=a.parse(f));var x=c.blockSize,h=x*4;f.sigBytes>h&&(f=c.finalize(f)),f.clamp();for(var v=this._oKey=f.clone(),m=this._iKey=f.clone(),E=v.words,A=m.words,R=0;R<x;R++)E[R]^=1549556828,A[R]^=909522486;v.sigBytes=m.sigBytes=h,this.reset()},reset:function(){var c=this._hasher;c.reset(),c.update(this._iKey)},update:function(c){return this._hasher.update(c),this},finalize:function(c){var f=this._hasher,x=f.finalize(c);f.reset();var h=f.finalize(this._oKey.clone().concat(x));return h}})})()})}(zo)),zo.exports}var Wo={exports:{}},ec;function x1(){return ec||(ec=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),Lo(),qo())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,a=n.algo,u=a.SHA256,c=a.HMAC,f=a.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:u,iterations:25e4}),init:function(x){this.cfg=this.cfg.extend(x)},compute:function(x,h){for(var v=this.cfg,m=c.create(v.hasher,x),E=s.create(),A=s.create([1]),R=E.words,w=A.words,_=v.keySize,B=v.iterations;R.length<_;){var D=m.update(h).finalize(A);m.reset();for(var O=D.words,L=O.length,z=D,Q=1;Q<B;Q++){z=m.finalize(z),m.reset();for(var P=z.words,k=0;k<L;k++)O[k]^=P[k]}E.concat(D),w[0]++}return E.sigBytes=_*4,E}});n.PBKDF2=function(x,h,v){return f.create(v).compute(x,h)}}(),r.PBKDF2})}(Wo)),Wo.exports}var Vo={exports:{}},tc;function Zt(){return tc||(tc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),Vs(),qo())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.Base,s=i.WordArray,a=n.algo,u=a.MD5,c=a.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:u,iterations:1}),init:function(f){this.cfg=this.cfg.extend(f)},compute:function(f,x){for(var h,v=this.cfg,m=v.hasher.create(),E=s.create(),A=E.words,R=v.keySize,w=v.iterations;A.length<R;){h&&m.update(h),h=m.update(f).finalize(x),m.reset();for(var _=1;_<w;_++)h=m.finalize(h),m.reset();E.concat(h)}return E.sigBytes=R*4,E}});n.EvpKDF=function(f,x,h){return c.create(h).compute(f,x)}}(),r.EvpKDF})}(Vo)),Vo.exports}var Go={exports:{}},rc;function ot(){return rc||(rc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),Zt())})(ve,function(r){r.lib.Cipher||function(n){var i=r,o=i.lib,s=o.Base,a=o.WordArray,u=o.BufferedBlockAlgorithm,c=i.enc;c.Utf8;var f=c.Base64,x=i.algo,h=x.EvpKDF,v=o.Cipher=u.extend({cfg:s.extend(),createEncryptor:function(P,k){return this.create(this._ENC_XFORM_MODE,P,k)},createDecryptor:function(P,k){return this.create(this._DEC_XFORM_MODE,P,k)},init:function(P,k,V){this.cfg=this.cfg.extend(V),this._xformMode=P,this._key=k,this.reset()},reset:function(){u.reset.call(this),this._doReset()},process:function(P){return this._append(P),this._process()},finalize:function(P){P&&this._append(P);var k=this._doFinalize();return k},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function P(k){return typeof k=="string"?Q:O}return function(k){return{encrypt:function(V,X,ee){return P(X).encrypt(k,V,X,ee)},decrypt:function(V,X,ee){return P(X).decrypt(k,V,X,ee)}}}}()});o.StreamCipher=v.extend({_doFinalize:function(){var P=this._process(!0);return P},blockSize:1});var m=i.mode={},E=o.BlockCipherMode=s.extend({createEncryptor:function(P,k){return this.Encryptor.create(P,k)},createDecryptor:function(P,k){return this.Decryptor.create(P,k)},init:function(P,k){this._cipher=P,this._iv=k}}),A=m.CBC=function(){var P=E.extend();P.Encryptor=P.extend({processBlock:function(V,X){var ee=this._cipher,Y=ee.blockSize;k.call(this,V,X,Y),ee.encryptBlock(V,X),this._prevBlock=V.slice(X,X+Y)}}),P.Decryptor=P.extend({processBlock:function(V,X){var ee=this._cipher,Y=ee.blockSize,Z=V.slice(X,X+Y);ee.decryptBlock(V,X),k.call(this,V,X,Y),this._prevBlock=Z}});function k(V,X,ee){var Y,Z=this._iv;Z?(Y=Z,this._iv=n):Y=this._prevBlock;for(var oe=0;oe<ee;oe++)V[X+oe]^=Y[oe]}return P}(),R=i.pad={},w=R.Pkcs7={pad:function(P,k){for(var V=k*4,X=V-P.sigBytes%V,ee=X<<24|X<<16|X<<8|X,Y=[],Z=0;Z<X;Z+=4)Y.push(ee);var oe=a.create(Y,X);P.concat(oe)},unpad:function(P){var k=P.words[P.sigBytes-1>>>2]&255;P.sigBytes-=k}};o.BlockCipher=v.extend({cfg:v.cfg.extend({mode:A,padding:w}),reset:function(){var P;v.reset.call(this);var k=this.cfg,V=k.iv,X=k.mode;this._xformMode==this._ENC_XFORM_MODE?P=X.createEncryptor:(P=X.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==P?this._mode.init(this,V&&V.words):(this._mode=P.call(X,this,V&&V.words),this._mode.__creator=P)},_doProcessBlock:function(P,k){this._mode.processBlock(P,k)},_doFinalize:function(){var P,k=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(k.pad(this._data,this.blockSize),P=this._process(!0)):(P=this._process(!0),k.unpad(P)),P},blockSize:128/32});var _=o.CipherParams=s.extend({init:function(P){this.mixIn(P)},toString:function(P){return(P||this.formatter).stringify(this)}}),B=i.format={},D=B.OpenSSL={stringify:function(P){var k,V=P.ciphertext,X=P.salt;return X?k=a.create([1398893684,1701076831]).concat(X).concat(V):k=V,k.toString(f)},parse:function(P){var k,V=f.parse(P),X=V.words;return X[0]==1398893684&&X[1]==1701076831&&(k=a.create(X.slice(2,4)),X.splice(0,4),V.sigBytes-=16),_.create({ciphertext:V,salt:k})}},O=o.SerializableCipher=s.extend({cfg:s.extend({format:D}),encrypt:function(P,k,V,X){X=this.cfg.extend(X);var ee=P.createEncryptor(V,X),Y=ee.finalize(k),Z=ee.cfg;return _.create({ciphertext:Y,key:V,iv:Z.iv,algorithm:P,mode:Z.mode,padding:Z.padding,blockSize:P.blockSize,formatter:X.format})},decrypt:function(P,k,V,X){X=this.cfg.extend(X),k=this._parse(k,X.format);var ee=P.createDecryptor(V,X).finalize(k.ciphertext);return ee},_parse:function(P,k){return typeof P=="string"?k.parse(P,this):P}}),L=i.kdf={},z=L.OpenSSL={execute:function(P,k,V,X,ee){if(X||(X=a.random(64/8)),ee)var Y=h.create({keySize:k+V,hasher:ee}).compute(P,X);else var Y=h.create({keySize:k+V}).compute(P,X);var Z=a.create(Y.words.slice(k),V*4);return Y.sigBytes=k*4,_.create({key:Y,iv:Z,salt:X})}},Q=o.PasswordBasedCipher=O.extend({cfg:O.cfg.extend({kdf:z}),encrypt:function(P,k,V,X){X=this.cfg.extend(X);var ee=X.kdf.execute(V,P.keySize,P.ivSize,X.salt,X.hasher);X.iv=ee.iv;var Y=O.encrypt.call(this,P,k,ee.key,X);return Y.mixIn(ee),Y},decrypt:function(P,k,V,X){X=this.cfg.extend(X),k=this._parse(k,X.format);var ee=X.kdf.execute(V,P.keySize,P.ivSize,k.salt,X.hasher);X.iv=ee.iv;var Y=O.decrypt.call(this,P,k,ee.key,X);return Y}})}()})}(Go)),Go.exports}var jo={exports:{}},nc;function y1(){return nc||(nc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ot())})(ve,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(o,s){var a=this._cipher,u=a.blockSize;i.call(this,o,s,u,a),this._prevBlock=o.slice(s,s+u)}}),n.Decryptor=n.extend({processBlock:function(o,s){var a=this._cipher,u=a.blockSize,c=o.slice(s,s+u);i.call(this,o,s,u,a),this._prevBlock=c}});function i(o,s,a,u){var c,f=this._iv;f?(c=f.slice(0),this._iv=void 0):c=this._prevBlock,u.encryptBlock(c,0);for(var x=0;x<a;x++)o[s+x]^=c[x]}return n}(),r.mode.CFB})}(jo)),jo.exports}var Ko={exports:{}},ic;function v1(){return ic||(ic=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ot())})(ve,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,s){var a=this._cipher,u=a.blockSize,c=this._iv,f=this._counter;c&&(f=this._counter=c.slice(0),this._iv=void 0);var x=f.slice(0);a.encryptBlock(x,0),f[u-1]=f[u-1]+1|0;for(var h=0;h<u;h++)o[s+h]^=x[h]}});return n.Decryptor=i,n}(),r.mode.CTR})}(Ko)),Ko.exports}var Yo={exports:{}},oc;function m1(){return oc||(oc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ot())})(ve,function(r){/** @preserve
|
|
27
27
|
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
28
28
|
* derived from CryptoJS.mode.CTR
|
|
29
29
|
* Jan Hruby jhruby.web@gmail.com
|
|
30
|
-
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function i(a){if((a>>24&255)===255){var h=a>>16&255,c=a>>8&255,f=a&255;h===255?(h=0,c===255?(c=0,f===255?f=0:++f):++c):++h,a=0,a+=h<<16,a+=c<<8,a+=f}else a+=1<<24;return a}function o(a){return(a[0]=i(a[0]))===0&&(a[1]=i(a[1])),a}var s=n.Encryptor=n.extend({processBlock:function(a,h){var c=this._cipher,f=c.blockSize,x=this._iv,l=this._counter;x&&(l=this._counter=x.slice(0),this._iv=void 0),o(l);var m=l.slice(0);c.encryptBlock(m,0);for(var v=0;v<f;v++)a[h+v]^=m[v]}});return n.Decryptor=s,n}(),r.mode.CTRGladman})}(Yo)),Yo.exports}var Xo={exports:{}},sc;function g1(){return sc||(sc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),ot())})(ye,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,s){var a=this._cipher,h=a.blockSize,c=this._iv,f=this._keystream;c&&(f=this._keystream=c.slice(0),this._iv=void 0),a.encryptBlock(f,0);for(var x=0;x<h;x++)o[s+x]^=f[x]}});return n.Decryptor=i,n}(),r.mode.OFB})}(Xo)),Xo.exports}var Jo={exports:{}},cc;function E1(){return cc||(cc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),ot())})(ye,function(r){return r.mode.ECB=function(){var n=r.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}(),r.mode.ECB})}(Jo)),Jo.exports}var Qo={exports:{}},fc;function A1(){return fc||(fc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),ot())})(ye,function(r){return r.pad.AnsiX923={pad:function(n,i){var o=n.sigBytes,s=i*4,a=s-o%s,h=o+a-1;n.clamp(),n.words[h>>>2]|=a<<24-h%4*8,n.sigBytes+=a},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Ansix923})}(Qo)),Qo.exports}var Zo={exports:{}},uc;function w1(){return uc||(uc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),ot())})(ye,function(r){return r.pad.Iso10126={pad:function(n,i){var o=i*4,s=o-n.sigBytes%o;n.concat(r.lib.WordArray.random(s-1)).concat(r.lib.WordArray.create([s<<24],1))},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Iso10126})}(Zo)),Zo.exports}var e0={exports:{}},lc;function _1(){return lc||(lc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),ot())})(ye,function(r){return r.pad.Iso97971={pad:function(n,i){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,i)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(e0)),e0.exports}var t0={exports:{}},hc;function b1(){return hc||(hc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),ot())})(ye,function(r){return r.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}}},r.pad.ZeroPadding})}(t0)),t0.exports}var r0={exports:{}},dc;function C1(){return dc||(dc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),ot())})(ye,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(r0)),r0.exports}var n0={exports:{}},pc;function B1(){return pc||(pc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),ot())})(ye,function(r){return function(n){var i=r,o=i.lib,s=o.CipherParams,a=i.enc,h=a.Hex,c=i.format;c.Hex={stringify:function(f){return f.ciphertext.toString(h)},parse:function(f){var x=h.parse(f);return s.create({ciphertext:x})}}}(),r.format.Hex})}(n0)),n0.exports}var i0={exports:{}},xc;function D1(){return xc||(xc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),dr(),pr(),Zt(),ot())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo,a=[],h=[],c=[],f=[],x=[],l=[],m=[],v=[],E=[],A=[];(function(){for(var _=[],D=0;D<256;D++)D<128?_[D]=D<<1:_[D]=D<<1^283;for(var C=0,O=0,D=0;D<256;D++){var L=O^O<<1^O<<2^O<<3^O<<4;L=L>>>8^L&255^99,a[C]=L,h[L]=C;var H=_[C],Z=_[H],P=_[Z],k=_[L]*257^L*16843008;c[C]=k<<24|k>>>8,f[C]=k<<16|k>>>16,x[C]=k<<8|k>>>24,l[C]=k;var k=P*16843009^Z*65537^H*257^C*16843008;m[L]=k<<24|k>>>8,v[L]=k<<16|k>>>16,E[L]=k<<8|k>>>24,A[L]=k,C?(C=H^_[_[_[P^H]]],O^=_[_[O]]):C=O=1}})();var R=[0,1,2,4,8,16,32,64,128,27,54],w=s.AES=o.extend({_doReset:function(){var _;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var D=this._keyPriorReset=this._key,C=D.words,O=D.sigBytes/4,L=this._nRounds=O+6,H=(L+1)*4,Z=this._keySchedule=[],P=0;P<H;P++)P<O?Z[P]=C[P]:(_=Z[P-1],P%O?O>6&&P%O==4&&(_=a[_>>>24]<<24|a[_>>>16&255]<<16|a[_>>>8&255]<<8|a[_&255]):(_=_<<8|_>>>24,_=a[_>>>24]<<24|a[_>>>16&255]<<16|a[_>>>8&255]<<8|a[_&255],_^=R[P/O|0]<<24),Z[P]=Z[P-O]^_);for(var k=this._invKeySchedule=[],V=0;V<H;V++){var P=H-V;if(V%4)var _=Z[P];else var _=Z[P-4];V<4||P<=4?k[V]=_:k[V]=m[a[_>>>24]]^v[a[_>>>16&255]]^E[a[_>>>8&255]]^A[a[_&255]]}}},encryptBlock:function(_,D){this._doCryptBlock(_,D,this._keySchedule,c,f,x,l,a)},decryptBlock:function(_,D){var C=_[D+1];_[D+1]=_[D+3],_[D+3]=C,this._doCryptBlock(_,D,this._invKeySchedule,m,v,E,A,h);var C=_[D+1];_[D+1]=_[D+3],_[D+3]=C},_doCryptBlock:function(_,D,C,O,L,H,Z,P){for(var k=this._nRounds,V=_[D]^C[0],X=_[D+1]^C[1],te=_[D+2]^C[2],Y=_[D+3]^C[3],Q=4,oe=1;oe<k;oe++){var ie=O[V>>>24]^L[X>>>16&255]^H[te>>>8&255]^Z[Y&255]^C[Q++],he=O[X>>>24]^L[te>>>16&255]^H[Y>>>8&255]^Z[V&255]^C[Q++],fe=O[te>>>24]^L[Y>>>16&255]^H[V>>>8&255]^Z[X&255]^C[Q++],z=O[Y>>>24]^L[V>>>16&255]^H[X>>>8&255]^Z[te&255]^C[Q++];V=ie,X=he,te=fe,Y=z}var ie=(P[V>>>24]<<24|P[X>>>16&255]<<16|P[te>>>8&255]<<8|P[Y&255])^C[Q++],he=(P[X>>>24]<<24|P[te>>>16&255]<<16|P[Y>>>8&255]<<8|P[V&255])^C[Q++],fe=(P[te>>>24]<<24|P[Y>>>16&255]<<16|P[V>>>8&255]<<8|P[X&255])^C[Q++],z=(P[Y>>>24]<<24|P[V>>>16&255]<<16|P[X>>>8&255]<<8|P[te&255])^C[Q++];_[D]=ie,_[D+1]=he,_[D+2]=fe,_[D+3]=z},keySize:256/32});n.AES=o._createHelper(w)}(),r.AES})}(i0)),i0.exports}var o0={exports:{}},yc;function S1(){return yc||(yc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),dr(),pr(),Zt(),ot())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.BlockCipher,a=n.algo,h=[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],c=[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],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{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}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],m=a.DES=s.extend({_doReset:function(){for(var R=this._key,w=R.words,_=[],D=0;D<56;D++){var C=h[D]-1;_[D]=w[C>>>5]>>>31-C%32&1}for(var O=this._subKeys=[],L=0;L<16;L++){for(var H=O[L]=[],Z=f[L],D=0;D<24;D++)H[D/6|0]|=_[(c[D]-1+Z)%28]<<31-D%6,H[4+(D/6|0)]|=_[28+(c[D+24]-1+Z)%28]<<31-D%6;H[0]=H[0]<<1|H[0]>>>31;for(var D=1;D<7;D++)H[D]=H[D]>>>(D-1)*4+3;H[7]=H[7]<<5|H[7]>>>27}for(var P=this._invSubKeys=[],D=0;D<16;D++)P[D]=O[15-D]},encryptBlock:function(R,w){this._doCryptBlock(R,w,this._subKeys)},decryptBlock:function(R,w){this._doCryptBlock(R,w,this._invSubKeys)},_doCryptBlock:function(R,w,_){this._lBlock=R[w],this._rBlock=R[w+1],v.call(this,4,252645135),v.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),v.call(this,1,1431655765);for(var D=0;D<16;D++){for(var C=_[D],O=this._lBlock,L=this._rBlock,H=0,Z=0;Z<8;Z++)H|=x[Z][((L^C[Z])&l[Z])>>>0];this._lBlock=L,this._rBlock=O^H}var P=this._lBlock;this._lBlock=this._rBlock,this._rBlock=P,v.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),v.call(this,16,65535),v.call(this,4,252645135),R[w]=this._lBlock,R[w+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function v(R,w){var _=(this._lBlock>>>R^this._rBlock)&w;this._rBlock^=_,this._lBlock^=_<<R}function E(R,w){var _=(this._rBlock>>>R^this._lBlock)&w;this._lBlock^=_,this._rBlock^=_<<R}n.DES=s._createHelper(m);var A=a.TripleDES=s.extend({_doReset:function(){var R=this._key,w=R.words;if(w.length!==2&&w.length!==4&&w.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var _=w.slice(0,2),D=w.length<4?w.slice(0,2):w.slice(2,4),C=w.length<6?w.slice(0,2):w.slice(4,6);this._des1=m.createEncryptor(o.create(_)),this._des2=m.createEncryptor(o.create(D)),this._des3=m.createEncryptor(o.create(C))},encryptBlock:function(R,w){this._des1.encryptBlock(R,w),this._des2.decryptBlock(R,w),this._des3.encryptBlock(R,w)},decryptBlock:function(R,w){this._des3.decryptBlock(R,w),this._des2.encryptBlock(R,w),this._des1.decryptBlock(R,w)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=s._createHelper(A)}(),r.TripleDES})}(o0)),o0.exports}var a0={exports:{}},vc;function F1(){return vc||(vc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),dr(),pr(),Zt(),ot())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=s.RC4=o.extend({_doReset:function(){for(var f=this._key,x=f.words,l=f.sigBytes,m=this._S=[],v=0;v<256;v++)m[v]=v;for(var v=0,E=0;v<256;v++){var A=v%l,R=x[A>>>2]>>>24-A%4*8&255;E=(E+m[v]+R)%256;var w=m[v];m[v]=m[E],m[E]=w}this._i=this._j=0},_doProcessBlock:function(f,x){f[x]^=h.call(this)},keySize:256/32,ivSize:0});function h(){for(var f=this._S,x=this._i,l=this._j,m=0,v=0;v<4;v++){x=(x+1)%256,l=(l+f[x])%256;var E=f[x];f[x]=f[l],f[l]=E,m|=f[(f[x]+f[l])%256]<<24-v*8}return this._i=x,this._j=l,m}n.RC4=o._createHelper(a);var c=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)h.call(this)}});n.RC4Drop=o._createHelper(c)}(),r.RC4})}(a0)),a0.exports}var s0={exports:{}},mc;function R1(){return mc||(mc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),dr(),pr(),Zt(),ot())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=[],h=[],c=[],f=s.Rabbit=o.extend({_doReset:function(){for(var l=this._key.words,m=this.cfg.iv,v=0;v<4;v++)l[v]=(l[v]<<8|l[v]>>>24)&16711935|(l[v]<<24|l[v]>>>8)&4278255360;var E=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],A=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var v=0;v<4;v++)x.call(this);for(var v=0;v<8;v++)A[v]^=E[v+4&7];if(m){var R=m.words,w=R[0],_=R[1],D=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,C=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,O=D>>>16|C&4294901760,L=C<<16|D&65535;A[0]^=D,A[1]^=O,A[2]^=C,A[3]^=L,A[4]^=D,A[5]^=O,A[6]^=C,A[7]^=L;for(var v=0;v<4;v++)x.call(this)}},_doProcessBlock:function(l,m){var v=this._X;x.call(this),a[0]=v[0]^v[5]>>>16^v[3]<<16,a[1]=v[2]^v[7]>>>16^v[5]<<16,a[2]=v[4]^v[1]>>>16^v[7]<<16,a[3]=v[6]^v[3]>>>16^v[1]<<16;for(var E=0;E<4;E++)a[E]=(a[E]<<8|a[E]>>>24)&16711935|(a[E]<<24|a[E]>>>8)&4278255360,l[m+E]^=a[E]},blockSize:128/32,ivSize:64/32});function x(){for(var l=this._X,m=this._C,v=0;v<8;v++)h[v]=m[v];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<h[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<h[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<h[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<h[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<h[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<h[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<h[6]>>>0?1:0)|0,this._b=m[7]>>>0<h[7]>>>0?1:0;for(var v=0;v<8;v++){var E=l[v]+m[v],A=E&65535,R=E>>>16,w=((A*A>>>17)+A*R>>>15)+R*R,_=((E&4294901760)*E|0)+((E&65535)*E|0);c[v]=w^_}l[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,l[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,l[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,l[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,l[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,l[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,l[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,l[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.Rabbit=o._createHelper(f)}(),r.Rabbit})}(s0)),s0.exports}var c0={exports:{}},gc;function I1(){return gc||(gc=1,function(t,e){(function(r,n,i){t.exports=n(Le(),dr(),pr(),Zt(),ot())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=[],h=[],c=[],f=s.RabbitLegacy=o.extend({_doReset:function(){var l=this._key.words,m=this.cfg.iv,v=this._X=[l[0],l[3]<<16|l[2]>>>16,l[1],l[0]<<16|l[3]>>>16,l[2],l[1]<<16|l[0]>>>16,l[3],l[2]<<16|l[1]>>>16],E=this._C=[l[2]<<16|l[2]>>>16,l[0]&4294901760|l[1]&65535,l[3]<<16|l[3]>>>16,l[1]&4294901760|l[2]&65535,l[0]<<16|l[0]>>>16,l[2]&4294901760|l[3]&65535,l[1]<<16|l[1]>>>16,l[3]&4294901760|l[0]&65535];this._b=0;for(var A=0;A<4;A++)x.call(this);for(var A=0;A<8;A++)E[A]^=v[A+4&7];if(m){var R=m.words,w=R[0],_=R[1],D=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,C=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,O=D>>>16|C&4294901760,L=C<<16|D&65535;E[0]^=D,E[1]^=O,E[2]^=C,E[3]^=L,E[4]^=D,E[5]^=O,E[6]^=C,E[7]^=L;for(var A=0;A<4;A++)x.call(this)}},_doProcessBlock:function(l,m){var v=this._X;x.call(this),a[0]=v[0]^v[5]>>>16^v[3]<<16,a[1]=v[2]^v[7]>>>16^v[5]<<16,a[2]=v[4]^v[1]>>>16^v[7]<<16,a[3]=v[6]^v[3]>>>16^v[1]<<16;for(var E=0;E<4;E++)a[E]=(a[E]<<8|a[E]>>>24)&16711935|(a[E]<<24|a[E]>>>8)&4278255360,l[m+E]^=a[E]},blockSize:128/32,ivSize:64/32});function x(){for(var l=this._X,m=this._C,v=0;v<8;v++)h[v]=m[v];m[0]=m[0]+1295307597+this._b|0,m[1]=m[1]+3545052371+(m[0]>>>0<h[0]>>>0?1:0)|0,m[2]=m[2]+886263092+(m[1]>>>0<h[1]>>>0?1:0)|0,m[3]=m[3]+1295307597+(m[2]>>>0<h[2]>>>0?1:0)|0,m[4]=m[4]+3545052371+(m[3]>>>0<h[3]>>>0?1:0)|0,m[5]=m[5]+886263092+(m[4]>>>0<h[4]>>>0?1:0)|0,m[6]=m[6]+1295307597+(m[5]>>>0<h[5]>>>0?1:0)|0,m[7]=m[7]+3545052371+(m[6]>>>0<h[6]>>>0?1:0)|0,this._b=m[7]>>>0<h[7]>>>0?1:0;for(var v=0;v<8;v++){var E=l[v]+m[v],A=E&65535,R=E>>>16,w=((A*A>>>17)+A*R>>>15)+R*R,_=((E&4294901760)*E|0)+((E&65535)*E|0);c[v]=w^_}l[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,l[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,l[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,l[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,l[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,l[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,l[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,l[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.RabbitLegacy=o._createHelper(f)}(),r.RabbitLegacy})}(c0)),c0.exports}var f0={exports:{}},Ec;function T1(){return Ec||(Ec=1,function(t,e){(function(r,n,i){t.exports=n(Le(),dr(),pr(),Zt(),ot())})(ye,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo;const a=16,h=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[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 f={pbox:[],sbox:[]};function x(A,R){let w=R>>24&255,_=R>>16&255,D=R>>8&255,C=R&255,O=A.sbox[0][w]+A.sbox[1][_];return O=O^A.sbox[2][D],O=O+A.sbox[3][C],O}function l(A,R,w){let _=R,D=w,C;for(let O=0;O<a;++O)_=_^A.pbox[O],D=x(A,_)^D,C=_,_=D,D=C;return C=_,_=D,D=C,D=D^A.pbox[a],_=_^A.pbox[a+1],{left:_,right:D}}function m(A,R,w){let _=R,D=w,C;for(let O=a+1;O>1;--O)_=_^A.pbox[O],D=x(A,_)^D,C=_,_=D,D=C;return C=_,_=D,D=C,D=D^A.pbox[1],_=_^A.pbox[0],{left:_,right:D}}function v(A,R,w){for(let L=0;L<4;L++){A.sbox[L]=[];for(let H=0;H<256;H++)A.sbox[L][H]=c[L][H]}let _=0;for(let L=0;L<a+2;L++)A.pbox[L]=h[L]^R[_],_++,_>=w&&(_=0);let D=0,C=0,O=0;for(let L=0;L<a+2;L+=2)O=l(A,D,C),D=O.left,C=O.right,A.pbox[L]=D,A.pbox[L+1]=C;for(let L=0;L<4;L++)for(let H=0;H<256;H+=2)O=l(A,D,C),D=O.left,C=O.right,A.sbox[L][H]=D,A.sbox[L][H+1]=C;return!0}var E=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var A=this._keyPriorReset=this._key,R=A.words,w=A.sigBytes/4;v(f,R,w)}},encryptBlock:function(A,R){var w=l(f,A[R],A[R+1]);A[R]=w.left,A[R+1]=w.right},decryptBlock:function(A,R){var w=m(f,A[R],A[R+1]);A[R]=w.left,A[R+1]=w.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=o._createHelper(E)}(),r.Blowfish})}(f0)),f0.exports}(function(t,e){(function(r,n,i){t.exports=n(Le(),fi(),c1(),f1(),dr(),u1(),pr(),Gs(),Lo(),l1(),Xs(),h1(),d1(),p1(),qo(),x1(),Zt(),ot(),y1(),v1(),m1(),g1(),E1(),A1(),w1(),_1(),b1(),C1(),B1(),D1(),S1(),F1(),R1(),I1(),T1())})(ye,function(r){return r})})(s1);var Fe={},ui={};ui.byteLength=N1,ui.toByteArray=k1,ui.fromByteArray=$1;for(var kt=[],_t=[],O1=typeof Uint8Array!="undefined"?Uint8Array:Array,u0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lr=0,P1=u0.length;Lr<P1;++Lr)kt[Lr]=u0[Lr],_t[u0.charCodeAt(Lr)]=Lr;_t[45]=62,_t[95]=63;function Ac(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function N1(t){var e=Ac(t),r=e[0],n=e[1];return(r+n)*3/4-n}function L1(t,e,r){return(e+r)*3/4-r}function k1(t){var e,r=Ac(t),n=r[0],i=r[1],o=new O1(L1(t,n,i)),s=0,a=i>0?n-4:n,h;for(h=0;h<a;h+=4)e=_t[t.charCodeAt(h)]<<18|_t[t.charCodeAt(h+1)]<<12|_t[t.charCodeAt(h+2)]<<6|_t[t.charCodeAt(h+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=_t[t.charCodeAt(h)]<<2|_t[t.charCodeAt(h+1)]>>4,o[s++]=e&255),i===1&&(e=_t[t.charCodeAt(h)]<<10|_t[t.charCodeAt(h+1)]<<4|_t[t.charCodeAt(h+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function M1(t){return kt[t>>18&63]+kt[t>>12&63]+kt[t>>6&63]+kt[t&63]}function U1(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(M1(n));return i.join("")}function $1(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(U1(t,s,s+o>a?a:s+o));return n===1?(e=t[r-1],i.push(kt[e>>2]+kt[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(kt[e>>10]+kt[e>>4&63]+kt[e<<2&63]+"=")),i.join("")}var l0={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */l0.read=function(t,e,r,n,i){var o,s,a=i*8-n-1,h=(1<<a)-1,c=h>>1,f=-7,x=r?i-1:0,l=r?-1:1,m=t[e+x];for(x+=l,o=m&(1<<-f)-1,m>>=-f,f+=a;f>0;o=o*256+t[e+x],x+=l,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=s*256+t[e+x],x+=l,f-=8);if(o===0)o=1-c;else{if(o===h)return s?NaN:(m?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-c}return(m?-1:1)*s*Math.pow(2,o-n)},l0.write=function(t,e,r,n,i,o){var s,a,h,c=o*8-i-1,f=(1<<c)-1,x=f>>1,l=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=n?0:o-1,v=n?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(h=Math.pow(2,-s))<1&&(s--,h*=2),s+x>=1?e+=l/h:e+=l*Math.pow(2,1-x),e*h>=2&&(s++,h/=2),s+x>=f?(a=0,s=f):s+x>=1?(a=(e*h-1)*Math.pow(2,i),s=s+x):(a=e*Math.pow(2,x-1)*Math.pow(2,i),s=0));i>=8;t[r+m]=a&255,m+=v,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[r+m]=s&255,m+=v,s/=256,c-=8);t[r+m-v]|=E*128};/*!
|
|
30
|
+
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function i(a){if((a>>24&255)===255){var u=a>>16&255,c=a>>8&255,f=a&255;u===255?(u=0,c===255?(c=0,f===255?f=0:++f):++c):++u,a=0,a+=u<<16,a+=c<<8,a+=f}else a+=1<<24;return a}function o(a){return(a[0]=i(a[0]))===0&&(a[1]=i(a[1])),a}var s=n.Encryptor=n.extend({processBlock:function(a,u){var c=this._cipher,f=c.blockSize,x=this._iv,h=this._counter;x&&(h=this._counter=x.slice(0),this._iv=void 0),o(h);var v=h.slice(0);c.encryptBlock(v,0);for(var m=0;m<f;m++)a[u+m]^=v[m]}});return n.Decryptor=s,n}(),r.mode.CTRGladman})}(Yo)),Yo.exports}var Xo={exports:{}},ac;function g1(){return ac||(ac=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ot())})(ve,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,s){var a=this._cipher,u=a.blockSize,c=this._iv,f=this._keystream;c&&(f=this._keystream=c.slice(0),this._iv=void 0),a.encryptBlock(f,0);for(var x=0;x<u;x++)o[s+x]^=f[x]}});return n.Decryptor=i,n}(),r.mode.OFB})}(Xo)),Xo.exports}var Jo={exports:{}},sc;function E1(){return sc||(sc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ot())})(ve,function(r){return r.mode.ECB=function(){var n=r.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}(),r.mode.ECB})}(Jo)),Jo.exports}var Qo={exports:{}},cc;function A1(){return cc||(cc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ot())})(ve,function(r){return r.pad.AnsiX923={pad:function(n,i){var o=n.sigBytes,s=i*4,a=s-o%s,u=o+a-1;n.clamp(),n.words[u>>>2]|=a<<24-u%4*8,n.sigBytes+=a},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Ansix923})}(Qo)),Qo.exports}var Zo={exports:{}},fc;function w1(){return fc||(fc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ot())})(ve,function(r){return r.pad.Iso10126={pad:function(n,i){var o=i*4,s=o-n.sigBytes%o;n.concat(r.lib.WordArray.random(s-1)).concat(r.lib.WordArray.create([s<<24],1))},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Iso10126})}(Zo)),Zo.exports}var e0={exports:{}},uc;function _1(){return uc||(uc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ot())})(ve,function(r){return r.pad.Iso97971={pad:function(n,i){n.concat(r.lib.WordArray.create([2147483648],1)),r.pad.ZeroPadding.pad(n,i)},unpad:function(n){r.pad.ZeroPadding.unpad(n),n.sigBytes--}},r.pad.Iso97971})}(e0)),e0.exports}var t0={exports:{}},lc;function b1(){return lc||(lc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ot())})(ve,function(r){return r.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}}},r.pad.ZeroPadding})}(t0)),t0.exports}var r0={exports:{}},hc;function C1(){return hc||(hc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ot())})(ve,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(r0)),r0.exports}var n0={exports:{}},dc;function B1(){return dc||(dc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),ot())})(ve,function(r){return function(n){var i=r,o=i.lib,s=o.CipherParams,a=i.enc,u=a.Hex,c=i.format;c.Hex={stringify:function(f){return f.ciphertext.toString(u)},parse:function(f){var x=u.parse(f);return s.create({ciphertext:x})}}}(),r.format.Hex})}(n0)),n0.exports}var i0={exports:{}},pc;function D1(){return pc||(pc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),dr(),pr(),Zt(),ot())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo,a=[],u=[],c=[],f=[],x=[],h=[],v=[],m=[],E=[],A=[];(function(){for(var _=[],B=0;B<256;B++)B<128?_[B]=B<<1:_[B]=B<<1^283;for(var D=0,O=0,B=0;B<256;B++){var L=O^O<<1^O<<2^O<<3^O<<4;L=L>>>8^L&255^99,a[D]=L,u[L]=D;var z=_[D],Q=_[z],P=_[Q],k=_[L]*257^L*16843008;c[D]=k<<24|k>>>8,f[D]=k<<16|k>>>16,x[D]=k<<8|k>>>24,h[D]=k;var k=P*16843009^Q*65537^z*257^D*16843008;v[L]=k<<24|k>>>8,m[L]=k<<16|k>>>16,E[L]=k<<8|k>>>24,A[L]=k,D?(D=z^_[_[_[P^z]]],O^=_[_[O]]):D=O=1}})();var R=[0,1,2,4,8,16,32,64,128,27,54],w=s.AES=o.extend({_doReset:function(){var _;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var B=this._keyPriorReset=this._key,D=B.words,O=B.sigBytes/4,L=this._nRounds=O+6,z=(L+1)*4,Q=this._keySchedule=[],P=0;P<z;P++)P<O?Q[P]=D[P]:(_=Q[P-1],P%O?O>6&&P%O==4&&(_=a[_>>>24]<<24|a[_>>>16&255]<<16|a[_>>>8&255]<<8|a[_&255]):(_=_<<8|_>>>24,_=a[_>>>24]<<24|a[_>>>16&255]<<16|a[_>>>8&255]<<8|a[_&255],_^=R[P/O|0]<<24),Q[P]=Q[P-O]^_);for(var k=this._invKeySchedule=[],V=0;V<z;V++){var P=z-V;if(V%4)var _=Q[P];else var _=Q[P-4];V<4||P<=4?k[V]=_:k[V]=v[a[_>>>24]]^m[a[_>>>16&255]]^E[a[_>>>8&255]]^A[a[_&255]]}}},encryptBlock:function(_,B){this._doCryptBlock(_,B,this._keySchedule,c,f,x,h,a)},decryptBlock:function(_,B){var D=_[B+1];_[B+1]=_[B+3],_[B+3]=D,this._doCryptBlock(_,B,this._invKeySchedule,v,m,E,A,u);var D=_[B+1];_[B+1]=_[B+3],_[B+3]=D},_doCryptBlock:function(_,B,D,O,L,z,Q,P){for(var k=this._nRounds,V=_[B]^D[0],X=_[B+1]^D[1],ee=_[B+2]^D[2],Y=_[B+3]^D[3],Z=4,oe=1;oe<k;oe++){var ie=O[V>>>24]^L[X>>>16&255]^z[ee>>>8&255]^Q[Y&255]^D[Z++],he=O[X>>>24]^L[ee>>>16&255]^z[Y>>>8&255]^Q[V&255]^D[Z++],fe=O[ee>>>24]^L[Y>>>16&255]^z[V>>>8&255]^Q[X&255]^D[Z++],H=O[Y>>>24]^L[V>>>16&255]^z[X>>>8&255]^Q[ee&255]^D[Z++];V=ie,X=he,ee=fe,Y=H}var ie=(P[V>>>24]<<24|P[X>>>16&255]<<16|P[ee>>>8&255]<<8|P[Y&255])^D[Z++],he=(P[X>>>24]<<24|P[ee>>>16&255]<<16|P[Y>>>8&255]<<8|P[V&255])^D[Z++],fe=(P[ee>>>24]<<24|P[Y>>>16&255]<<16|P[V>>>8&255]<<8|P[X&255])^D[Z++],H=(P[Y>>>24]<<24|P[V>>>16&255]<<16|P[X>>>8&255]<<8|P[ee&255])^D[Z++];_[B]=ie,_[B+1]=he,_[B+2]=fe,_[B+3]=H},keySize:256/32});n.AES=o._createHelper(w)}(),r.AES})}(i0)),i0.exports}var o0={exports:{}},xc;function S1(){return xc||(xc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),dr(),pr(),Zt(),ot())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,s=i.BlockCipher,a=n.algo,u=[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],c=[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],f=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],x=[{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}],h=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],v=a.DES=s.extend({_doReset:function(){for(var R=this._key,w=R.words,_=[],B=0;B<56;B++){var D=u[B]-1;_[B]=w[D>>>5]>>>31-D%32&1}for(var O=this._subKeys=[],L=0;L<16;L++){for(var z=O[L]=[],Q=f[L],B=0;B<24;B++)z[B/6|0]|=_[(c[B]-1+Q)%28]<<31-B%6,z[4+(B/6|0)]|=_[28+(c[B+24]-1+Q)%28]<<31-B%6;z[0]=z[0]<<1|z[0]>>>31;for(var B=1;B<7;B++)z[B]=z[B]>>>(B-1)*4+3;z[7]=z[7]<<5|z[7]>>>27}for(var P=this._invSubKeys=[],B=0;B<16;B++)P[B]=O[15-B]},encryptBlock:function(R,w){this._doCryptBlock(R,w,this._subKeys)},decryptBlock:function(R,w){this._doCryptBlock(R,w,this._invSubKeys)},_doCryptBlock:function(R,w,_){this._lBlock=R[w],this._rBlock=R[w+1],m.call(this,4,252645135),m.call(this,16,65535),E.call(this,2,858993459),E.call(this,8,16711935),m.call(this,1,1431655765);for(var B=0;B<16;B++){for(var D=_[B],O=this._lBlock,L=this._rBlock,z=0,Q=0;Q<8;Q++)z|=x[Q][((L^D[Q])&h[Q])>>>0];this._lBlock=L,this._rBlock=O^z}var P=this._lBlock;this._lBlock=this._rBlock,this._rBlock=P,m.call(this,1,1431655765),E.call(this,8,16711935),E.call(this,2,858993459),m.call(this,16,65535),m.call(this,4,252645135),R[w]=this._lBlock,R[w+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function m(R,w){var _=(this._lBlock>>>R^this._rBlock)&w;this._rBlock^=_,this._lBlock^=_<<R}function E(R,w){var _=(this._rBlock>>>R^this._lBlock)&w;this._lBlock^=_,this._rBlock^=_<<R}n.DES=s._createHelper(v);var A=a.TripleDES=s.extend({_doReset:function(){var R=this._key,w=R.words;if(w.length!==2&&w.length!==4&&w.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var _=w.slice(0,2),B=w.length<4?w.slice(0,2):w.slice(2,4),D=w.length<6?w.slice(0,2):w.slice(4,6);this._des1=v.createEncryptor(o.create(_)),this._des2=v.createEncryptor(o.create(B)),this._des3=v.createEncryptor(o.create(D))},encryptBlock:function(R,w){this._des1.encryptBlock(R,w),this._des2.decryptBlock(R,w),this._des3.encryptBlock(R,w)},decryptBlock:function(R,w){this._des3.decryptBlock(R,w),this._des2.encryptBlock(R,w),this._des1.decryptBlock(R,w)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=s._createHelper(A)}(),r.TripleDES})}(o0)),o0.exports}var a0={exports:{}},yc;function F1(){return yc||(yc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),dr(),pr(),Zt(),ot())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=s.RC4=o.extend({_doReset:function(){for(var f=this._key,x=f.words,h=f.sigBytes,v=this._S=[],m=0;m<256;m++)v[m]=m;for(var m=0,E=0;m<256;m++){var A=m%h,R=x[A>>>2]>>>24-A%4*8&255;E=(E+v[m]+R)%256;var w=v[m];v[m]=v[E],v[E]=w}this._i=this._j=0},_doProcessBlock:function(f,x){f[x]^=u.call(this)},keySize:256/32,ivSize:0});function u(){for(var f=this._S,x=this._i,h=this._j,v=0,m=0;m<4;m++){x=(x+1)%256,h=(h+f[x])%256;var E=f[x];f[x]=f[h],f[h]=E,v|=f[(f[x]+f[h])%256]<<24-m*8}return this._i=x,this._j=h,v}n.RC4=o._createHelper(a);var c=s.RC4Drop=a.extend({cfg:a.cfg.extend({drop:192}),_doReset:function(){a._doReset.call(this);for(var f=this.cfg.drop;f>0;f--)u.call(this)}});n.RC4Drop=o._createHelper(c)}(),r.RC4})}(a0)),a0.exports}var s0={exports:{}},vc;function R1(){return vc||(vc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),dr(),pr(),Zt(),ot())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=[],u=[],c=[],f=s.Rabbit=o.extend({_doReset:function(){for(var h=this._key.words,v=this.cfg.iv,m=0;m<4;m++)h[m]=(h[m]<<8|h[m]>>>24)&16711935|(h[m]<<24|h[m]>>>8)&4278255360;var E=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],A=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var m=0;m<4;m++)x.call(this);for(var m=0;m<8;m++)A[m]^=E[m+4&7];if(v){var R=v.words,w=R[0],_=R[1],B=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,D=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,O=B>>>16|D&4294901760,L=D<<16|B&65535;A[0]^=B,A[1]^=O,A[2]^=D,A[3]^=L,A[4]^=B,A[5]^=O,A[6]^=D,A[7]^=L;for(var m=0;m<4;m++)x.call(this)}},_doProcessBlock:function(h,v){var m=this._X;x.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)a[E]=(a[E]<<8|a[E]>>>24)&16711935|(a[E]<<24|a[E]>>>8)&4278255360,h[v+E]^=a[E]},blockSize:128/32,ivSize:64/32});function x(){for(var h=this._X,v=this._C,m=0;m<8;m++)u[m]=v[m];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<u[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<u[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<u[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<u[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<u[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<u[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<u[6]>>>0?1:0)|0,this._b=v[7]>>>0<u[7]>>>0?1:0;for(var m=0;m<8;m++){var E=h[m]+v[m],A=E&65535,R=E>>>16,w=((A*A>>>17)+A*R>>>15)+R*R,_=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=w^_}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.Rabbit=o._createHelper(f)}(),r.Rabbit})}(s0)),s0.exports}var c0={exports:{}},mc;function I1(){return mc||(mc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),dr(),pr(),Zt(),ot())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,s=n.algo,a=[],u=[],c=[],f=s.RabbitLegacy=o.extend({_doReset:function(){var h=this._key.words,v=this.cfg.iv,m=this._X=[h[0],h[3]<<16|h[2]>>>16,h[1],h[0]<<16|h[3]>>>16,h[2],h[1]<<16|h[0]>>>16,h[3],h[2]<<16|h[1]>>>16],E=this._C=[h[2]<<16|h[2]>>>16,h[0]&4294901760|h[1]&65535,h[3]<<16|h[3]>>>16,h[1]&4294901760|h[2]&65535,h[0]<<16|h[0]>>>16,h[2]&4294901760|h[3]&65535,h[1]<<16|h[1]>>>16,h[3]&4294901760|h[0]&65535];this._b=0;for(var A=0;A<4;A++)x.call(this);for(var A=0;A<8;A++)E[A]^=m[A+4&7];if(v){var R=v.words,w=R[0],_=R[1],B=(w<<8|w>>>24)&16711935|(w<<24|w>>>8)&4278255360,D=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,O=B>>>16|D&4294901760,L=D<<16|B&65535;E[0]^=B,E[1]^=O,E[2]^=D,E[3]^=L,E[4]^=B,E[5]^=O,E[6]^=D,E[7]^=L;for(var A=0;A<4;A++)x.call(this)}},_doProcessBlock:function(h,v){var m=this._X;x.call(this),a[0]=m[0]^m[5]>>>16^m[3]<<16,a[1]=m[2]^m[7]>>>16^m[5]<<16,a[2]=m[4]^m[1]>>>16^m[7]<<16,a[3]=m[6]^m[3]>>>16^m[1]<<16;for(var E=0;E<4;E++)a[E]=(a[E]<<8|a[E]>>>24)&16711935|(a[E]<<24|a[E]>>>8)&4278255360,h[v+E]^=a[E]},blockSize:128/32,ivSize:64/32});function x(){for(var h=this._X,v=this._C,m=0;m<8;m++)u[m]=v[m];v[0]=v[0]+1295307597+this._b|0,v[1]=v[1]+3545052371+(v[0]>>>0<u[0]>>>0?1:0)|0,v[2]=v[2]+886263092+(v[1]>>>0<u[1]>>>0?1:0)|0,v[3]=v[3]+1295307597+(v[2]>>>0<u[2]>>>0?1:0)|0,v[4]=v[4]+3545052371+(v[3]>>>0<u[3]>>>0?1:0)|0,v[5]=v[5]+886263092+(v[4]>>>0<u[4]>>>0?1:0)|0,v[6]=v[6]+1295307597+(v[5]>>>0<u[5]>>>0?1:0)|0,v[7]=v[7]+3545052371+(v[6]>>>0<u[6]>>>0?1:0)|0,this._b=v[7]>>>0<u[7]>>>0?1:0;for(var m=0;m<8;m++){var E=h[m]+v[m],A=E&65535,R=E>>>16,w=((A*A>>>17)+A*R>>>15)+R*R,_=((E&4294901760)*E|0)+((E&65535)*E|0);c[m]=w^_}h[0]=c[0]+(c[7]<<16|c[7]>>>16)+(c[6]<<16|c[6]>>>16)|0,h[1]=c[1]+(c[0]<<8|c[0]>>>24)+c[7]|0,h[2]=c[2]+(c[1]<<16|c[1]>>>16)+(c[0]<<16|c[0]>>>16)|0,h[3]=c[3]+(c[2]<<8|c[2]>>>24)+c[1]|0,h[4]=c[4]+(c[3]<<16|c[3]>>>16)+(c[2]<<16|c[2]>>>16)|0,h[5]=c[5]+(c[4]<<8|c[4]>>>24)+c[3]|0,h[6]=c[6]+(c[5]<<16|c[5]>>>16)+(c[4]<<16|c[4]>>>16)|0,h[7]=c[7]+(c[6]<<8|c[6]>>>24)+c[5]|0}n.RabbitLegacy=o._createHelper(f)}(),r.RabbitLegacy})}(c0)),c0.exports}var f0={exports:{}},gc;function T1(){return gc||(gc=1,function(t,e){(function(r,n,i){t.exports=n(Ne(),dr(),pr(),Zt(),ot())})(ve,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,s=n.algo;const a=16,u=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],c=[[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 f={pbox:[],sbox:[]};function x(A,R){let w=R>>24&255,_=R>>16&255,B=R>>8&255,D=R&255,O=A.sbox[0][w]+A.sbox[1][_];return O=O^A.sbox[2][B],O=O+A.sbox[3][D],O}function h(A,R,w){let _=R,B=w,D;for(let O=0;O<a;++O)_=_^A.pbox[O],B=x(A,_)^B,D=_,_=B,B=D;return D=_,_=B,B=D,B=B^A.pbox[a],_=_^A.pbox[a+1],{left:_,right:B}}function v(A,R,w){let _=R,B=w,D;for(let O=a+1;O>1;--O)_=_^A.pbox[O],B=x(A,_)^B,D=_,_=B,B=D;return D=_,_=B,B=D,B=B^A.pbox[1],_=_^A.pbox[0],{left:_,right:B}}function m(A,R,w){for(let L=0;L<4;L++){A.sbox[L]=[];for(let z=0;z<256;z++)A.sbox[L][z]=c[L][z]}let _=0;for(let L=0;L<a+2;L++)A.pbox[L]=u[L]^R[_],_++,_>=w&&(_=0);let B=0,D=0,O=0;for(let L=0;L<a+2;L+=2)O=h(A,B,D),B=O.left,D=O.right,A.pbox[L]=B,A.pbox[L+1]=D;for(let L=0;L<4;L++)for(let z=0;z<256;z+=2)O=h(A,B,D),B=O.left,D=O.right,A.sbox[L][z]=B,A.sbox[L][z+1]=D;return!0}var E=s.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var A=this._keyPriorReset=this._key,R=A.words,w=A.sigBytes/4;m(f,R,w)}},encryptBlock:function(A,R){var w=h(f,A[R],A[R+1]);A[R]=w.left,A[R+1]=w.right},decryptBlock:function(A,R){var w=v(f,A[R],A[R+1]);A[R]=w.left,A[R+1]=w.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=o._createHelper(E)}(),r.Blowfish})}(f0)),f0.exports}(function(t,e){(function(r,n,i){t.exports=n(Ne(),ci(),c1(),f1(),dr(),u1(),pr(),Vs(),Lo(),l1(),Ys(),h1(),d1(),p1(),qo(),x1(),Zt(),ot(),y1(),v1(),m1(),g1(),E1(),A1(),w1(),_1(),b1(),C1(),B1(),D1(),S1(),F1(),R1(),I1(),T1())})(ve,function(r){return r})})(s1);var Fe={},fi={};fi.byteLength=N1,fi.toByteArray=k1,fi.fromByteArray=$1;for(var Mt=[],_t=[],O1=typeof Uint8Array!="undefined"?Uint8Array:Array,u0="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Lr=0,P1=u0.length;Lr<P1;++Lr)Mt[Lr]=u0[Lr],_t[u0.charCodeAt(Lr)]=Lr;_t[45]=62,_t[95]=63;function Ec(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function N1(t){var e=Ec(t),r=e[0],n=e[1];return(r+n)*3/4-n}function L1(t,e,r){return(e+r)*3/4-r}function k1(t){var e,r=Ec(t),n=r[0],i=r[1],o=new O1(L1(t,n,i)),s=0,a=i>0?n-4:n,u;for(u=0;u<a;u+=4)e=_t[t.charCodeAt(u)]<<18|_t[t.charCodeAt(u+1)]<<12|_t[t.charCodeAt(u+2)]<<6|_t[t.charCodeAt(u+3)],o[s++]=e>>16&255,o[s++]=e>>8&255,o[s++]=e&255;return i===2&&(e=_t[t.charCodeAt(u)]<<2|_t[t.charCodeAt(u+1)]>>4,o[s++]=e&255),i===1&&(e=_t[t.charCodeAt(u)]<<10|_t[t.charCodeAt(u+1)]<<4|_t[t.charCodeAt(u+2)]>>2,o[s++]=e>>8&255,o[s++]=e&255),o}function M1(t){return Mt[t>>18&63]+Mt[t>>12&63]+Mt[t>>6&63]+Mt[t&63]}function U1(t,e,r){for(var n,i=[],o=e;o<r;o+=3)n=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(t[o+2]&255),i.push(M1(n));return i.join("")}function $1(t){for(var e,r=t.length,n=r%3,i=[],o=16383,s=0,a=r-n;s<a;s+=o)i.push(U1(t,s,s+o>a?a:s+o));return n===1?(e=t[r-1],i.push(Mt[e>>2]+Mt[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(Mt[e>>10]+Mt[e>>4&63]+Mt[e<<2&63]+"=")),i.join("")}var l0={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */l0.read=function(t,e,r,n,i){var o,s,a=i*8-n-1,u=(1<<a)-1,c=u>>1,f=-7,x=r?i-1:0,h=r?-1:1,v=t[e+x];for(x+=h,o=v&(1<<-f)-1,v>>=-f,f+=a;f>0;o=o*256+t[e+x],x+=h,f-=8);for(s=o&(1<<-f)-1,o>>=-f,f+=n;f>0;s=s*256+t[e+x],x+=h,f-=8);if(o===0)o=1-c;else{if(o===u)return s?NaN:(v?-1:1)*(1/0);s=s+Math.pow(2,n),o=o-c}return(v?-1:1)*s*Math.pow(2,o-n)},l0.write=function(t,e,r,n,i,o){var s,a,u,c=o*8-i-1,f=(1<<c)-1,x=f>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,v=n?0:o-1,m=n?1:-1,E=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=f):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),s+x>=1?e+=h/u:e+=h*Math.pow(2,1-x),e*u>=2&&(s++,u/=2),s+x>=f?(a=0,s=f):s+x>=1?(a=(e*u-1)*Math.pow(2,i),s=s+x):(a=e*Math.pow(2,x-1)*Math.pow(2,i),s=0));i>=8;t[r+v]=a&255,v+=m,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[r+v]=s&255,v+=m,s/=256,c-=8);t[r+v-m]|=E*128};/*!
|
|
31
31
|
* The buffer module from node.js, for the browser.
|
|
32
32
|
*
|
|
33
33
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
34
34
|
* @license MIT
|
|
35
|
-
*/(function(t){var e=ui,r=l0,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50;var i=2147483647;t.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{var F=new Uint8Array(1),u={foo:function(){return 42}};return Object.setPrototypeOf(u,Uint8Array.prototype),Object.setPrototypeOf(F,u),F.foo()===42}catch(d){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(F){if(F>i)throw new RangeError('The value "'+F+'" is invalid for option "size"');var u=new Uint8Array(F);return Object.setPrototypeOf(u,a.prototype),u}function a(F,u,d){if(typeof F=="number"){if(typeof u=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(F)}return h(F,u,d)}a.poolSize=8192;function h(F,u,d){if(typeof F=="string")return l(F,u);if(ArrayBuffer.isView(F))return v(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(Oe(F,ArrayBuffer)||F&&Oe(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Oe(F,SharedArrayBuffer)||F&&Oe(F.buffer,SharedArrayBuffer)))return E(F,u,d);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var y=F.valueOf&&F.valueOf();if(y!=null&&y!==F)return a.from(y,u,d);var T=A(F);if(T)return T;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return a.from(F[Symbol.toPrimitive]("string"),u,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}a.from=function(F,u,d){return h(F,u,d)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function c(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function f(F,u,d){return c(F),F<=0?s(F):u!==void 0?typeof d=="string"?s(F).fill(u,d):s(F).fill(u):s(F)}a.alloc=function(F,u,d){return f(F,u,d)};function x(F){return c(F),s(F<0?0:R(F)|0)}a.allocUnsafe=function(F){return x(F)},a.allocUnsafeSlow=function(F){return x(F)};function l(F,u){if((typeof u!="string"||u==="")&&(u="utf8"),!a.isEncoding(u))throw new TypeError("Unknown encoding: "+u);var d=_(F,u)|0,y=s(d),T=y.write(F,u);return T!==d&&(y=y.slice(0,T)),y}function m(F){for(var u=F.length<0?0:R(F.length)|0,d=s(u),y=0;y<u;y+=1)d[y]=F[y]&255;return d}function v(F){if(Oe(F,Uint8Array)){var u=new Uint8Array(F);return E(u.buffer,u.byteOffset,u.byteLength)}return m(F)}function E(F,u,d){if(u<0||F.byteLength<u)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<u+(d||0))throw new RangeError('"length" is outside of buffer bounds');var y;return u===void 0&&d===void 0?y=new Uint8Array(F):d===void 0?y=new Uint8Array(F,u):y=new Uint8Array(F,u,d),Object.setPrototypeOf(y,a.prototype),y}function A(F){if(a.isBuffer(F)){var u=R(F.length)|0,d=s(u);return d.length===0||F.copy(d,0,0,u),d}if(F.length!==void 0)return typeof F.length!="number"||je(F.length)?s(0):m(F);if(F.type==="Buffer"&&Array.isArray(F.data))return m(F.data)}function R(F){if(F>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return F|0}function w(F){return+F!=F&&(F=0),a.alloc(+F)}a.isBuffer=function(u){return u!=null&&u._isBuffer===!0&&u!==a.prototype},a.compare=function(u,d){if(Oe(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),Oe(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),!a.isBuffer(u)||!a.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(u===d)return 0;for(var y=u.length,T=d.length,W=0,K=Math.min(y,T);W<K;++W)if(u[W]!==d[W]){y=u[W],T=d[W];break}return y<T?-1:T<y?1:0},a.isEncoding=function(u){switch(String(u).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(u,d){if(!Array.isArray(u))throw new TypeError('"list" argument must be an Array of Buffers');if(u.length===0)return a.alloc(0);var y;if(d===void 0)for(d=0,y=0;y<u.length;++y)d+=u[y].length;var T=a.allocUnsafe(d),W=0;for(y=0;y<u.length;++y){var K=u[y];if(Oe(K,Uint8Array))W+K.length>T.length?a.from(K).copy(T,W):Uint8Array.prototype.set.call(T,K,W);else if(a.isBuffer(K))K.copy(T,W);else throw new TypeError('"list" argument must be an Array of Buffers');W+=K.length}return T};function _(F,u){if(a.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||Oe(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);var d=F.length,y=arguments.length>2&&arguments[2]===!0;if(!y&&d===0)return 0;for(var T=!1;;)switch(u){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return ve(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return Ge(F).length;default:if(T)return y?-1:ve(F).length;u=(""+u).toLowerCase(),T=!0}}a.byteLength=_;function D(F,u,d){var y=!1;if((u===void 0||u<0)&&(u=0),u>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,u>>>=0,d<=u))return"";for(F||(F="utf8");;)switch(F){case"hex":return he(this,u,d);case"utf8":case"utf-8":return te(this,u,d);case"ascii":return oe(this,u,d);case"latin1":case"binary":return ie(this,u,d);case"base64":return X(this,u,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fe(this,u,d);default:if(y)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),y=!0}}a.prototype._isBuffer=!0;function C(F,u,d){var y=F[u];F[u]=F[d],F[d]=y}a.prototype.swap16=function(){var u=this.length;if(u%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<u;d+=2)C(this,d,d+1);return this},a.prototype.swap32=function(){var u=this.length;if(u%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<u;d+=4)C(this,d,d+3),C(this,d+1,d+2);return this},a.prototype.swap64=function(){var u=this.length;if(u%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<u;d+=8)C(this,d,d+7),C(this,d+1,d+6),C(this,d+2,d+5),C(this,d+3,d+4);return this},a.prototype.toString=function(){var u=this.length;return u===0?"":arguments.length===0?te(this,0,u):D.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(u){if(!a.isBuffer(u))throw new TypeError("Argument must be a Buffer");return this===u?!0:a.compare(this,u)===0},a.prototype.inspect=function(){var u="",d=t.INSPECT_MAX_BYTES;return u=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(u+=" ... "),"<Buffer "+u+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(u,d,y,T,W){if(Oe(u,Uint8Array)&&(u=a.from(u,u.offset,u.byteLength)),!a.isBuffer(u))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof u);if(d===void 0&&(d=0),y===void 0&&(y=u?u.length:0),T===void 0&&(T=0),W===void 0&&(W=this.length),d<0||y>u.length||T<0||W>this.length)throw new RangeError("out of range index");if(T>=W&&d>=y)return 0;if(T>=W)return-1;if(d>=y)return 1;if(d>>>=0,y>>>=0,T>>>=0,W>>>=0,this===u)return 0;for(var K=W-T,pe=y-d,Ce=Math.min(K,pe),be=this.slice(T,W),Be=u.slice(d,y),ke=0;ke<Ce;++ke)if(be[ke]!==Be[ke]){K=be[ke],pe=Be[ke];break}return K<pe?-1:pe<K?1:0};function O(F,u,d,y,T){if(F.length===0)return-1;if(typeof d=="string"?(y=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,je(d)&&(d=T?0:F.length-1),d<0&&(d=F.length+d),d>=F.length){if(T)return-1;d=F.length-1}else if(d<0)if(T)d=0;else return-1;if(typeof u=="string"&&(u=a.from(u,y)),a.isBuffer(u))return u.length===0?-1:L(F,u,d,y,T);if(typeof u=="number")return u=u&255,typeof Uint8Array.prototype.indexOf=="function"?T?Uint8Array.prototype.indexOf.call(F,u,d):Uint8Array.prototype.lastIndexOf.call(F,u,d):L(F,[u],d,y,T);throw new TypeError("val must be string, number or Buffer")}function L(F,u,d,y,T){var W=1,K=F.length,pe=u.length;if(y!==void 0&&(y=String(y).toLowerCase(),y==="ucs2"||y==="ucs-2"||y==="utf16le"||y==="utf-16le")){if(F.length<2||u.length<2)return-1;W=2,K/=2,pe/=2,d/=2}function Ce(__$t__,Ht){return W===1?__$t__[Ht]:__$t__.readUInt16BE(Ht*W)}var be;if(T){var Be=-1;for(be=d;be<K;be++)if(Ce(F,be)===Ce(u,Be===-1?0:be-Be)){if(Be===-1&&(Be=be),be-Be+1===pe)return Be*W}else Be!==-1&&(be-=be-Be),Be=-1}else for(d+pe>K&&(d=K-pe),be=d;be>=0;be--){for(var ke=!0,gt=0;gt<pe;gt++)if(Ce(F,be+gt)!==Ce(u,gt)){ke=!1;break}if(ke)return be}return-1}a.prototype.includes=function(u,d,y){return this.indexOf(u,d,y)!==-1},a.prototype.indexOf=function(u,d,y){return O(this,u,d,y,!0)},a.prototype.lastIndexOf=function(u,d,y){return O(this,u,d,y,!1)};function H(F,u,d,y){d=Number(d)||0;var T=F.length-d;y?(y=Number(y),y>T&&(y=T)):y=T;var W=u.length;y>W/2&&(y=W/2);for(var K=0;K<y;++K){var pe=parseInt(u.substr(K*2,2),16);if(je(pe))return K;F[d+K]=pe}return K}function Z(F,u,d,y){return Ve(ve(u,F.length-d),F,d,y)}function P(F,u,d,y){return Ve(_e(u),F,d,y)}function k(F,u,d,y){return Ve(Ge(u),F,d,y)}function V(F,u,d,y){return Ve(Pe(u,F.length-d),F,d,y)}a.prototype.write=function(u,d,y,T){if(d===void 0)T="utf8",y=this.length,d=0;else if(y===void 0&&typeof d=="string")T=d,y=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(y)?(y=y>>>0,T===void 0&&(T="utf8")):(T=y,y=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var W=this.length-d;if((y===void 0||y>W)&&(y=W),u.length>0&&(y<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");for(var K=!1;;)switch(T){case"hex":return H(this,u,d,y);case"utf8":case"utf-8":return Z(this,u,d,y);case"ascii":case"latin1":case"binary":return P(this,u,d,y);case"base64":return k(this,u,d,y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,u,d,y);default:if(K)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),K=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(F,u,d){return u===0&&d===F.length?e.fromByteArray(F):e.fromByteArray(F.slice(u,d))}function te(F,u,d){d=Math.min(F.length,d);for(var y=[],T=u;T<d;){var W=F[T],K=null,pe=W>239?4:W>223?3:W>191?2:1;if(T+pe<=d){var Ce,be,Be,ke;switch(pe){case 1:W<128&&(K=W);break;case 2:Ce=F[T+1],(Ce&192)===128&&(ke=(W&31)<<6|Ce&63,ke>127&&(K=ke));break;case 3:Ce=F[T+1],be=F[T+2],(Ce&192)===128&&(be&192)===128&&(ke=(W&15)<<12|(Ce&63)<<6|be&63,ke>2047&&(ke<55296||ke>57343)&&(K=ke));break;case 4:Ce=F[T+1],be=F[T+2],Be=F[T+3],(Ce&192)===128&&(be&192)===128&&(Be&192)===128&&(ke=(W&15)<<18|(Ce&63)<<12|(be&63)<<6|Be&63,ke>65535&&ke<1114112&&(K=ke))}}K===null?(K=65533,pe=1):K>65535&&(K-=65536,y.push(K>>>10&1023|55296),K=56320|K&1023),y.push(K),T+=pe}return Q(y)}var Y=4096;function Q(F){var u=F.length;if(u<=Y)return String.fromCharCode.apply(String,F);for(var d="",y=0;y<u;)d+=String.fromCharCode.apply(String,F.slice(y,y+=Y));return d}function oe(F,u,d){var y="";d=Math.min(F.length,d);for(var T=u;T<d;++T)y+=String.fromCharCode(F[T]&127);return y}function ie(F,u,d){var y="";d=Math.min(F.length,d);for(var T=u;T<d;++T)y+=String.fromCharCode(F[T]);return y}function he(F,u,d){var y=F.length;(!u||u<0)&&(u=0),(!d||d<0||d>y)&&(d=y);for(var T="",W=u;W<d;++W)T+=Ke[F[W]];return T}function fe(F,u,d){for(var y=F.slice(u,d),T="",W=0;W<y.length-1;W+=2)T+=String.fromCharCode(y[W]+y[W+1]*256);return T}a.prototype.slice=function(u,d){var y=this.length;u=~~u,d=d===void 0?y:~~d,u<0?(u+=y,u<0&&(u=0)):u>y&&(u=y),d<0?(d+=y,d<0&&(d=0)):d>y&&(d=y),d<u&&(d=u);var T=this.subarray(u,d);return Object.setPrototypeOf(T,a.prototype),T};function z(F,u,d){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+u>d)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(u,d,y){u=u>>>0,d=d>>>0,y||z(u,d,this.length);for(var T=this[u],W=1,K=0;++K<d&&(W*=256);)T+=this[u+K]*W;return T},a.prototype.readUintBE=a.prototype.readUIntBE=function(u,d,y){u=u>>>0,d=d>>>0,y||z(u,d,this.length);for(var T=this[u+--d],W=1;d>0&&(W*=256);)T+=this[u+--d]*W;return T},a.prototype.readUint8=a.prototype.readUInt8=function(u,d){return u=u>>>0,d||z(u,1,this.length),this[u]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(u,d){return u=u>>>0,d||z(u,2,this.length),this[u]|this[u+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(u,d){return u=u>>>0,d||z(u,2,this.length),this[u]<<8|this[u+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(u,d){return u=u>>>0,d||z(u,4,this.length),(this[u]|this[u+1]<<8|this[u+2]<<16)+this[u+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(u,d){return u=u>>>0,d||z(u,4,this.length),this[u]*16777216+(this[u+1]<<16|this[u+2]<<8|this[u+3])},a.prototype.readIntLE=function(u,d,y){u=u>>>0,d=d>>>0,y||z(u,d,this.length);for(var T=this[u],W=1,K=0;++K<d&&(W*=256);)T+=this[u+K]*W;return W*=128,T>=W&&(T-=Math.pow(2,8*d)),T},a.prototype.readIntBE=function(u,d,y){u=u>>>0,d=d>>>0,y||z(u,d,this.length);for(var T=d,W=1,K=this[u+--T];T>0&&(W*=256);)K+=this[u+--T]*W;return W*=128,K>=W&&(K-=Math.pow(2,8*d)),K},a.prototype.readInt8=function(u,d){return u=u>>>0,d||z(u,1,this.length),this[u]&128?(255-this[u]+1)*-1:this[u]},a.prototype.readInt16LE=function(u,d){u=u>>>0,d||z(u,2,this.length);var y=this[u]|this[u+1]<<8;return y&32768?y|4294901760:y},a.prototype.readInt16BE=function(u,d){u=u>>>0,d||z(u,2,this.length);var y=this[u+1]|this[u]<<8;return y&32768?y|4294901760:y},a.prototype.readInt32LE=function(u,d){return u=u>>>0,d||z(u,4,this.length),this[u]|this[u+1]<<8|this[u+2]<<16|this[u+3]<<24},a.prototype.readInt32BE=function(u,d){return u=u>>>0,d||z(u,4,this.length),this[u]<<24|this[u+1]<<16|this[u+2]<<8|this[u+3]},a.prototype.readFloatLE=function(u,d){return u=u>>>0,d||z(u,4,this.length),r.read(this,u,!0,23,4)},a.prototype.readFloatBE=function(u,d){return u=u>>>0,d||z(u,4,this.length),r.read(this,u,!1,23,4)},a.prototype.readDoubleLE=function(u,d){return u=u>>>0,d||z(u,8,this.length),r.read(this,u,!0,52,8)},a.prototype.readDoubleBE=function(u,d){return u=u>>>0,d||z(u,8,this.length),r.read(this,u,!1,52,8)};function j(F,u,d,y,T,W){if(!a.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(u>T||u<W)throw new RangeError('"value" argument is out of bounds');if(d+y>F.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(u,d,y,T){if(u=+u,d=d>>>0,y=y>>>0,!T){var W=Math.pow(2,8*y)-1;j(this,u,d,y,W,0)}var K=1,pe=0;for(this[d]=u&255;++pe<y&&(K*=256);)this[d+pe]=u/K&255;return d+y},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(u,d,y,T){if(u=+u,d=d>>>0,y=y>>>0,!T){var W=Math.pow(2,8*y)-1;j(this,u,d,y,W,0)}var K=y-1,pe=1;for(this[d+K]=u&255;--K>=0&&(pe*=256);)this[d+K]=u/pe&255;return d+y},a.prototype.writeUint8=a.prototype.writeUInt8=function(u,d,y){return u=+u,d=d>>>0,y||j(this,u,d,1,255,0),this[d]=u&255,d+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(u,d,y){return u=+u,d=d>>>0,y||j(this,u,d,2,65535,0),this[d]=u&255,this[d+1]=u>>>8,d+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(u,d,y){return u=+u,d=d>>>0,y||j(this,u,d,2,65535,0),this[d]=u>>>8,this[d+1]=u&255,d+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(u,d,y){return u=+u,d=d>>>0,y||j(this,u,d,4,4294967295,0),this[d+3]=u>>>24,this[d+2]=u>>>16,this[d+1]=u>>>8,this[d]=u&255,d+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(u,d,y){return u=+u,d=d>>>0,y||j(this,u,d,4,4294967295,0),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255,d+4},a.prototype.writeIntLE=function(u,d,y,T){if(u=+u,d=d>>>0,!T){var W=Math.pow(2,8*y-1);j(this,u,d,y,W-1,-W)}var K=0,pe=1,Ce=0;for(this[d]=u&255;++K<y&&(pe*=256);)u<0&&Ce===0&&this[d+K-1]!==0&&(Ce=1),this[d+K]=(u/pe>>0)-Ce&255;return d+y},a.prototype.writeIntBE=function(u,d,y,T){if(u=+u,d=d>>>0,!T){var W=Math.pow(2,8*y-1);j(this,u,d,y,W-1,-W)}var K=y-1,pe=1,Ce=0;for(this[d+K]=u&255;--K>=0&&(pe*=256);)u<0&&Ce===0&&this[d+K+1]!==0&&(Ce=1),this[d+K]=(u/pe>>0)-Ce&255;return d+y},a.prototype.writeInt8=function(u,d,y){return u=+u,d=d>>>0,y||j(this,u,d,1,127,-128),u<0&&(u=255+u+1),this[d]=u&255,d+1},a.prototype.writeInt16LE=function(u,d,y){return u=+u,d=d>>>0,y||j(this,u,d,2,32767,-32768),this[d]=u&255,this[d+1]=u>>>8,d+2},a.prototype.writeInt16BE=function(u,d,y){return u=+u,d=d>>>0,y||j(this,u,d,2,32767,-32768),this[d]=u>>>8,this[d+1]=u&255,d+2},a.prototype.writeInt32LE=function(u,d,y){return u=+u,d=d>>>0,y||j(this,u,d,4,2147483647,-2147483648),this[d]=u&255,this[d+1]=u>>>8,this[d+2]=u>>>16,this[d+3]=u>>>24,d+4},a.prototype.writeInt32BE=function(u,d,y){return u=+u,d=d>>>0,y||j(this,u,d,4,2147483647,-2147483648),u<0&&(u=4294967295+u+1),this[d]=u>>>24,this[d+1]=u>>>16,this[d+2]=u>>>8,this[d+3]=u&255,d+4};function re(F,u,d,y,T,W){if(d+y>F.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function J(F,u,d,y,T){return u=+u,d=d>>>0,T||re(F,u,d,4),r.write(F,u,d,y,23,4),d+4}a.prototype.writeFloatLE=function(u,d,y){return J(this,u,d,!0,y)},a.prototype.writeFloatBE=function(u,d,y){return J(this,u,d,!1,y)};function Ee(F,u,d,y,T){return u=+u,d=d>>>0,T||re(F,u,d,8),r.write(F,u,d,y,52,8),d+8}a.prototype.writeDoubleLE=function(u,d,y){return Ee(this,u,d,!0,y)},a.prototype.writeDoubleBE=function(u,d,y){return Ee(this,u,d,!1,y)},a.prototype.copy=function(u,d,y,T){if(!a.isBuffer(u))throw new TypeError("argument should be a Buffer");if(y||(y=0),!T&&T!==0&&(T=this.length),d>=u.length&&(d=u.length),d||(d=0),T>0&&T<y&&(T=y),T===y||u.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(y<0||y>=this.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),u.length-d<T-y&&(T=u.length-d+y);var W=T-y;return this===u&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,y,T):Uint8Array.prototype.set.call(u,this.subarray(y,T),d),W},a.prototype.fill=function(u,d,y,T){if(typeof u=="string"){if(typeof d=="string"?(T=d,d=0,y=this.length):typeof y=="string"&&(T=y,y=this.length),T!==void 0&&typeof T!="string")throw new TypeError("encoding must be a string");if(typeof T=="string"&&!a.isEncoding(T))throw new TypeError("Unknown encoding: "+T);if(u.length===1){var W=u.charCodeAt(0);(T==="utf8"&&W<128||T==="latin1")&&(u=W)}}else typeof u=="number"?u=u&255:typeof u=="boolean"&&(u=Number(u));if(d<0||this.length<d||this.length<y)throw new RangeError("Out of range index");if(y<=d)return this;d=d>>>0,y=y===void 0?this.length:y>>>0,u||(u=0);var K;if(typeof u=="number")for(K=d;K<y;++K)this[K]=u;else{var pe=a.isBuffer(u)?u:a.from(u,T),Ce=pe.length;if(Ce===0)throw new TypeError('The value "'+u+'" is invalid for argument "value"');for(K=0;K<y-d;++K)this[K+d]=pe[K%Ce]}return this};var we=/[^+/0-9A-Za-z-_]/g;function Me(F){if(F=F.split("=")[0],F=F.trim().replace(we,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function ve(F,u){u=u||1/0;for(var d,y=F.length,T=null,W=[],K=0;K<y;++K){if(d=F.charCodeAt(K),d>55295&&d<57344){if(!T){if(d>56319){(u-=3)>-1&&W.push(239,191,189);continue}else if(K+1===y){(u-=3)>-1&&W.push(239,191,189);continue}T=d;continue}if(d<56320){(u-=3)>-1&&W.push(239,191,189),T=d;continue}d=(T-55296<<10|d-56320)+65536}else T&&(u-=3)>-1&&W.push(239,191,189);if(T=null,d<128){if((u-=1)<0)break;W.push(d)}else if(d<2048){if((u-=2)<0)break;W.push(d>>6|192,d&63|128)}else if(d<65536){if((u-=3)<0)break;W.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((u-=4)<0)break;W.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return W}function _e(F){for(var u=[],d=0;d<F.length;++d)u.push(F.charCodeAt(d)&255);return u}function Pe(F,u){for(var d,y,T,W=[],K=0;K<F.length&&!((u-=2)<0);++K)d=F.charCodeAt(K),y=d>>8,T=d%256,W.push(T),W.push(y);return W}function Ge(F){return e.toByteArray(Me(F))}function Ve(F,u,d,y){for(var T=0;T<y&&!(T+d>=u.length||T>=F.length);++T)u[T+d]=F[T];return T}function Oe(F,u){return F instanceof u||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===u.name}function je(F){return F!==F}var Ke=function(){for(var F="0123456789abcdef",u=new Array(256),d=0;d<16;++d)for(var y=d*16,T=0;T<16;++T)u[y+T]=F[d]+F[T];return u}()})(Fe);var H1=Fe.Buffer,z1=function(t){if(t instanceof Uint8Array){if(t.byteOffset===0&&t.byteLength===t.buffer.byteLength)return t.buffer;if(typeof t.buffer.slice=="function")return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(H1.isBuffer(t)){for(var e=new Uint8Array(t.length),r=t.length,n=0;n<r;n++)e[n]=t[n];return e.buffer}else throw new Error("Argument must be a Buffer")};const vn=dt(z1);var wc={exports:{}};(function(t,e){(function(){var r,n=0xdeadbeefcafe,i=(n&16777215)==15715070;function o(p,g,B){p!=null&&(typeof p=="number"?this.fromNumber(p,g,B):g==null&&typeof p!="string"?this.fromString(p,256):this.fromString(p,g))}function s(){return new o(null)}function a(p,g,B,$,ne,se){for(;--se>=0;){var de=g*this[p++]+B[$]+ne;ne=Math.floor(de/67108864),B[$++]=de&67108863}return ne}function h(p,g,B,$,ne,se){for(var de=g&32767,xe=g>>15;--se>=0;){var qe=this[p]&32767,st=this[p++]>>15,Ct=xe*qe+st*de;qe=de*qe+((Ct&32767)<<15)+B[$]+(ne&1073741823),ne=(qe>>>30)+(Ct>>>15)+xe*st+(ne>>>30),B[$++]=qe&1073741823}return ne}function c(p,g,B,$,ne,se){for(var de=g&16383,xe=g>>14;--se>=0;){var qe=this[p]&16383,st=this[p++]>>14,Ct=xe*qe+st*de;qe=de*qe+((Ct&16383)<<14)+B[$]+ne,ne=(qe>>28)+(Ct>>14)+xe*st,B[$++]=qe&268435455}return ne}var f=typeof navigator!="undefined";f&&i&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=h,r=30):f&&i&&navigator.appName!="Netscape"?(o.prototype.am=a,r=26):(o.prototype.am=c,r=28),o.prototype.DB=r,o.prototype.DM=(1<<r)-1,o.prototype.DV=1<<r;var x=52;o.prototype.FV=Math.pow(2,x),o.prototype.F1=x-r,o.prototype.F2=2*r-x;var l="0123456789abcdefghijklmnopqrstuvwxyz",m=new Array,v,E;for(v=48,E=0;E<=9;++E)m[v++]=E;for(v=97,E=10;E<36;++E)m[v++]=E;for(v=65,E=10;E<36;++E)m[v++]=E;function A(p){return l.charAt(p)}function R(p,g){var B=m[p.charCodeAt(g)];return B==null?-1:B}function w(p){for(var g=this.t-1;g>=0;--g)p[g]=this[g];p.t=this.t,p.s=this.s}function _(p){this.t=1,this.s=p<0?-1:0,p>0?this[0]=p:p<-1?this[0]=p+this.DV:this.t=0}function D(p){var g=s();return g.fromInt(p),g}function C(p,g){var B;if(g==16)B=4;else if(g==8)B=3;else if(g==256)B=8;else if(g==2)B=1;else if(g==32)B=5;else if(g==4)B=2;else{this.fromRadix(p,g);return}this.t=0,this.s=0;for(var $=p.length,ne=!1,se=0;--$>=0;){var de=B==8?p[$]&255:R(p,$);if(de<0){p.charAt($)=="-"&&(ne=!0);continue}ne=!1,se==0?this[this.t++]=de:se+B>this.DB?(this[this.t-1]|=(de&(1<<this.DB-se)-1)<<se,this[this.t++]=de>>this.DB-se):this[this.t-1]|=de<<se,se+=B,se>=this.DB&&(se-=this.DB)}B==8&&p[0]&128&&(this.s=-1,se>0&&(this[this.t-1]|=(1<<this.DB-se)-1<<se)),this.clamp(),ne&&o.ZERO.subTo(this,this)}function O(){for(var p=this.s&this.DM;this.t>0&&this[this.t-1]==p;)--this.t}function L(p){if(this.s<0)return"-"+this.negate().toString(p);var g;if(p==16)g=4;else if(p==8)g=3;else if(p==2)g=1;else if(p==32)g=5;else if(p==4)g=2;else return this.toRadix(p);var B=(1<<g)-1,$,ne=!1,se="",de=this.t,xe=this.DB-de*this.DB%g;if(de-- >0)for(xe<this.DB&&($=this[de]>>xe)>0&&(ne=!0,se=A($));de>=0;)xe<g?($=(this[de]&(1<<xe)-1)<<g-xe,$|=this[--de]>>(xe+=this.DB-g)):($=this[de]>>(xe-=g)&B,xe<=0&&(xe+=this.DB,--de)),$>0&&(ne=!0),ne&&(se+=A($));return ne?se:"0"}function H(){var p=s();return o.ZERO.subTo(this,p),p}function Z(){return this.s<0?this.negate():this}function P(p){var g=this.s-p.s;if(g!=0)return g;var B=this.t;if(g=B-p.t,g!=0)return this.s<0?-g:g;for(;--B>=0;)if((g=this[B]-p[B])!=0)return g;return 0}function k(p){var g=1,B;return(B=p>>>16)!=0&&(p=B,g+=16),(B=p>>8)!=0&&(p=B,g+=8),(B=p>>4)!=0&&(p=B,g+=4),(B=p>>2)!=0&&(p=B,g+=2),(B=p>>1)!=0&&(p=B,g+=1),g}function V(){return this.t<=0?0:this.DB*(this.t-1)+k(this[this.t-1]^this.s&this.DM)}function X(p,g){var B;for(B=this.t-1;B>=0;--B)g[B+p]=this[B];for(B=p-1;B>=0;--B)g[B]=0;g.t=this.t+p,g.s=this.s}function te(p,g){for(var B=p;B<this.t;++B)g[B-p]=this[B];g.t=Math.max(this.t-p,0),g.s=this.s}function Y(p,g){var B=p%this.DB,$=this.DB-B,ne=(1<<$)-1,se=Math.floor(p/this.DB),de=this.s<<B&this.DM,xe;for(xe=this.t-1;xe>=0;--xe)g[xe+se+1]=this[xe]>>$|de,de=(this[xe]&ne)<<B;for(xe=se-1;xe>=0;--xe)g[xe]=0;g[se]=de,g.t=this.t+se+1,g.s=this.s,g.clamp()}function Q(p,g){g.s=this.s;var B=Math.floor(p/this.DB);if(B>=this.t){g.t=0;return}var $=p%this.DB,ne=this.DB-$,se=(1<<$)-1;g[0]=this[B]>>$;for(var de=B+1;de<this.t;++de)g[de-B-1]|=(this[de]&se)<<ne,g[de-B]=this[de]>>$;$>0&&(g[this.t-B-1]|=(this.s&se)<<ne),g.t=this.t-B,g.clamp()}function oe(p,g){for(var B=0,$=0,ne=Math.min(p.t,this.t);B<ne;)$+=this[B]-p[B],g[B++]=$&this.DM,$>>=this.DB;if(p.t<this.t){for($-=p.s;B<this.t;)$+=this[B],g[B++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;B<p.t;)$-=p[B],g[B++]=$&this.DM,$>>=this.DB;$-=p.s}g.s=$<0?-1:0,$<-1?g[B++]=this.DV+$:$>0&&(g[B++]=$),g.t=B,g.clamp()}function ie(p,g){var B=this.abs(),$=p.abs(),ne=B.t;for(g.t=ne+$.t;--ne>=0;)g[ne]=0;for(ne=0;ne<$.t;++ne)g[ne+B.t]=B.am(0,$[ne],g,ne,0,B.t);g.s=0,g.clamp(),this.s!=p.s&&o.ZERO.subTo(g,g)}function he(p){for(var g=this.abs(),B=p.t=2*g.t;--B>=0;)p[B]=0;for(B=0;B<g.t-1;++B){var $=g.am(B,g[B],p,2*B,0,1);(p[B+g.t]+=g.am(B+1,2*g[B],p,2*B+1,$,g.t-B-1))>=g.DV&&(p[B+g.t]-=g.DV,p[B+g.t+1]=1)}p.t>0&&(p[p.t-1]+=g.am(B,g[B],p,2*B,0,1)),p.s=0,p.clamp()}function fe(p,g,B){var $=p.abs();if(!($.t<=0)){var ne=this.abs();if(ne.t<$.t){g!=null&&g.fromInt(0),B!=null&&this.copyTo(B);return}B==null&&(B=s());var se=s(),de=this.s,xe=p.s,qe=this.DB-k($[$.t-1]);qe>0?($.lShiftTo(qe,se),ne.lShiftTo(qe,B)):($.copyTo(se),ne.copyTo(B));var st=se.t,Ct=se[st-1];if(Ct!=0){var At=Ct*(1<<this.F1)+(st>1?se[st-2]>>this.F2:0),Xt=this.FV/At,Di=(1<<this.F1)/At,Rt=1<<this.F2,It=B.t,Si=It-st,or=g==null?s():g;for(se.dlShiftTo(Si,or),B.compareTo(or)>=0&&(B[B.t++]=1,B.subTo(or,B)),o.ONE.dlShiftTo(st,or),or.subTo(se,se);se.t<st;)se[se.t++]=0;for(;--Si>=0;){var X0=B[--It]==Ct?this.DM:Math.floor(B[It]*Xt+(B[It-1]+Rt)*Di);if((B[It]+=se.am(0,X0,B,Si,0,st))<X0)for(se.dlShiftTo(Si,or),B.subTo(or,B);B[It]<--X0;)B.subTo(or,B)}g!=null&&(B.drShiftTo(st,g),de!=xe&&o.ZERO.subTo(g,g)),B.t=st,B.clamp(),qe>0&&B.rShiftTo(qe,B),de<0&&o.ZERO.subTo(B,B)}}}function z(p){var g=s();return this.abs().divRemTo(p,null,g),this.s<0&&g.compareTo(o.ZERO)>0&&p.subTo(g,g),g}function j(p){this.m=p}function re(p){return p.s<0||p.compareTo(this.m)>=0?p.mod(this.m):p}function J(p){return p}function Ee(p){p.divRemTo(this.m,null,p)}function we(p,g,B){p.multiplyTo(g,B),this.reduce(B)}function Me(p,g){p.squareTo(g),this.reduce(g)}j.prototype.convert=re,j.prototype.revert=J,j.prototype.reduce=Ee,j.prototype.mulTo=we,j.prototype.sqrTo=Me;function ve(){if(this.t<1)return 0;var p=this[0];if(!(p&1))return 0;var g=p&3;return g=g*(2-(p&15)*g)&15,g=g*(2-(p&255)*g)&255,g=g*(2-((p&65535)*g&65535))&65535,g=g*(2-p*g%this.DV)%this.DV,g>0?this.DV-g:-g}function _e(p){this.m=p,this.mp=p.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<p.DB-15)-1,this.mt2=2*p.t}function Pe(p){var g=s();return p.abs().dlShiftTo(this.m.t,g),g.divRemTo(this.m,null,g),p.s<0&&g.compareTo(o.ZERO)>0&&this.m.subTo(g,g),g}function Ge(p){var g=s();return p.copyTo(g),this.reduce(g),g}function Ve(p){for(;p.t<=this.mt2;)p[p.t++]=0;for(var g=0;g<this.m.t;++g){var B=p[g]&32767,$=B*this.mpl+((B*this.mph+(p[g]>>15)*this.mpl&this.um)<<15)&p.DM;for(B=g+this.m.t,p[B]+=this.m.am(0,$,p,g,0,this.m.t);p[B]>=p.DV;)p[B]-=p.DV,p[++B]++}p.clamp(),p.drShiftTo(this.m.t,p),p.compareTo(this.m)>=0&&p.subTo(this.m,p)}function Oe(p,g){p.squareTo(g),this.reduce(g)}function je(p,g,B){p.multiplyTo(g,B),this.reduce(B)}_e.prototype.convert=Pe,_e.prototype.revert=Ge,_e.prototype.reduce=Ve,_e.prototype.mulTo=je,_e.prototype.sqrTo=Oe;function Ke(){return(this.t>0?this[0]&1:this.s)==0}function F(p,g){if(p>4294967295||p<1)return o.ONE;var B=s(),$=s(),ne=g.convert(this),se=k(p)-1;for(ne.copyTo(B);--se>=0;)if(g.sqrTo(B,$),(p&1<<se)>0)g.mulTo($,ne,B);else{var de=B;B=$,$=de}return g.revert(B)}function u(p,g){var B;return p<256||g.isEven()?B=new j(g):B=new _e(g),this.exp(p,B)}o.prototype.copyTo=w,o.prototype.fromInt=_,o.prototype.fromString=C,o.prototype.clamp=O,o.prototype.dlShiftTo=X,o.prototype.drShiftTo=te,o.prototype.lShiftTo=Y,o.prototype.rShiftTo=Q,o.prototype.subTo=oe,o.prototype.multiplyTo=ie,o.prototype.squareTo=he,o.prototype.divRemTo=fe,o.prototype.invDigit=ve,o.prototype.isEven=Ke,o.prototype.exp=F,o.prototype.toString=L,o.prototype.negate=H,o.prototype.abs=Z,o.prototype.compareTo=P,o.prototype.bitLength=V,o.prototype.mod=z,o.prototype.modPowInt=u,o.ZERO=D(0),o.ONE=D(1);function d(){var p=s();return this.copyTo(p),p}function y(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function T(){return this.t==0?this.s:this[0]<<24>>24}function W(){return this.t==0?this.s:this[0]<<16>>16}function K(p){return Math.floor(Math.LN2*this.DB/Math.log(p))}function pe(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Ce(p){if(p==null&&(p=10),this.signum()==0||p<2||p>36)return"0";var g=this.chunkSize(p),B=Math.pow(p,g),$=D(B),ne=s(),se=s(),de="";for(this.divRemTo($,ne,se);ne.signum()>0;)de=(B+se.intValue()).toString(p).substr(1)+de,ne.divRemTo($,ne,se);return se.intValue().toString(p)+de}function be(p,g){this.fromInt(0),g==null&&(g=10);for(var B=this.chunkSize(g),$=Math.pow(g,B),ne=!1,se=0,de=0,xe=0;xe<p.length;++xe){var qe=R(p,xe);if(qe<0){p.charAt(xe)=="-"&&this.signum()==0&&(ne=!0);continue}de=g*de+qe,++se>=B&&(this.dMultiply($),this.dAddOffset(de,0),se=0,de=0)}se>0&&(this.dMultiply(Math.pow(g,se)),this.dAddOffset(de,0)),ne&&o.ZERO.subTo(this,this)}function Be(p,g,B){if(typeof g=="number")if(p<2)this.fromInt(1);else for(this.fromNumber(p,B),this.testBit(p-1)||this.bitwiseTo(o.ONE.shiftLeft(p-1),qt,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(g);)this.dAddOffset(2,0),this.bitLength()>p&&this.subTo(o.ONE.shiftLeft(p-1),this);else{var $=new Array,ne=p&7;$.length=(p>>3)+1,g.nextBytes($),ne>0?$[0]&=(1<<ne)-1:$[0]=0,this.fromString($,256)}}function ke(){var p=this.t,g=new Array;g[0]=this.s;var B=this.DB-p*this.DB%8,$,ne=0;if(p-- >0)for(B<this.DB&&($=this[p]>>B)!=(this.s&this.DM)>>B&&(g[ne++]=$|this.s<<this.DB-B);p>=0;)B<8?($=(this[p]&(1<<B)-1)<<8-B,$|=this[--p]>>(B+=this.DB-8)):($=this[p]>>(B-=8)&255,B<=0&&(B+=this.DB,--p)),$&128&&($|=-256),ne==0&&(this.s&128)!=($&128)&&++ne,(ne>0||$!=this.s)&&(g[ne++]=$);return g}function gt(p){return this.compareTo(p)==0}function __$t__(p){return this.compareTo(p)<0?this:p}function Ht(p){return this.compareTo(p)>0?this:p}function Ft(p,g,B){var $,ne,se=Math.min(p.t,this.t);for($=0;$<se;++$)B[$]=g(this[$],p[$]);if(p.t<this.t){for(ne=p.s&this.DM,$=se;$<this.t;++$)B[$]=g(this[$],ne);B.t=this.t}else{for(ne=this.s&this.DM,$=se;$<p.t;++$)B[$]=g(ne,p[$]);B.t=p.t}B.s=g(this.s,p.s),B.clamp()}function zt(p,g){return p&g}function zr(p){var g=s();return this.bitwiseTo(p,zt,g),g}function qt(p,g){return p|g}function qr(p){var g=s();return this.bitwiseTo(p,qt,g),g}function Wr(p,g){return p^g}function gr(p){var g=s();return this.bitwiseTo(p,Wr,g),g}function nr(p,g){return p&~g}function bn(p){var g=s();return this.bitwiseTo(p,nr,g),g}function Et(){for(var p=s(),g=0;g<this.t;++g)p[g]=this.DM&~this[g];return p.t=this.t,p.s=~this.s,p}function Cn(p){var g=s();return p<0?this.rShiftTo(-p,g):this.lShiftTo(p,g),g}function Vr(p){var g=s();return p<0?this.lShiftTo(-p,g):this.rShiftTo(p,g),g}function Gr(p){if(p==0)return-1;var g=0;return p&65535||(p>>=16,g+=16),p&255||(p>>=8,g+=8),p&15||(p>>=4,g+=4),p&3||(p>>=2,g+=2),p&1||++g,g}function Bn(){for(var p=0;p<this.t;++p)if(this[p]!=0)return p*this.DB+Gr(this[p]);return this.s<0?this.t*this.DB:-1}function Dn(p){for(var g=0;p!=0;)p&=p-1,++g;return g}function jr(){for(var p=0,g=this.s&this.DM,B=0;B<this.t;++B)p+=Dn(this[B]^g);return p}function Sn(p){var g=Math.floor(p/this.DB);return g>=this.t?this.s!=0:(this[g]&1<<p%this.DB)!=0}function Fn(p,g){var B=o.ONE.shiftLeft(p);return this.bitwiseTo(B,g,B),B}function Kr(p){return this.changeBit(p,qt)}function Rn(p){return this.changeBit(p,nr)}function Yr(p){return this.changeBit(p,Wr)}function ft(p,g){for(var B=0,$=0,ne=Math.min(p.t,this.t);B<ne;)$+=this[B]+p[B],g[B++]=$&this.DM,$>>=this.DB;if(p.t<this.t){for($+=p.s;B<this.t;)$+=this[B],g[B++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;B<p.t;)$+=p[B],g[B++]=$&this.DM,$>>=this.DB;$+=p.s}g.s=$<0?-1:0,$>0?g[B++]=$:$<-1&&(g[B++]=this.DV+$),g.t=B,g.clamp()}function bt(p){var g=s();return this.addTo(p,g),g}function Er(p){var g=s();return this.subTo(p,g),g}function In(p){var g=s();return this.multiplyTo(p,g),g}function P0(){var p=s();return this.squareTo(p),p}function N0(p){var g=s();return this.divRemTo(p,g,null),g}function L0(p){var g=s();return this.divRemTo(p,null,g),g}function k0(p){var g=s(),B=s();return this.divRemTo(p,g,B),new Array(g,B)}function M0(p){this[this.t]=this.am(0,p-1,this,0,0,this.t),++this.t,this.clamp()}function U0(p,g){if(p!=0){for(;this.t<=g;)this[this.t++]=0;for(this[g]+=p;this[g]>=this.DV;)this[g]-=this.DV,++g>=this.t&&(this[this.t++]=0),++this[g]}}function Ar(){}function bi(p){return p}function $0(p,g,B){p.multiplyTo(g,B)}function H0(p,g){p.squareTo(g)}Ar.prototype.convert=bi,Ar.prototype.revert=bi,Ar.prototype.mulTo=$0,Ar.prototype.sqrTo=H0;function z0(p){return this.exp(p,new Ar)}function q0(p,g,B){var $=Math.min(this.t+p.t,g);for(B.s=0,B.t=$;$>0;)B[--$]=0;var ne;for(ne=B.t-this.t;$<ne;++$)B[$+this.t]=this.am(0,p[$],B,$,0,this.t);for(ne=Math.min(p.t,g);$<ne;++$)this.am(0,p[$],B,$,0,g-$);B.clamp()}function W0(p,g,B){--g;var $=B.t=this.t+p.t-g;for(B.s=0;--$>=0;)B[$]=0;for($=Math.max(g-this.t,0);$<p.t;++$)B[this.t+$-g]=this.am(g-$,p[$],B,0,0,this.t+$-g);B.clamp(),B.drShiftTo(1,B)}function Yt(p){this.r2=s(),this.q3=s(),o.ONE.dlShiftTo(2*p.t,this.r2),this.mu=this.r2.divide(p),this.m=p}function Ci(p){if(p.s<0||p.t>2*this.m.t)return p.mod(this.m);if(p.compareTo(this.m)<0)return p;var g=s();return p.copyTo(g),this.reduce(g),g}function wr(p){return p}function Bi(p){for(p.drShiftTo(this.m.t-1,this.r2),p.t>this.m.t+1&&(p.t=this.m.t+1,p.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);p.compareTo(this.r2)<0;)p.dAddOffset(1,this.m.t+1);for(p.subTo(this.r2,p);p.compareTo(this.m)>=0;)p.subTo(this.m,p)}function ir(p,g){p.squareTo(g),this.reduce(g)}function V0(p,g,B){p.multiplyTo(g,B),this.reduce(B)}Yt.prototype.convert=Ci,Yt.prototype.revert=wr,Yt.prototype.reduce=Bi,Yt.prototype.mulTo=V0,Yt.prototype.sqrTo=ir;function Xr(p,g){var B=p.bitLength(),$,ne=D(1),se;if(B<=0)return ne;B<18?$=1:B<48?$=3:B<144?$=4:B<768?$=5:$=6,B<8?se=new j(g):g.isEven()?se=new Yt(g):se=new _e(g);var de=new Array,xe=3,qe=$-1,st=(1<<$)-1;if(de[1]=se.convert(this),$>1){var Ct=s();for(se.sqrTo(de[1],Ct);xe<=st;)de[xe]=s(),se.mulTo(Ct,de[xe-2],de[xe]),xe+=2}var At=p.t-1,Xt,Di=!0,Rt=s(),It;for(B=k(p[At])-1;At>=0;){for(B>=qe?Xt=p[At]>>B-qe&st:(Xt=(p[At]&(1<<B+1)-1)<<qe-B,At>0&&(Xt|=p[At-1]>>this.DB+B-qe)),xe=$;!(Xt&1);)Xt>>=1,--xe;if((B-=xe)<0&&(B+=this.DB,--At),Di)de[Xt].copyTo(ne),Di=!1;else{for(;xe>1;)se.sqrTo(ne,Rt),se.sqrTo(Rt,ne),xe-=2;xe>0?se.sqrTo(ne,Rt):(It=ne,ne=Rt,Rt=It),se.mulTo(Rt,de[Xt],ne)}for(;At>=0&&!(p[At]&1<<B);)se.sqrTo(ne,Rt),It=ne,ne=Rt,Rt=It,--B<0&&(B=this.DB-1,--At)}return se.revert(ne)}function Tn(p){var g=this.s<0?this.negate():this.clone(),B=p.s<0?p.negate():p.clone();if(g.compareTo(B)<0){var $=g;g=B,B=$}var ne=g.getLowestSetBit(),se=B.getLowestSetBit();if(se<0)return g;for(ne<se&&(se=ne),se>0&&(g.rShiftTo(se,g),B.rShiftTo(se,B));g.signum()>0;)(ne=g.getLowestSetBit())>0&&g.rShiftTo(ne,g),(ne=B.getLowestSetBit())>0&&B.rShiftTo(ne,B),g.compareTo(B)>=0?(g.subTo(B,g),g.rShiftTo(1,g)):(B.subTo(g,B),B.rShiftTo(1,B));return se>0&&B.lShiftTo(se,B),B}function G0(p){if(p<=0)return 0;var g=this.DV%p,B=this.s<0?p-1:0;if(this.t>0)if(g==0)B=this[0]%p;else for(var $=this.t-1;$>=0;--$)B=(g*B+this[$])%p;return B}function j0(p){var g=p.isEven();if(this.isEven()&&g||p.signum()==0)return o.ZERO;for(var B=p.clone(),$=this.clone(),ne=D(1),se=D(0),de=D(0),xe=D(1);B.signum()!=0;){for(;B.isEven();)B.rShiftTo(1,B),g?((!ne.isEven()||!se.isEven())&&(ne.addTo(this,ne),se.subTo(p,se)),ne.rShiftTo(1,ne)):se.isEven()||se.subTo(p,se),se.rShiftTo(1,se);for(;$.isEven();)$.rShiftTo(1,$),g?((!de.isEven()||!xe.isEven())&&(de.addTo(this,de),xe.subTo(p,xe)),de.rShiftTo(1,de)):xe.isEven()||xe.subTo(p,xe),xe.rShiftTo(1,xe);B.compareTo($)>=0?(B.subTo($,B),g&&ne.subTo(de,ne),se.subTo(xe,se)):($.subTo(B,$),g&&de.subTo(ne,de),xe.subTo(se,xe))}if($.compareTo(o.ONE)!=0)return o.ZERO;if(xe.compareTo(p)>=0)return xe.subtract(p);if(xe.signum()<0)xe.addTo(p,xe);else return xe;return xe.signum()<0?xe.add(p):xe}var nt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],K0=(1<<26)/nt[nt.length-1];function Y0(p){var g,B=this.abs();if(B.t==1&&B[0]<=nt[nt.length-1]){for(g=0;g<nt.length;++g)if(B[0]==nt[g])return!0;return!1}if(B.isEven())return!1;for(g=1;g<nt.length;){for(var $=nt[g],ne=g+1;ne<nt.length&&$<K0;)$*=nt[ne++];for($=B.modInt($);g<ne;)if($%nt[g++]==0)return!1}return B.millerRabin(p)}function b(p){var g=this.subtract(o.ONE),B=g.getLowestSetBit();if(B<=0)return!1;var $=g.shiftRight(B);p=p+1>>1,p>nt.length&&(p=nt.length);for(var ne=s(),se=0;se<p;++se){ne.fromInt(nt[Math.floor(Math.random()*nt.length)]);var de=ne.modPow($,this);if(de.compareTo(o.ONE)!=0&&de.compareTo(g)!=0){for(var xe=1;xe++<B&&de.compareTo(g)!=0;)if(de=de.modPowInt(2,this),de.compareTo(o.ONE)==0)return!1;if(de.compareTo(g)!=0)return!1}}return!0}o.prototype.chunkSize=K,o.prototype.toRadix=Ce,o.prototype.fromRadix=be,o.prototype.fromNumber=Be,o.prototype.bitwiseTo=Ft,o.prototype.changeBit=Fn,o.prototype.addTo=ft,o.prototype.dMultiply=M0,o.prototype.dAddOffset=U0,o.prototype.multiplyLowerTo=q0,o.prototype.multiplyUpperTo=W0,o.prototype.modInt=G0,o.prototype.millerRabin=b,o.prototype.clone=d,o.prototype.intValue=y,o.prototype.byteValue=T,o.prototype.shortValue=W,o.prototype.signum=pe,o.prototype.toByteArray=ke,o.prototype.equals=gt,o.prototype.min=__$t__,o.prototype.max=Ht,o.prototype.and=zr,o.prototype.or=qr,o.prototype.xor=gr,o.prototype.andNot=bn,o.prototype.not=Et,o.prototype.shiftLeft=Cn,o.prototype.shiftRight=Vr,o.prototype.getLowestSetBit=Bn,o.prototype.bitCount=jr,o.prototype.testBit=Sn,o.prototype.setBit=Kr,o.prototype.clearBit=Rn,o.prototype.flipBit=Yr,o.prototype.add=bt,o.prototype.subtract=Er,o.prototype.multiply=In,o.prototype.divide=N0,o.prototype.remainder=L0,o.prototype.divideAndRemainder=k0,o.prototype.modPow=Xr,o.prototype.modInverse=j0,o.prototype.pow=z0,o.prototype.gcd=Tn,o.prototype.isProbablePrime=Y0,o.prototype.square=P0,o.prototype.Barrett=Yt;var N,S,M;function q(p){S[M++]^=p&255,S[M++]^=p>>8&255,S[M++]^=p>>16&255,S[M++]^=p>>24&255,M>=Xe&&(M-=Xe)}function U(){q(new Date().getTime())}if(S==null){S=new Array,M=0;var ee;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var ae=new Uint8Array(32);for(window.crypto.getRandomValues(ae),ee=0;ee<32;++ee)S[M++]=ae[ee]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ce=window.crypto.random(32);for(ee=0;ee<ce.length;++ee)S[M++]=ce.charCodeAt(ee)&255}}for(;M<Xe;)ee=Math.floor(65536*Math.random()),S[M++]=ee>>>8,S[M++]=ee&255;M=0,U()}function ue(){if(N==null){for(U(),N=Qe(),N.init(S),M=0;M<S.length;++M)S[M]=0;M=0}return N.next()}function le(p){var g;for(g=0;g<p.length;++g)p[g]=ue()}function ge(){}ge.prototype.nextBytes=le;function Se(){this.i=0,this.j=0,this.S=new Array}function Ue(p){var g,B,$;for(g=0;g<256;++g)this.S[g]=g;for(B=0,g=0;g<256;++g)B=B+this.S[g]+p[g%p.length]&255,$=this.S[g],this.S[g]=this.S[B],this.S[B]=$;this.i=0,this.j=0}function $e(){var p;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,p=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=p,this.S[p+this.S[this.i]&255]}Se.prototype.init=Ue,Se.prototype.next=$e;function Qe(){return new Se}var Xe=256;t.exports={default:o,BigInteger:o,SecureRandom:ge}}).call(ye)})(wc);var He=wc.exports,q1=He.BigInteger.prototype.Barrett;function xt(t,e){this.x=e,this.q=t}function vt(t,e,r,n){this.curve=t,this.x=e,this.y=r,this.z=n==null?He.BigInteger.ONE:n,this.zinv=null}function Mt(t,e,r){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new vt(this,null,null),this.reducer=new q1(this.q)}xt.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},xt.prototype.toBigInteger=function(){return this.x},xt.prototype.negate=function(){return new xt(this.q,this.x.negate().mod(this.q))},xt.prototype.add=function(t){return new xt(this.q,this.x.add(t.toBigInteger()).mod(this.q))},xt.prototype.subtract=function(t){return new xt(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},xt.prototype.multiply=function(t){return new xt(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},xt.prototype.square=function(){return new xt(this.q,this.x.square().mod(this.q))},xt.prototype.divide=function(t){return new xt(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},vt.prototype.getX=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var t=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(t),this.curve.fromBigInteger(t)},vt.prototype.getY=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var t=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(t),this.curve.fromBigInteger(t)},vt.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(He.BigInteger.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(He.BigInteger.ZERO))},vt.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(He.BigInteger.ZERO)&&!this.y.toBigInteger().equals(He.BigInteger.ZERO)},vt.prototype.negate=function(){return new vt(this.curve,this.x,this.y.negate(),this.z)},vt.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),r=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(He.BigInteger.ZERO.equals(r))return He.BigInteger.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new He.BigInteger("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),s=(t.x.toBigInteger(),t.y.toBigInteger(),r.square()),a=s.multiply(r),h=i.multiply(s),c=e.square().multiply(this.z),f=c.subtract(h.shiftLeft(1)).multiply(t.z).subtract(a).multiply(r).mod(this.curve.q),x=h.multiply(n).multiply(e).subtract(o.multiply(a)).subtract(c.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),l=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new vt(this.curve,this.curve.fromBigInteger(f),this.curve.fromBigInteger(x),l)},vt.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var t=new He.BigInteger("3"),e=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),i=n.multiply(r).mod(this.curve.q),o=this.curve.a.toBigInteger(),s=e.square().multiply(t);He.BigInteger.ZERO.equals(o)||(s=s.add(this.z.square().multiply(o)));var a=(s=s.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.q),h=s.multiply(t).multiply(e).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(s.square().multiply(s)).mod(this.curve.q),c=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new vt(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(h),c)},vt.prototype.multiply=function(t){if(this.isInfinity())return this;if(t.signum()==0)return this.curve.getInfinity();var e,r=t,n=r.multiply(new He.BigInteger("3")),i=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var s=n.testBit(e);s!=r.testBit(e)&&(o=o.add(s?this:i))}return o},vt.prototype.multiplyTwo=function(t,e,r){var n;n=t.bitLength()>r.bitLength()?t.bitLength()-1:r.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(e);n>=0;)i=i.twice(),t.testBit(n)?i=r.testBit(n)?i.add(o):i.add(this):r.testBit(n)&&(i=i.add(e)),--n;return i},Mt.prototype.getQ=function(){return this.q},Mt.prototype.getA=function(){return this.a},Mt.prototype.getB=function(){return this.b},Mt.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},Mt.prototype.getInfinity=function(){return this.infinity},Mt.prototype.fromBigInteger=function(t){return new xt(this.q,t)},Mt.prototype.reduce=function(t){this.reducer.reduce(t)},Mt.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,r=t.substr(2,e),n=t.substr(e+2,e);return new vt(this,this.fromBigInteger(new He.BigInteger(r,16)),this.fromBigInteger(new He.BigInteger(n,16)));default:return null}},Mt.prototype.encodePointHex=function(t){if(t.isInfinity())return"00";var e=t.getX().toBigInteger().toString(16),r=t.getY().toBigInteger().toString(16),n=this.getQ().toString(16).length;for(n%2!=0&&n++;e.length<n;)e="0"+e;for(;r.length<n;)r="0"+r;return"04"+e+r};var at=function(t,e){return t<<(e%=32)|t>>>32-e},Ut=function(t,e){var r=e-t.length;return(r>0?"0".repeat(r):"")+t},W1=function(t){return t<16?2043430169:2055708042},V1=function(t,e,r,n){return n<16?t^e^r:t&e|t&r|e&r},G1=function(t,e,r,n){return n<16?t^e^r:t&e|~t&r},j1=function(t,e,r){for(var n,i,o,s,a,h=function(w){var _,D=new Array(132);w.forEach(function(L,H){D[H]=L});for(var C=16;C<68;C++)D[C]=(_=D[C-16]^D[C-9]^at(D[C-3],15))^at(_,15)^at(_,23)^at(D[C-13],7)^D[C-6];for(var O=0;O<64;O++)D[O+68]=D[O]^D[O+4];return D}(e),c=t[0],f=t[1],x=t[2],l=t[3],m=t[4],v=t[5],E=t[6],A=t[7],R=0;R<64;R++)i=(n=at(at(c,12)+m+at(W1(R),R),7))^at(c,12),o=V1(c,f,x,R)+l+i+h[R+68],s=G1(m,v,E,R)+A+n+h[R],l=x,x=at(f,9),f=c,c=o,A=E,E=at(v,19),v=m,m=(a=s)^at(a,9)^at(a,17);return[c^t[0],f^t[1],x^t[2],l^t[3],m^t[4],v^t[5],E^t[6],A^t[7]]},h0=function(t,e,r){if(typeof t=="string"?t=Fe.Buffer.from(t,e||"utf8"):t instanceof ArrayBuffer&&(t=Fe.Buffer.from(t)),!Fe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var n,i,o,s,a,h;n=t,i=Fe.Buffer.alloc(1,128),s=Fe.Buffer.alloc(o=(o=n.length%64)>=56?64-o%56-1:56-o-1,0),a=Fe.Buffer.alloc(8),h=8*n.length,a.writeUInt32BE(Math.floor(h/Math.pow(2,32)),0),a.writeUInt32BE(h%Math.pow(2,32),4);for(var c=(t=Fe.Buffer.concat([n,i,s,a],n.length+1+o+8)).length/64,f=new Array(c),x=0;x<c;x++){f[x]=new Array(16);for(var l=0;l<16;l++)f[x][l]=t.readUInt32BE(64*x+4*l)}var m=new Array(c);m[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var v=0;v<c;v++)m[v+1]=j1(m[v],f[v]);var E=Fe.Buffer.alloc(32);return m[c].forEach(function(A,R){return E.writeInt32BE(A,4*R)}),r?E.toString(r):vn(E)},_c=new He.SecureRandom,d0=function(){var t=new Mt(new He.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new He.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new He.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16)),e=t.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:t,G:e,n:new He.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),bc=d0.curve,Cc=d0.G,li=d0.n;function Bc(t,e){for(var r=[],n=Math.ceil(e/32),i=e%32,o=1;o<=n;o++){var s=Fe.Buffer.allocUnsafe(4);s.writeUInt32BE(o);var a=h0(Fe.Buffer.concat([t,s]));r.push(o===n&&i?Fe.Buffer.from(a).slice(0,i):Fe.Buffer.from(a))}return Fe.Buffer.concat(r,e)}var K1={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var t=new He.BigInteger(li.bitLength(),_c).mod(li.subtract(new He.BigInteger("2"))).add(He.BigInteger.ONE),e=Ut(t.toString(16),64),r=Cc.multiply(t);return{privateKey:e,publicKey:"04"+Ut(r.getX().toBigInteger().toString(16),64)+Ut(r.getY().toBigInteger().toString(16),64)}},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,s=n.outputEncoding,a=n.pc;if(typeof t=="string"?t=Fe.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=Fe.Buffer.from(t)),!Fe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var h=new He.BigInteger(li.bitLength(),_c).mod(li.subtract(He.BigInteger.ONE)).add(He.BigInteger.ONE),c=Cc.multiply(h),f=Ut(c.getX().toBigInteger().toString(16),64)+Ut(c.getY().toBigInteger().toString(16),64),x=bc.decodePointHex(e).multiply(h),l=Ut(x.getX().toBigInteger().toString(16),64),m=Ut(x.getY().toBigInteger().toString(16),64),v=Bc(Fe.Buffer.from(l+m,"hex"),t.length),E=Ut(new He.BigInteger(t.toString("hex"),16).xor(new He.BigInteger(v.toString("hex"),16)).toString(16),2*t.length),A=h0(l+t.toString("hex")+m,"hex","hex"),R=Fe.Buffer.from((a?"04":"")+(o===0?f+E+A:f+A+E),"hex");return s?R.toString(s):vn(R)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,s=n.outputEncoding,a=n.pc;if(typeof t=="string"?t=Fe.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=Fe.Buffer.from(t)),!Fe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var h=(t=a?t.slice(1):t).slice(0,32).toString("hex"),c=t.slice(32,64).toString("hex"),f=bc.decodePointHex("04"+h+c).multiply(new He.BigInteger(e,16)),x=Ut(f.getX().toBigInteger().toString(16),64),l=Ut(f.getY().toBigInteger().toString(16),64),m=t.slice(64,96),v=t.slice(96);o===0&&(m=t.slice(t.length-32),v=t.slice(64,t.length-32));var E=Bc(Fe.Buffer.from(x+l,"hex"),v.length),A=new He.BigInteger(v.toString("hex"),16).xor(new He.BigInteger(E.toString("hex"),16)).toString(16),R=h0(x+A+l,"hex","hex")===m.toString("hex")?Fe.Buffer.from(A,"hex"):Fe.Buffer.alloc(0);return s?R.toString(s):vn(R)}},hi=[[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5],[43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153],[156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98],[228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166],[71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168],[104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53],[30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135],[212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158],[234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161],[224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227],[29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111],[213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81],[141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216],[10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176],[137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132],[24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72]],di=[2746333894,1453994832,1736282519,2993693404],Y1=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257],pi=/^[0-9a-f]{32}$/i,Dc=function(t){return hi[(4026531840&t)>>>28][(251658240&t)>>>24]<<24|hi[(15728640&t)>>>20][(983040&t)>>>16]<<16|hi[(61440&t)>>>12][(3840&t)>>>8]<<8|hi[(240&t)>>>4][(15&t)>>>0]<<0},Sc=function(t){return(e=Dc(t))^at(e,2)^at(e,10)^at(e,18)^at(e,24);var e},Fc=function(t){var e,r=new Array(36);r[0]=t[0]^di[0],r[1]=t[1]^di[1],r[2]=t[2]^di[2],r[3]=t[3]^di[3];for(var n=new Array(32),i=0;i<32;i++)r[i+4]=r[i]^(e=Dc(r[i+1]^r[i+2]^r[i+3]^Y1[i]))^at(e,13)^at(e,23),n[i]=r[i+4];return n},Rc=function(t,e){for(var r=Fc(e),n=0;n<32;n++)t[n+4]=t[n]^Sc(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},Ic=function(t,e){for(var r=Fc(e).reverse(),n=0;n<32;n++)t[n+4]=t[n]^Sc(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},xi=function(t){return[t.readInt32BE(0),t.readInt32BE(4),t.readInt32BE(8),t.readInt32BE(12)]},yi=function(t){for(var e=Fe.Buffer.alloc(16),r=0;r<4;r++)e.writeInt32BE(t[r],4*r);return e},kr={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,s=n.outputEncoding;if(typeof t=="string"?t=Fe.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=Fe.Buffer.from(t)),!Fe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!pi.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=Fe.Buffer.from(e,"hex"),i===2&&!pi.test(o))throw new TypeError("Invalid value of `iv` option");return function(a,h,c,f){c&&(c=xi(c)),h=xi(h);for(var x=[],l=(a=function(C){var O=16-C.length%16,L=Fe.Buffer.alloc(O,O);return Fe.Buffer.concat([C,L],C.length+O)}(a)).length/16,m=0;m<l;m++)if(c){var v=16*m,E=[c[0]^a.readInt32BE(v),c[1]^a.readInt32BE(v+4),c[2]^a.readInt32BE(v+8),c[3]^a.readInt32BE(v+12)],A=Rc(E,h);x.push(yi(A)),c=A.slice(0)}else{var R=16*m,w=[a.readInt32BE(R),a.readInt32BE(R+4),a.readInt32BE(R+8),a.readInt32BE(R+12)],_=Rc(w,h);x.push(yi(_))}var D=Fe.Buffer.concat(x,a.length);return f?D.toString(f):vn(D)}(t,e,o=i===2?Fe.Buffer.from(o,"hex"):null,s)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,s=n.outputEncoding;if(typeof t=="string"?t=Fe.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=Fe.Buffer.from(t)),!Fe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!pi.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=Fe.Buffer.from(e,"hex"),i===2&&!pi.test(o))throw new TypeError("Invalid value of `iv` option");return function(a,h,c,f){c&&(c=xi(c)),h=xi(h);var x=[],l=a.length/16;if(c)for(var m=l-1;m>=0;m--){var v,E=16*m;v=m>0?[a.readInt32BE(E-16),a.readInt32BE(E-16+4),a.readInt32BE(E-16+8),a.readInt32BE(E-16+12)]:c;var A=[a.readInt32BE(E),a.readInt32BE(E+4),a.readInt32BE(E+8),a.readInt32BE(E+12)],R=Ic(A,h);x.unshift(yi([R[0]^v[0],R[1]^v[1],R[2]^v[2],R[3]^v[3]]))}else for(var w=0;w<l;w++){var _=16*w,D=[a.readInt32BE(_),a.readInt32BE(_+4),a.readInt32BE(_+8),a.readInt32BE(_+12)],C=Ic(D,h);x.push(yi(C))}var O=Fe.Buffer.concat(x,a.length-x[x.length-1][15]);return f?O.toString(f):vn(O)}(t,e,o=i===2?Fe.Buffer.from(o,"hex"):null,s)}};(function(){if(typeof Object.id=="undefined"){var t=0;Object.id=function(e){return typeof e.__uniqueid=="undefined"&&Object.defineProperty(e,"__uniqueid",{value:++t,enumerable:!1,writable:!1}),e.__uniqueid}}})();function X1(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1];this.encode=function(r){var n,i,o,s,a,h;for(o=r.length,i=0,n="";i<o;){if(s=r.charCodeAt(i++)&255,i==o){n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4),n+="==";break}if(a=r.charCodeAt(i++),i==o){n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4|(a&240)>>4),n+=t.charAt((a&15)<<2),n+="=";break}h=r.charCodeAt(i++),n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4|(a&240)>>4),n+=t.charAt((a&15)<<2|(h&192)>>6),n+=t.charAt(h&63)}return n},this.decode=function(r){var n,i,o,s,a,h,c;for(h=r.length,a=0,c="";a<h;){do n=e[r.charCodeAt(a++)&255];while(a<h&&n==-1);if(n==-1)break;do i=e[r.charCodeAt(a++)&255];while(a<h&&i==-1);if(i==-1)break;c+=String.fromCharCode(n<<2|(i&48)>>4);do{if(o=r.charCodeAt(a++)&255,o==61)return c;o=e[o]}while(a<h&&o==-1);if(o==-1)break;c+=String.fromCharCode((i&15)<<4|(o&60)>>2);do{if(s=r.charCodeAt(a++)&255,s==61)return c;s=e[s]}while(a<h&&s==-1);if(s==-1)break;c+=String.fromCharCode((o&3)<<6|s)}return c},this.utf16to8=function(r){var n,i,o,s;for(n="",o=r.length,i=0;i<o;i++)s=r.charCodeAt(i),s>=1&&s<=127?n+=r.charAt(i):s>2047?(n+=String.fromCharCode(224|s>>12&15),n+=String.fromCharCode(128|s>>6&63),n+=String.fromCharCode(128|s>>0&63)):(n+=String.fromCharCode(192|s>>6&31),n+=String.fromCharCode(128|s>>0&63));return n},this.utf8to16=function(r){var n,i,o,s,a,h;for(n="",o=r.length,i=0;i<o;)switch(s=r.charCodeAt(i++),s>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n+=r.charAt(i-1);break;case 12:case 13:a=r.charCodeAt(i++),n+=String.fromCharCode((s&31)<<6|a&63);break;case 14:a=r.charCodeAt(i++),h=r.charCodeAt(i++),n+=String.fromCharCode((s&15)<<12|(a&63)<<6|(h&63)<<0);break}return n},this.charToHex=function(r){var n,i,o;for(n="",i=0;i<r.length;)o=r.charCodeAt(i++).toString(16),n+="\\0x"+o,n+=i>0&&i%8==0?`\r
|
|
36
|
-
`:", ";return n}}function J1(){var t=0,e=new Object;this.add=function(r,n){this.containsKey(r)||t++,e[r]=n},this.getValue=function(r){return this.containsKey(r)?e[r]:null},this.remove=function(r){this.containsKey(r)&&delete e[r]&&t--},this.containsKey=function(r){return r in e},this.containsValue=function(r){for(var n in e)if(e[n]==r)return!0;return!1},this.getValues=function(){var r=[];for(var n in e)r.push(e[n]);return r},this.getKeys=function(){var r=[];for(var n in e)r.push(n);return r},this.getSize=function(){return t},this.clear=function(){t=0,e=new Object}}function Q1(t){if(this.connect=!1,this.ready_func_=null,this.callbacks_=new J1,this.module_="JS_IActiveXCtrl","WebSocket"in window)this.ws=new WebSocket("ws://127.0.0.1:7321");else throw"WebSocket not supported";this.ws.onerror=function(){throw"Unable to establish connection to WebSocket"},this.loadModule=function(){this.connect=!0;var e=JSON.stringify({MsgId:"LoadModule",Module:this.module_});this.ws.onmessage=this._callback.bind(this),this.ws.send(e)},this.loadModuleCallBack=function(e){if(!e)throw e.Response;this.ready_func_&&this.ready_func_()}.bind(this),this.callbacks_.add("LoadModule",this.loadModuleCallBack),this.exec=function(e,r,n){var i=Object.id(n).toString();this.callbacks_.add(i,n);var o={MsgId:i,Method:e+"|"+t};r&&(o.Param=JSON.stringify(r));var s=JSON.stringify(o);this.connect&&this.ws.send(s)},this.ready=function(e){this.ready_func_=e},this._callback=function(e){var r=JSON.parse(e.data),n=r.MsgId;if(this.callbacks_.containsKey(n)){var i=this.callbacks_.getValue(n);i(r.Result,r.Response),this.callbacks_.remove(n)}},this.ws.onopen=this.loadModule.bind(this),this.Arm_GetDongleInfo=function({Index:e,DongleInfoNum:r},n){this.exec("Arm_GetDongleInfo",[parseInt(e),parseInt(r)],n)},this.Arm_Enum=function(e){this.exec("Arm_Enum",null,e)},this.Arm_Open=function({Index:e},r){this.exec("Arm_Open",[parseInt(e)],r)},this.Arm_Close=function({Handle:e},r){this.exec("Arm_Close",[parseInt(e)],r)},this.Arm_VerifyPIN=function({Handle:e,UserPin:r,UserType:n},i){this.exec("Arm_VerifyPIN",[parseInt(e),n,r],i)},this.Arm_ResetState=function({Handle:e},r){this.exec("Arm_ResetState",[parseInt(e)],r)},this.Arm_GenRandom=function({Handle:e,RandomLen:r},n){this.exec("Arm_GenRandom",[parseInt(e),parseInt(r)],n)},this.Arm_LEDControl=function({Handle:e,LedFlag:r},n){this.exec("Arm_LEDControl",[parseInt(e),r],n)},this.Arm_SwitchProtocol=function({Handle:e,ProtocolFlag:r},n){this.exec("Arm_SwitchProtocol",[parseInt(e),r],n)},this.Arm_CreateFile=function({Handle:e,FileID:r,FileType:n,AttrBuffer:i},o){this.exec("Arm_CreateFile",[parseInt(e),n,parseInt(r),i],o)},this.Arm_WriteFile=function({Handle:e,FileID:r,FileType:n,FileOffset:i,DataInput:o},s){this.exec("Arm_WriteFile",[parseInt(e),n,parseInt(r),parseInt(i),o],s)},this.Arm_ReadFile0001=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0001"),parseInt(0),parseInt("64")],r)},this.Arm_ReadFile0002=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0002"),parseInt(0),parseInt("130")],r)},this.Arm_ReadFile0003=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0003"),parseInt(0),parseInt("130")],r)},this.Arm_ReadFile0004=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0004"),parseInt(0),parseInt("2048")],r)},this.Arm_ReadFile0005=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0005"),parseInt(0),parseInt("2048")],r)},this.Arm_DownloadExeFile=function({Handle:e,Count:r,ExeFileInfo:n},i){this.exec("Arm_DownloadExeFile",[parseInt(e),parseInt(r),n],i)},this.Arm_RunExeFile=function({Handle:e,FileID:r,InData:n,DataLen:i},o){this.exec("Arm_RunExeFile",[parseInt(e),parseInt(r),n,n.length,parseInt(i)],o)},this.Arm_ReadRunExeFileData=function(e){this.exec("Arm_ReadRunExeFileData",null,e)},this.Arm_DeleteFile=function({Handle:e,FileID:r,FileType:n},i){this.exec("Arm_DeleteFile",[parseInt(e),n,parseInt(r)],i)},this.Arm_WriteData=function({Handle:e,Offset:r,DataInput:n},i){this.exec("Arm_WriteData",[parseInt(e),parseInt(r),n],i)},this.Arm_ReadData=function({Handle:e,Offset:r,ReadLength:n},i){this.exec("Arm_ReadData",[parseInt(e),parseInt(r),n],i)},this.Arm_WriteShareMemory=function({Handle:e,DataInput:r},n){this.exec("Arm_WriteShareMemory",[parseInt(e),r],n)},this.Arm_ReadShareMemory=function({Handle:e},r){this.exec("Arm_ReadShareMemory",[parseInt(e)],r)},this.Arm_GenUniqueKey=function({Handle:e,Seed:r},n){this.exec("Arm_GenUniqueKey",[parseInt(e),r.length,r],n)},this.Arm_ChangePIN=function({Handle:e,NewPIN:r,OldPIN:n,TryCount:i,PinFlag:o},s){this.exec("Arm_ChangePIN",[parseInt(e),o,n,r,parseInt(i)],s)},this.Arm_ResetUserPIN=function({Handle:e,AdminPIN:r},n){this.exec("Arm_ResetUserPIN",[parseInt(e),r],n)},this.Arm_SetUserID=function({Handle:e,UserID:r},n){this.exec("Arm_SetUserID",[parseInt(e),parseInt(r)],n)},this.Arm_GetDeadline=function({Handle:e},r){this.exec("Arm_GetDeadline",[parseInt(e)],r)},this.Arm_SetDeadline=function({Handle:e,SetDeadTime:r},n){this.exec("Arm_SetDeadline",[parseInt(e),parseInt(r)],n)},this.Arm_GetUTCTime=function({Handle:e},r){this.exec("Arm_GetUTCTime",[parseInt(e)],r)},this.Arm_RFS=function({Handle:e},r){this.exec("Arm_RFS",[parseInt(e)],r)},this.Arm_RsaGenPubPriKey=function({Handle:e,RsaFileId:r},n){this.exec("Arm_RsaGenPubPriKey",[parseInt(e),parseInt(r)],n)},this.Arm_EccGenPubPriKey=function({Handle:e,EccFileId:r},n){this.exec("Arm_EccGenPubPriKey",[parseInt(e),parseInt(r)],n)},this.Arm_Sm2GenPubPriKey=function({Handle:e,Sm2FileId:r},n){this.exec("Arm_Sm2GenPubPriKey",[parseInt(e),parseInt(r)],n)},this.Arm_ReadRsaPri=function(e){this.exec("Arm_ReadRsaPri",null,e)},this.Arm_ReadRsaPub=function(e){this.exec("Arm_ReadRsaPub",null,e)},this.Arm_ReadEccPri=function(e){this.exec("Arm_ReadEccPri",null,e)},this.Arm_ReadEccPub=function(e){this.exec("Arm_ReadEccPub",null,e)},this.Arm_ReadSm2Pri=function(e){this.exec("Arm_ReadSm2Pri",null,e)},this.Arm_ReadSm2Pub=function(e){this.exec("Arm_ReadSm2Pub",null,e)},this.Arm_RsaPri=function({Handle:e,RsaPri_Flag:r,RsaPriInData:n,RsaPriFileID:i,RsaPriFileSize:o},s){this.exec("Arm_RsaPri",[parseInt(e),parseInt(i),parseInt(o),r,n],s)},this.Arm_RsaPub=function({Handle:e,RsaPubKey:r,RsaPub_Flag:n,RsaPubInData:i,RsaPubFileSize:o},s){this.exec("Arm_RsaPub",[parseInt(e),parseInt(o),n,r,r.length,i],s)},this.Arm_EccSign=function({Handle:e,HashData:r,EccFileId:n},i){this.exec("Arm_EccSign",[parseInt(e),parseInt(n),r],i)},this.Arm_EccVerify=function({Handle:e,HashData:r,EccPubKey:n,EccSignData:i},o){this.exec("Arm_EccVerify",[parseInt(e),n,n.length,r,i],o)},this.Arm_Sm2Sign=function({Handle:e,HashData:r,Sm2FileId:n},i){this.exec("Arm_Sm2Sign",[parseInt(e),parseInt(n),r],i)},this.Arm_Sm2Verify=function({Handle:e,HashData:r,Sm2PubKey:n,Sm2SignData:i},o){this.exec("Arm_Sm2Verify",[parseInt(e),n,n.length,r,i],o)},this.Arm_TDES=function({Handle:e,Tdes_Flag:r,TdesFileID:n,TdesInData:i},o){this.exec("Arm_TDES",[parseInt(e),parseInt(n),r,i],o)},this.Arm_SM4=function({Handle:e,Sm4_Flag:r,Sm4FileID:n,Sm4InData:i},o){this.exec("Arm_SM4",[parseInt(e),parseInt(n),r,i],o)},this.Arm_HASH=function({Handle:e,Hash_Flag:r,HashInData:n},i){this.exec("Arm_HASH",[parseInt(e),r,n],i)},this.Arm_Seed=function({Handle:e,SeedData:r,SeedLength:n},i){this.exec("Arm_Seed",[parseInt(e),n,r],i)},this.Arm_LimitSeedCount=function({Handle:e,SeedCount:r},n){this.exec("Arm_LimitSeedCount",[parseInt(e),parseInt(r)],n)},this.Arm_GenMotherKey=function({Handle:e,SeedLen:r,SeedForPID:n,SonCount:i,StartUserID:o,AdminTryCount:s,UserPin:a,UserTryCount:h,UpdateRSAPriKey:c},f){this.exec("Arm_GenMotherKey",[parseInt(e),parseInt(r),n,a,parseInt(h),parseInt(s),c,parseInt(o),parseInt(i)],f)},this.Arm_RequestInit=function({Handle:e},r){this.exec("Arm_RequestInit",[parseInt(e)],r)},this.Arm_GetInitDataFromMother=function({Handle:e},r){this.exec("Arm_GetInitDataFromMother",[parseInt(e),Request],r)},this.Arm_InitSon=function({Handle:e,InitData:r},n){this.exec("Arm_InitSon",[parseInt(e),r],n)},this.Arm_SetUpdatePriKey=function({Handle:e,UpdatePriKey:r},n){this.exec("Arm_SetUpdatePriKey",[parseInt(e),r],n)},this.Arm_MakeUpdatePacket=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:s,DataLen:a,DataBuffer:h,UpRSAPubKey:c},f){this.exec("Arm_MakeUpdatePacket",[parseInt(e),r,n,o,parseInt(i),parseInt(s),h,c,parseInt(a)],f)},this.Arm_MakeUpdatePacketFromMother=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:s,DataLen:a,DataBuffer:h},c){this.exec("Arm_MakeUpdatePacketFromMother",[parseInt(e),r,n,o,parseInt(i),parseInt(s),h,parseInt(a)],c)},this.Arm_Update=function({Handle:e,UpdateData:r},n){this.exec("Arm_Update",[parseInt(e),r],n)},this.Arm_Set_DATA_FILE_ATTR=function({Size:e,ReadPriv:r,WritePriv:n},i){this.exec("Arm_Set_DATA_FILE_ATTR",[parseInt(e),parseInt(r),parseInt(n)],i)},this.Arm_Set_PRIKEY_FILE_ATTR=function({Count:e,Size:r,Type:n,Priv:i,IsReset:o,IsDecOnRAM:s},a){this.exec("Arm_Set_PRIKEY_FILE_ATTR",[n,parseInt(r),parseInt(e),parseInt(i),parseInt(s),parseInt(o)],a)},this.Arm_Set_KEY_FILE_ATTR=function({Size:e,PrivEnc:r},n){this.exec("Arm_Set_KEY_FILE_ATTR",[parseInt(e),parseInt(r)],n)},this.Arm_Set_EXE_FILE_ATTR=function({FileLen:e,PrivExe:r},n){this.exec("Arm_Set_EXE_FILE_ATTR",[parseInt(e),parseInt(r)],n)},this.Arm_Set_DATA_LIC=function({ReadPriv:e,WritePriv:r},n){this.exec("Arm_Set_DATA_LIC",[parseInt(e),parseInt(r)],n)},this.Arm_Set_PRIKEY_LIC=function({Count:e,Priv:r,IsReset:n,IsDecOnRAM:i},o){this.exec("Arm_Set_PRIKEY_LIC",[parseInt(e),parseInt(r),parseInt(i),parseInt(n)],o)},this.Arm_Set_KEY_LIC=function({PrivEnc:e},r){this.exec("Arm_Set_KEY_LIC",[parseInt(e)],r)},this.Arm_Set_EXE_LIC=function({PrivExe:e},r){this.exec("Arm_Set_EXE_LIC",[parseInt(e)],r)},this.Arm_Set_EXE_FILE_INFO=function({FileID:e,FileData:r,FileSize:n,InBuffer:i,CallLimit:o},s){this.exec("Arm_Set_EXE_FILE_INFO",[i,parseInt(n),parseInt(e),parseInt(o),r,r.length],s)},this.Arm_Clear_EXE_FILE_INFO=function({InBuffer:e},r){this.exec("Arm_Clear_EXE_FILE_INFO",[e],r)}}const Z1={HID:0},vi={PRODUCT_ID:0,USER_ID:1,HARDWARE_ID:2},Tc={USER:0};class Oc{constructor(){_r(this,"Base64",new X1);_r(this,"AtlCtrl",null);_r(this,"ArmCount",0);_r(this,"ArmIndex",0);_r(this,"ArmHandle",0);_r(this,"ArmRandom","");try{this.AtlCtrl=new Q1("{39E9B272-82A7-4177-A19D-6723C1BDB0CC}")}catch(e){console.error(e),this.AtlCtrl=null}}armEnum(){if(this.AtlCtrl)return new Promise((e,r)=>{this.AtlCtrl.Arm_Enum((n,i)=>{n?(this.ArmCount=+i,e(i)):r(i)})})}armOpen(e=0){if(this.AtlCtrl)return this.ArmIndex=e,new Promise((r,n)=>{this.AtlCtrl.Arm_Open({Index:e},(i,o)=>{i?(this.ArmHandle=+o,r(o)):(this.ArmHandle=o,n(o))})})}armClose(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_Close({Handle:e},(i,o)=>{i?r(o):n(o)})})}armChangePIN(e,r,n=255,i=Tc.USER,o=this.ArmHandle){if(this.AtlCtrl)return new Promise((s,a)=>{this.AtlCtrl.Arm_ChangePIN({Handle:o,NewPIN:e,OldPIN:r,TryCount:n,PinFlag:i},(h,c)=>{h&&c==0?(this.ArmPin=e,s(c)):a(c)})})}armGenRandom(e=16,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_GenRandom({Handle:r,RandomLen:e},(o,s)=>{o?(this.ArmRandom=s,n(s)):i(s)})})}armGetDeadline(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_GetDeadline({Handle:e},(i,o)=>{i?(this.ArmDeadline=o,r(o)):n(o)})})}armGenUniqueKey(e="MTIzNDU2Nzg5MA==",r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_GenUniqueKey({Handle:r,Seed:e},(o,s)=>{o?(this.ArmUKey=s,n(s)):i(s)})})}armGetDongleInfo(e=0,r=vi.HARDWARE_ID){if(this.AtlCtrl)return this.ArmIndex=e,new Promise((n,i)=>{this.AtlCtrl.Arm_GetDongleInfo({Index:e,DongleInfoNum:r},(o,s)=>{if(o){switch(r){case vi.USER_ID:this.ArmUid=s;break;case vi.PRODUCT_ID:this.ArmPid=s;break;case vi.HARDWARE_ID:this.ArmHid=s;break}n(s)}else i(s)})})}armLEDControl(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_LEDControl({Handle:r,LedFlag:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armRFS(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_RFS({Handle:e},(i,o)=>{i&&o==0?r(o):n(o)})})}armReadFile(e="0001",r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl[`Arm_ReadFile${e}`]({Handle:r},(o,s)=>{if(o&&s.length>0)try{s=this.Base64.decode(s),n(s)}catch(a){console.error(a),n(s)}else i(s)})})}armResetState(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_ResetState({Handle:e},(i,o)=>{i&&o==0?r(o):n(o)})})}armResetUserPIN(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_ResetUserPIN({Handle:r,AdminPIN:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armSetUserID(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetUserID({Handle:r,UserID:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armSetDeadline(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetDeadline({Handle:r,SetDeadTime:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armSwitchProtocol(e=Z1.HID,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SwitchProtocol({Handle:r,ProtocolFlag:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armVerifyPIN(e,r=Tc.USER,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_VerifyPIN({Handle:n,UserPin:e,UserType:r},(s,a)=>{s&&a==0?(this.ArmPin=e,i(a)):o(a)})})}armReadData(e=0,r=128,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_ReadData({Handle:n,Offset:e,ReadLength:r},(s,a)=>{s?(this.ArmData=a,i(a)):o(a)})})}armWriteData(e,r=0,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_WriteData({Handle:n,Offset:r,DataInput:e},(s,a)=>{s&&a==0?i(a):o(a)})})}armReadShareMemory(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_ReadShareMemory({Handle:e},(i,o)=>{i?(this.ArmData=o,r(o)):n(o)})})}armWriteShareMemory(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_WriteShareMemory({Handle:r,DataInput:e},(o,s)=>{o&&s==0?n(s):i(s)})})}}const Pc=Symbol(),mi="el",ex="is-",xr=(t,e,r,n,i)=>{let o=`${t}-${e}`;return r&&(o+=`-${r}`),n&&(o+=`__${n}`),i&&(o+=`--${i}`),o},Nc=Symbol("namespaceContextKey"),tx=t=>{const e=t||(I.getCurrentInstance()?I.inject(Nc,I.ref(mi)):I.ref(mi));return I.computed(()=>I.unref(e)||mi)},p0=(t,e)=>{const r=tx(e);return{namespace:r,b:(E="")=>xr(r.value,t,E,"",""),e:E=>E?xr(r.value,t,"",E,""):"",m:E=>E?xr(r.value,t,"","",E):"",be:(E,A)=>E&&A?xr(r.value,t,E,A,""):"",em:(E,A)=>E&&A?xr(r.value,t,"",E,A):"",bm:(E,A)=>E&&A?xr(r.value,t,E,"",A):"",bem:(E,A,R)=>E&&A&&R?xr(r.value,t,E,A,R):"",is:(E,...A)=>{const R=A.length>=1?A[0]:!0;return E&&R?`${ex}${E}`:""},cssVar:E=>{const A={};for(const R in E)E[R]&&(A[`--${r.value}-${R}`]=E[R]);return A},cssVarName:E=>`--${r.value}-${E}`,cssVarBlock:E=>{const A={};for(const R in E)E[R]&&(A[`--${r.value}-${t}-${R}`]=E[R]);return A},cssVarBlockName:E=>`--${r.value}-${t}-${E}`}};/**
|
|
35
|
+
*/(function(t){var e=fi,r=l0,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=w,t.INSPECT_MAX_BYTES=50;var i=2147483647;t.kMaxLength=i,a.TYPED_ARRAY_SUPPORT=o(),!a.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function o(){try{var F=new Uint8Array(1),l={foo:function(){return 42}};return Object.setPrototypeOf(l,Uint8Array.prototype),Object.setPrototypeOf(F,l),F.foo()===42}catch(d){return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function s(F){if(F>i)throw new RangeError('The value "'+F+'" is invalid for option "size"');var l=new Uint8Array(F);return Object.setPrototypeOf(l,a.prototype),l}function a(F,l,d){if(typeof F=="number"){if(typeof l=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return x(F)}return u(F,l,d)}a.poolSize=8192;function u(F,l,d){if(typeof F=="string")return h(F,l);if(ArrayBuffer.isView(F))return m(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(Oe(F,ArrayBuffer)||F&&Oe(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(Oe(F,SharedArrayBuffer)||F&&Oe(F.buffer,SharedArrayBuffer)))return E(F,l,d);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var y=F.valueOf&&F.valueOf();if(y!=null&&y!==F)return a.from(y,l,d);var T=A(F);if(T)return T;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return a.from(F[Symbol.toPrimitive]("string"),l,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}a.from=function(F,l,d){return u(F,l,d)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function c(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function f(F,l,d){return c(F),F<=0?s(F):l!==void 0?typeof d=="string"?s(F).fill(l,d):s(F).fill(l):s(F)}a.alloc=function(F,l,d){return f(F,l,d)};function x(F){return c(F),s(F<0?0:R(F)|0)}a.allocUnsafe=function(F){return x(F)},a.allocUnsafeSlow=function(F){return x(F)};function h(F,l){if((typeof l!="string"||l==="")&&(l="utf8"),!a.isEncoding(l))throw new TypeError("Unknown encoding: "+l);var d=_(F,l)|0,y=s(d),T=y.write(F,l);return T!==d&&(y=y.slice(0,T)),y}function v(F){for(var l=F.length<0?0:R(F.length)|0,d=s(l),y=0;y<l;y+=1)d[y]=F[y]&255;return d}function m(F){if(Oe(F,Uint8Array)){var l=new Uint8Array(F);return E(l.buffer,l.byteOffset,l.byteLength)}return v(F)}function E(F,l,d){if(l<0||F.byteLength<l)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<l+(d||0))throw new RangeError('"length" is outside of buffer bounds');var y;return l===void 0&&d===void 0?y=new Uint8Array(F):d===void 0?y=new Uint8Array(F,l):y=new Uint8Array(F,l,d),Object.setPrototypeOf(y,a.prototype),y}function A(F){if(a.isBuffer(F)){var l=R(F.length)|0,d=s(l);return d.length===0||F.copy(d,0,0,l),d}if(F.length!==void 0)return typeof F.length!="number"||je(F.length)?s(0):v(F);if(F.type==="Buffer"&&Array.isArray(F.data))return v(F.data)}function R(F){if(F>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return F|0}function w(F){return+F!=F&&(F=0),a.alloc(+F)}a.isBuffer=function(l){return l!=null&&l._isBuffer===!0&&l!==a.prototype},a.compare=function(l,d){if(Oe(l,Uint8Array)&&(l=a.from(l,l.offset,l.byteLength)),Oe(d,Uint8Array)&&(d=a.from(d,d.offset,d.byteLength)),!a.isBuffer(l)||!a.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(l===d)return 0;for(var y=l.length,T=d.length,W=0,K=Math.min(y,T);W<K;++W)if(l[W]!==d[W]){y=l[W],T=d[W];break}return y<T?-1:T<y?1:0},a.isEncoding=function(l){switch(String(l).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(l,d){if(!Array.isArray(l))throw new TypeError('"list" argument must be an Array of Buffers');if(l.length===0)return a.alloc(0);var y;if(d===void 0)for(d=0,y=0;y<l.length;++y)d+=l[y].length;var T=a.allocUnsafe(d),W=0;for(y=0;y<l.length;++y){var K=l[y];if(Oe(K,Uint8Array))W+K.length>T.length?a.from(K).copy(T,W):Uint8Array.prototype.set.call(T,K,W);else if(a.isBuffer(K))K.copy(T,W);else throw new TypeError('"list" argument must be an Array of Buffers');W+=K.length}return T};function _(F,l){if(a.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||Oe(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);var d=F.length,y=arguments.length>2&&arguments[2]===!0;if(!y&&d===0)return 0;for(var T=!1;;)switch(l){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return ye(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return Ge(F).length;default:if(T)return y?-1:ye(F).length;l=(""+l).toLowerCase(),T=!0}}a.byteLength=_;function B(F,l,d){var y=!1;if((l===void 0||l<0)&&(l=0),l>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,l>>>=0,d<=l))return"";for(F||(F="utf8");;)switch(F){case"hex":return he(this,l,d);case"utf8":case"utf-8":return ee(this,l,d);case"ascii":return oe(this,l,d);case"latin1":case"binary":return ie(this,l,d);case"base64":return X(this,l,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return fe(this,l,d);default:if(y)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),y=!0}}a.prototype._isBuffer=!0;function D(F,l,d){var y=F[l];F[l]=F[d],F[d]=y}a.prototype.swap16=function(){var l=this.length;if(l%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<l;d+=2)D(this,d,d+1);return this},a.prototype.swap32=function(){var l=this.length;if(l%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<l;d+=4)D(this,d,d+3),D(this,d+1,d+2);return this},a.prototype.swap64=function(){var l=this.length;if(l%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<l;d+=8)D(this,d,d+7),D(this,d+1,d+6),D(this,d+2,d+5),D(this,d+3,d+4);return this},a.prototype.toString=function(){var l=this.length;return l===0?"":arguments.length===0?ee(this,0,l):B.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(l){if(!a.isBuffer(l))throw new TypeError("Argument must be a Buffer");return this===l?!0:a.compare(this,l)===0},a.prototype.inspect=function(){var l="",d=t.INSPECT_MAX_BYTES;return l=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(l+=" ... "),"<Buffer "+l+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(l,d,y,T,W){if(Oe(l,Uint8Array)&&(l=a.from(l,l.offset,l.byteLength)),!a.isBuffer(l))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof l);if(d===void 0&&(d=0),y===void 0&&(y=l?l.length:0),T===void 0&&(T=0),W===void 0&&(W=this.length),d<0||y>l.length||T<0||W>this.length)throw new RangeError("out of range index");if(T>=W&&d>=y)return 0;if(T>=W)return-1;if(d>=y)return 1;if(d>>>=0,y>>>=0,T>>>=0,W>>>=0,this===l)return 0;for(var K=W-T,pe=y-d,Ce=Math.min(K,pe),be=this.slice(T,W),Be=l.slice(d,y),Le=0;Le<Ce;++Le)if(be[Le]!==Be[Le]){K=be[Le],pe=Be[Le];break}return K<pe?-1:pe<K?1:0};function O(F,l,d,y,T){if(F.length===0)return-1;if(typeof d=="string"?(y=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,je(d)&&(d=T?0:F.length-1),d<0&&(d=F.length+d),d>=F.length){if(T)return-1;d=F.length-1}else if(d<0)if(T)d=0;else return-1;if(typeof l=="string"&&(l=a.from(l,y)),a.isBuffer(l))return l.length===0?-1:L(F,l,d,y,T);if(typeof l=="number")return l=l&255,typeof Uint8Array.prototype.indexOf=="function"?T?Uint8Array.prototype.indexOf.call(F,l,d):Uint8Array.prototype.lastIndexOf.call(F,l,d):L(F,[l],d,y,T);throw new TypeError("val must be string, number or Buffer")}function L(F,l,d,y,T){var W=1,K=F.length,pe=l.length;if(y!==void 0&&(y=String(y).toLowerCase(),y==="ucs2"||y==="ucs-2"||y==="utf16le"||y==="utf-16le")){if(F.length<2||l.length<2)return-1;W=2,K/=2,pe/=2,d/=2}function Ce(Ht,zt){return W===1?Ht[zt]:Ht.readUInt16BE(zt*W)}var be;if(T){var Be=-1;for(be=d;be<K;be++)if(Ce(F,be)===Ce(l,Be===-1?0:be-Be)){if(Be===-1&&(Be=be),be-Be+1===pe)return Be*W}else Be!==-1&&(be-=be-Be),Be=-1}else for(d+pe>K&&(d=K-pe),be=d;be>=0;be--){for(var Le=!0,mt=0;mt<pe;mt++)if(Ce(F,be+mt)!==Ce(l,mt)){Le=!1;break}if(Le)return be}return-1}a.prototype.includes=function(l,d,y){return this.indexOf(l,d,y)!==-1},a.prototype.indexOf=function(l,d,y){return O(this,l,d,y,!0)},a.prototype.lastIndexOf=function(l,d,y){return O(this,l,d,y,!1)};function z(F,l,d,y){d=Number(d)||0;var T=F.length-d;y?(y=Number(y),y>T&&(y=T)):y=T;var W=l.length;y>W/2&&(y=W/2);for(var K=0;K<y;++K){var pe=parseInt(l.substr(K*2,2),16);if(je(pe))return K;F[d+K]=pe}return K}function Q(F,l,d,y){return Ve(ye(l,F.length-d),F,d,y)}function P(F,l,d,y){return Ve(_e(l),F,d,y)}function k(F,l,d,y){return Ve(Ge(l),F,d,y)}function V(F,l,d,y){return Ve(Pe(l,F.length-d),F,d,y)}a.prototype.write=function(l,d,y,T){if(d===void 0)T="utf8",y=this.length,d=0;else if(y===void 0&&typeof d=="string")T=d,y=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(y)?(y=y>>>0,T===void 0&&(T="utf8")):(T=y,y=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var W=this.length-d;if((y===void 0||y>W)&&(y=W),l.length>0&&(y<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");T||(T="utf8");for(var K=!1;;)switch(T){case"hex":return z(this,l,d,y);case"utf8":case"utf-8":return Q(this,l,d,y);case"ascii":case"latin1":case"binary":return P(this,l,d,y);case"base64":return k(this,l,d,y);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return V(this,l,d,y);default:if(K)throw new TypeError("Unknown encoding: "+T);T=(""+T).toLowerCase(),K=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function X(F,l,d){return l===0&&d===F.length?e.fromByteArray(F):e.fromByteArray(F.slice(l,d))}function ee(F,l,d){d=Math.min(F.length,d);for(var y=[],T=l;T<d;){var W=F[T],K=null,pe=W>239?4:W>223?3:W>191?2:1;if(T+pe<=d){var Ce,be,Be,Le;switch(pe){case 1:W<128&&(K=W);break;case 2:Ce=F[T+1],(Ce&192)===128&&(Le=(W&31)<<6|Ce&63,Le>127&&(K=Le));break;case 3:Ce=F[T+1],be=F[T+2],(Ce&192)===128&&(be&192)===128&&(Le=(W&15)<<12|(Ce&63)<<6|be&63,Le>2047&&(Le<55296||Le>57343)&&(K=Le));break;case 4:Ce=F[T+1],be=F[T+2],Be=F[T+3],(Ce&192)===128&&(be&192)===128&&(Be&192)===128&&(Le=(W&15)<<18|(Ce&63)<<12|(be&63)<<6|Be&63,Le>65535&&Le<1114112&&(K=Le))}}K===null?(K=65533,pe=1):K>65535&&(K-=65536,y.push(K>>>10&1023|55296),K=56320|K&1023),y.push(K),T+=pe}return Z(y)}var Y=4096;function Z(F){var l=F.length;if(l<=Y)return String.fromCharCode.apply(String,F);for(var d="",y=0;y<l;)d+=String.fromCharCode.apply(String,F.slice(y,y+=Y));return d}function oe(F,l,d){var y="";d=Math.min(F.length,d);for(var T=l;T<d;++T)y+=String.fromCharCode(F[T]&127);return y}function ie(F,l,d){var y="";d=Math.min(F.length,d);for(var T=l;T<d;++T)y+=String.fromCharCode(F[T]);return y}function he(F,l,d){var y=F.length;(!l||l<0)&&(l=0),(!d||d<0||d>y)&&(d=y);for(var T="",W=l;W<d;++W)T+=Ke[F[W]];return T}function fe(F,l,d){for(var y=F.slice(l,d),T="",W=0;W<y.length-1;W+=2)T+=String.fromCharCode(y[W]+y[W+1]*256);return T}a.prototype.slice=function(l,d){var y=this.length;l=~~l,d=d===void 0?y:~~d,l<0?(l+=y,l<0&&(l=0)):l>y&&(l=y),d<0?(d+=y,d<0&&(d=0)):d>y&&(d=y),d<l&&(d=l);var T=this.subarray(l,d);return Object.setPrototypeOf(T,a.prototype),T};function H(F,l,d){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+l>d)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(l,d,y){l=l>>>0,d=d>>>0,y||H(l,d,this.length);for(var T=this[l],W=1,K=0;++K<d&&(W*=256);)T+=this[l+K]*W;return T},a.prototype.readUintBE=a.prototype.readUIntBE=function(l,d,y){l=l>>>0,d=d>>>0,y||H(l,d,this.length);for(var T=this[l+--d],W=1;d>0&&(W*=256);)T+=this[l+--d]*W;return T},a.prototype.readUint8=a.prototype.readUInt8=function(l,d){return l=l>>>0,d||H(l,1,this.length),this[l]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(l,d){return l=l>>>0,d||H(l,2,this.length),this[l]|this[l+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(l,d){return l=l>>>0,d||H(l,2,this.length),this[l]<<8|this[l+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(l,d){return l=l>>>0,d||H(l,4,this.length),(this[l]|this[l+1]<<8|this[l+2]<<16)+this[l+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(l,d){return l=l>>>0,d||H(l,4,this.length),this[l]*16777216+(this[l+1]<<16|this[l+2]<<8|this[l+3])},a.prototype.readIntLE=function(l,d,y){l=l>>>0,d=d>>>0,y||H(l,d,this.length);for(var T=this[l],W=1,K=0;++K<d&&(W*=256);)T+=this[l+K]*W;return W*=128,T>=W&&(T-=Math.pow(2,8*d)),T},a.prototype.readIntBE=function(l,d,y){l=l>>>0,d=d>>>0,y||H(l,d,this.length);for(var T=d,W=1,K=this[l+--T];T>0&&(W*=256);)K+=this[l+--T]*W;return W*=128,K>=W&&(K-=Math.pow(2,8*d)),K},a.prototype.readInt8=function(l,d){return l=l>>>0,d||H(l,1,this.length),this[l]&128?(255-this[l]+1)*-1:this[l]},a.prototype.readInt16LE=function(l,d){l=l>>>0,d||H(l,2,this.length);var y=this[l]|this[l+1]<<8;return y&32768?y|4294901760:y},a.prototype.readInt16BE=function(l,d){l=l>>>0,d||H(l,2,this.length);var y=this[l+1]|this[l]<<8;return y&32768?y|4294901760:y},a.prototype.readInt32LE=function(l,d){return l=l>>>0,d||H(l,4,this.length),this[l]|this[l+1]<<8|this[l+2]<<16|this[l+3]<<24},a.prototype.readInt32BE=function(l,d){return l=l>>>0,d||H(l,4,this.length),this[l]<<24|this[l+1]<<16|this[l+2]<<8|this[l+3]},a.prototype.readFloatLE=function(l,d){return l=l>>>0,d||H(l,4,this.length),r.read(this,l,!0,23,4)},a.prototype.readFloatBE=function(l,d){return l=l>>>0,d||H(l,4,this.length),r.read(this,l,!1,23,4)},a.prototype.readDoubleLE=function(l,d){return l=l>>>0,d||H(l,8,this.length),r.read(this,l,!0,52,8)},a.prototype.readDoubleBE=function(l,d){return l=l>>>0,d||H(l,8,this.length),r.read(this,l,!1,52,8)};function j(F,l,d,y,T,W){if(!a.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(l>T||l<W)throw new RangeError('"value" argument is out of bounds');if(d+y>F.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(l,d,y,T){if(l=+l,d=d>>>0,y=y>>>0,!T){var W=Math.pow(2,8*y)-1;j(this,l,d,y,W,0)}var K=1,pe=0;for(this[d]=l&255;++pe<y&&(K*=256);)this[d+pe]=l/K&255;return d+y},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(l,d,y,T){if(l=+l,d=d>>>0,y=y>>>0,!T){var W=Math.pow(2,8*y)-1;j(this,l,d,y,W,0)}var K=y-1,pe=1;for(this[d+K]=l&255;--K>=0&&(pe*=256);)this[d+K]=l/pe&255;return d+y},a.prototype.writeUint8=a.prototype.writeUInt8=function(l,d,y){return l=+l,d=d>>>0,y||j(this,l,d,1,255,0),this[d]=l&255,d+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(l,d,y){return l=+l,d=d>>>0,y||j(this,l,d,2,65535,0),this[d]=l&255,this[d+1]=l>>>8,d+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(l,d,y){return l=+l,d=d>>>0,y||j(this,l,d,2,65535,0),this[d]=l>>>8,this[d+1]=l&255,d+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(l,d,y){return l=+l,d=d>>>0,y||j(this,l,d,4,4294967295,0),this[d+3]=l>>>24,this[d+2]=l>>>16,this[d+1]=l>>>8,this[d]=l&255,d+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(l,d,y){return l=+l,d=d>>>0,y||j(this,l,d,4,4294967295,0),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4},a.prototype.writeIntLE=function(l,d,y,T){if(l=+l,d=d>>>0,!T){var W=Math.pow(2,8*y-1);j(this,l,d,y,W-1,-W)}var K=0,pe=1,Ce=0;for(this[d]=l&255;++K<y&&(pe*=256);)l<0&&Ce===0&&this[d+K-1]!==0&&(Ce=1),this[d+K]=(l/pe>>0)-Ce&255;return d+y},a.prototype.writeIntBE=function(l,d,y,T){if(l=+l,d=d>>>0,!T){var W=Math.pow(2,8*y-1);j(this,l,d,y,W-1,-W)}var K=y-1,pe=1,Ce=0;for(this[d+K]=l&255;--K>=0&&(pe*=256);)l<0&&Ce===0&&this[d+K+1]!==0&&(Ce=1),this[d+K]=(l/pe>>0)-Ce&255;return d+y},a.prototype.writeInt8=function(l,d,y){return l=+l,d=d>>>0,y||j(this,l,d,1,127,-128),l<0&&(l=255+l+1),this[d]=l&255,d+1},a.prototype.writeInt16LE=function(l,d,y){return l=+l,d=d>>>0,y||j(this,l,d,2,32767,-32768),this[d]=l&255,this[d+1]=l>>>8,d+2},a.prototype.writeInt16BE=function(l,d,y){return l=+l,d=d>>>0,y||j(this,l,d,2,32767,-32768),this[d]=l>>>8,this[d+1]=l&255,d+2},a.prototype.writeInt32LE=function(l,d,y){return l=+l,d=d>>>0,y||j(this,l,d,4,2147483647,-2147483648),this[d]=l&255,this[d+1]=l>>>8,this[d+2]=l>>>16,this[d+3]=l>>>24,d+4},a.prototype.writeInt32BE=function(l,d,y){return l=+l,d=d>>>0,y||j(this,l,d,4,2147483647,-2147483648),l<0&&(l=4294967295+l+1),this[d]=l>>>24,this[d+1]=l>>>16,this[d+2]=l>>>8,this[d+3]=l&255,d+4};function re(F,l,d,y,T,W){if(d+y>F.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function J(F,l,d,y,T){return l=+l,d=d>>>0,T||re(F,l,d,4),r.write(F,l,d,y,23,4),d+4}a.prototype.writeFloatLE=function(l,d,y){return J(this,l,d,!0,y)},a.prototype.writeFloatBE=function(l,d,y){return J(this,l,d,!1,y)};function Ae(F,l,d,y,T){return l=+l,d=d>>>0,T||re(F,l,d,8),r.write(F,l,d,y,52,8),d+8}a.prototype.writeDoubleLE=function(l,d,y){return Ae(this,l,d,!0,y)},a.prototype.writeDoubleBE=function(l,d,y){return Ae(this,l,d,!1,y)},a.prototype.copy=function(l,d,y,T){if(!a.isBuffer(l))throw new TypeError("argument should be a Buffer");if(y||(y=0),!T&&T!==0&&(T=this.length),d>=l.length&&(d=l.length),d||(d=0),T>0&&T<y&&(T=y),T===y||l.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(y<0||y>=this.length)throw new RangeError("Index out of range");if(T<0)throw new RangeError("sourceEnd out of bounds");T>this.length&&(T=this.length),l.length-d<T-y&&(T=l.length-d+y);var W=T-y;return this===l&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,y,T):Uint8Array.prototype.set.call(l,this.subarray(y,T),d),W},a.prototype.fill=function(l,d,y,T){if(typeof l=="string"){if(typeof d=="string"?(T=d,d=0,y=this.length):typeof y=="string"&&(T=y,y=this.length),T!==void 0&&typeof T!="string")throw new TypeError("encoding must be a string");if(typeof T=="string"&&!a.isEncoding(T))throw new TypeError("Unknown encoding: "+T);if(l.length===1){var W=l.charCodeAt(0);(T==="utf8"&&W<128||T==="latin1")&&(l=W)}}else typeof l=="number"?l=l&255:typeof l=="boolean"&&(l=Number(l));if(d<0||this.length<d||this.length<y)throw new RangeError("Out of range index");if(y<=d)return this;d=d>>>0,y=y===void 0?this.length:y>>>0,l||(l=0);var K;if(typeof l=="number")for(K=d;K<y;++K)this[K]=l;else{var pe=a.isBuffer(l)?l:a.from(l,T),Ce=pe.length;if(Ce===0)throw new TypeError('The value "'+l+'" is invalid for argument "value"');for(K=0;K<y-d;++K)this[K+d]=pe[K%Ce]}return this};var we=/[^+/0-9A-Za-z-_]/g;function Me(F){if(F=F.split("=")[0],F=F.trim().replace(we,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function ye(F,l){l=l||1/0;for(var d,y=F.length,T=null,W=[],K=0;K<y;++K){if(d=F.charCodeAt(K),d>55295&&d<57344){if(!T){if(d>56319){(l-=3)>-1&&W.push(239,191,189);continue}else if(K+1===y){(l-=3)>-1&&W.push(239,191,189);continue}T=d;continue}if(d<56320){(l-=3)>-1&&W.push(239,191,189),T=d;continue}d=(T-55296<<10|d-56320)+65536}else T&&(l-=3)>-1&&W.push(239,191,189);if(T=null,d<128){if((l-=1)<0)break;W.push(d)}else if(d<2048){if((l-=2)<0)break;W.push(d>>6|192,d&63|128)}else if(d<65536){if((l-=3)<0)break;W.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((l-=4)<0)break;W.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return W}function _e(F){for(var l=[],d=0;d<F.length;++d)l.push(F.charCodeAt(d)&255);return l}function Pe(F,l){for(var d,y,T,W=[],K=0;K<F.length&&!((l-=2)<0);++K)d=F.charCodeAt(K),y=d>>8,T=d%256,W.push(T),W.push(y);return W}function Ge(F){return e.toByteArray(Me(F))}function Ve(F,l,d,y){for(var T=0;T<y&&!(T+d>=l.length||T>=F.length);++T)l[T+d]=F[T];return T}function Oe(F,l){return F instanceof l||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===l.name}function je(F){return F!==F}var Ke=function(){for(var F="0123456789abcdef",l=new Array(256),d=0;d<16;++d)for(var y=d*16,T=0;T<16;++T)l[y+T]=F[d]+F[T];return l}()})(Fe);var H1=Fe.Buffer,z1=function(t){if(t instanceof Uint8Array){if(t.byteOffset===0&&t.byteLength===t.buffer.byteLength)return t.buffer;if(typeof t.buffer.slice=="function")return t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength)}if(H1.isBuffer(t)){for(var e=new Uint8Array(t.length),r=t.length,n=0;n<r;n++)e[n]=t[n];return e.buffer}else throw new Error("Argument must be a Buffer")};const vn=Je(z1);var Ac={exports:{}};(function(t,e){(function(){var r,n=0xdeadbeefcafe,i=(n&16777215)==15715070;function o(p,g,C){p!=null&&(typeof p=="number"?this.fromNumber(p,g,C):g==null&&typeof p!="string"?this.fromString(p,256):this.fromString(p,g))}function s(){return new o(null)}function a(p,g,C,$,ne,se){for(;--se>=0;){var de=g*this[p++]+C[$]+ne;ne=Math.floor(de/67108864),C[$++]=de&67108863}return ne}function u(p,g,C,$,ne,se){for(var de=g&32767,xe=g>>15;--se>=0;){var qe=this[p]&32767,st=this[p++]>>15,Ct=xe*qe+st*de;qe=de*qe+((Ct&32767)<<15)+C[$]+(ne&1073741823),ne=(qe>>>30)+(Ct>>>15)+xe*st+(ne>>>30),C[$++]=qe&1073741823}return ne}function c(p,g,C,$,ne,se){for(var de=g&16383,xe=g>>14;--se>=0;){var qe=this[p]&16383,st=this[p++]>>14,Ct=xe*qe+st*de;qe=de*qe+((Ct&16383)<<14)+C[$]+ne,ne=(qe>>28)+(Ct>>14)+xe*st,C[$++]=qe&268435455}return ne}var f=typeof navigator!="undefined";f&&i&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=u,r=30):f&&i&&navigator.appName!="Netscape"?(o.prototype.am=a,r=26):(o.prototype.am=c,r=28),o.prototype.DB=r,o.prototype.DM=(1<<r)-1,o.prototype.DV=1<<r;var x=52;o.prototype.FV=Math.pow(2,x),o.prototype.F1=x-r,o.prototype.F2=2*r-x;var h="0123456789abcdefghijklmnopqrstuvwxyz",v=new Array,m,E;for(m=48,E=0;E<=9;++E)v[m++]=E;for(m=97,E=10;E<36;++E)v[m++]=E;for(m=65,E=10;E<36;++E)v[m++]=E;function A(p){return h.charAt(p)}function R(p,g){var C=v[p.charCodeAt(g)];return C==null?-1:C}function w(p){for(var g=this.t-1;g>=0;--g)p[g]=this[g];p.t=this.t,p.s=this.s}function _(p){this.t=1,this.s=p<0?-1:0,p>0?this[0]=p:p<-1?this[0]=p+this.DV:this.t=0}function B(p){var g=s();return g.fromInt(p),g}function D(p,g){var C;if(g==16)C=4;else if(g==8)C=3;else if(g==256)C=8;else if(g==2)C=1;else if(g==32)C=5;else if(g==4)C=2;else{this.fromRadix(p,g);return}this.t=0,this.s=0;for(var $=p.length,ne=!1,se=0;--$>=0;){var de=C==8?p[$]&255:R(p,$);if(de<0){p.charAt($)=="-"&&(ne=!0);continue}ne=!1,se==0?this[this.t++]=de:se+C>this.DB?(this[this.t-1]|=(de&(1<<this.DB-se)-1)<<se,this[this.t++]=de>>this.DB-se):this[this.t-1]|=de<<se,se+=C,se>=this.DB&&(se-=this.DB)}C==8&&p[0]&128&&(this.s=-1,se>0&&(this[this.t-1]|=(1<<this.DB-se)-1<<se)),this.clamp(),ne&&o.ZERO.subTo(this,this)}function O(){for(var p=this.s&this.DM;this.t>0&&this[this.t-1]==p;)--this.t}function L(p){if(this.s<0)return"-"+this.negate().toString(p);var g;if(p==16)g=4;else if(p==8)g=3;else if(p==2)g=1;else if(p==32)g=5;else if(p==4)g=2;else return this.toRadix(p);var C=(1<<g)-1,$,ne=!1,se="",de=this.t,xe=this.DB-de*this.DB%g;if(de-- >0)for(xe<this.DB&&($=this[de]>>xe)>0&&(ne=!0,se=A($));de>=0;)xe<g?($=(this[de]&(1<<xe)-1)<<g-xe,$|=this[--de]>>(xe+=this.DB-g)):($=this[de]>>(xe-=g)&C,xe<=0&&(xe+=this.DB,--de)),$>0&&(ne=!0),ne&&(se+=A($));return ne?se:"0"}function z(){var p=s();return o.ZERO.subTo(this,p),p}function Q(){return this.s<0?this.negate():this}function P(p){var g=this.s-p.s;if(g!=0)return g;var C=this.t;if(g=C-p.t,g!=0)return this.s<0?-g:g;for(;--C>=0;)if((g=this[C]-p[C])!=0)return g;return 0}function k(p){var g=1,C;return(C=p>>>16)!=0&&(p=C,g+=16),(C=p>>8)!=0&&(p=C,g+=8),(C=p>>4)!=0&&(p=C,g+=4),(C=p>>2)!=0&&(p=C,g+=2),(C=p>>1)!=0&&(p=C,g+=1),g}function V(){return this.t<=0?0:this.DB*(this.t-1)+k(this[this.t-1]^this.s&this.DM)}function X(p,g){var C;for(C=this.t-1;C>=0;--C)g[C+p]=this[C];for(C=p-1;C>=0;--C)g[C]=0;g.t=this.t+p,g.s=this.s}function ee(p,g){for(var C=p;C<this.t;++C)g[C-p]=this[C];g.t=Math.max(this.t-p,0),g.s=this.s}function Y(p,g){var C=p%this.DB,$=this.DB-C,ne=(1<<$)-1,se=Math.floor(p/this.DB),de=this.s<<C&this.DM,xe;for(xe=this.t-1;xe>=0;--xe)g[xe+se+1]=this[xe]>>$|de,de=(this[xe]&ne)<<C;for(xe=se-1;xe>=0;--xe)g[xe]=0;g[se]=de,g.t=this.t+se+1,g.s=this.s,g.clamp()}function Z(p,g){g.s=this.s;var C=Math.floor(p/this.DB);if(C>=this.t){g.t=0;return}var $=p%this.DB,ne=this.DB-$,se=(1<<$)-1;g[0]=this[C]>>$;for(var de=C+1;de<this.t;++de)g[de-C-1]|=(this[de]&se)<<ne,g[de-C]=this[de]>>$;$>0&&(g[this.t-C-1]|=(this.s&se)<<ne),g.t=this.t-C,g.clamp()}function oe(p,g){for(var C=0,$=0,ne=Math.min(p.t,this.t);C<ne;)$+=this[C]-p[C],g[C++]=$&this.DM,$>>=this.DB;if(p.t<this.t){for($-=p.s;C<this.t;)$+=this[C],g[C++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;C<p.t;)$-=p[C],g[C++]=$&this.DM,$>>=this.DB;$-=p.s}g.s=$<0?-1:0,$<-1?g[C++]=this.DV+$:$>0&&(g[C++]=$),g.t=C,g.clamp()}function ie(p,g){var C=this.abs(),$=p.abs(),ne=C.t;for(g.t=ne+$.t;--ne>=0;)g[ne]=0;for(ne=0;ne<$.t;++ne)g[ne+C.t]=C.am(0,$[ne],g,ne,0,C.t);g.s=0,g.clamp(),this.s!=p.s&&o.ZERO.subTo(g,g)}function he(p){for(var g=this.abs(),C=p.t=2*g.t;--C>=0;)p[C]=0;for(C=0;C<g.t-1;++C){var $=g.am(C,g[C],p,2*C,0,1);(p[C+g.t]+=g.am(C+1,2*g[C],p,2*C+1,$,g.t-C-1))>=g.DV&&(p[C+g.t]-=g.DV,p[C+g.t+1]=1)}p.t>0&&(p[p.t-1]+=g.am(C,g[C],p,2*C,0,1)),p.s=0,p.clamp()}function fe(p,g,C){var $=p.abs();if(!($.t<=0)){var ne=this.abs();if(ne.t<$.t){g!=null&&g.fromInt(0),C!=null&&this.copyTo(C);return}C==null&&(C=s());var se=s(),de=this.s,xe=p.s,qe=this.DB-k($[$.t-1]);qe>0?($.lShiftTo(qe,se),ne.lShiftTo(qe,C)):($.copyTo(se),ne.copyTo(C));var st=se.t,Ct=se[st-1];if(Ct!=0){var At=Ct*(1<<this.F1)+(st>1?se[st-2]>>this.F2:0),Xt=this.FV/At,Bi=(1<<this.F1)/At,It=1<<this.F2,Tt=C.t,Di=Tt-st,or=g==null?s():g;for(se.dlShiftTo(Di,or),C.compareTo(or)>=0&&(C[C.t++]=1,C.subTo(or,C)),o.ONE.dlShiftTo(st,or),or.subTo(se,se);se.t<st;)se[se.t++]=0;for(;--Di>=0;){var X0=C[--Tt]==Ct?this.DM:Math.floor(C[Tt]*Xt+(C[Tt-1]+It)*Bi);if((C[Tt]+=se.am(0,X0,C,Di,0,st))<X0)for(se.dlShiftTo(Di,or),C.subTo(or,C);C[Tt]<--X0;)C.subTo(or,C)}g!=null&&(C.drShiftTo(st,g),de!=xe&&o.ZERO.subTo(g,g)),C.t=st,C.clamp(),qe>0&&C.rShiftTo(qe,C),de<0&&o.ZERO.subTo(C,C)}}}function H(p){var g=s();return this.abs().divRemTo(p,null,g),this.s<0&&g.compareTo(o.ZERO)>0&&p.subTo(g,g),g}function j(p){this.m=p}function re(p){return p.s<0||p.compareTo(this.m)>=0?p.mod(this.m):p}function J(p){return p}function Ae(p){p.divRemTo(this.m,null,p)}function we(p,g,C){p.multiplyTo(g,C),this.reduce(C)}function Me(p,g){p.squareTo(g),this.reduce(g)}j.prototype.convert=re,j.prototype.revert=J,j.prototype.reduce=Ae,j.prototype.mulTo=we,j.prototype.sqrTo=Me;function ye(){if(this.t<1)return 0;var p=this[0];if(!(p&1))return 0;var g=p&3;return g=g*(2-(p&15)*g)&15,g=g*(2-(p&255)*g)&255,g=g*(2-((p&65535)*g&65535))&65535,g=g*(2-p*g%this.DV)%this.DV,g>0?this.DV-g:-g}function _e(p){this.m=p,this.mp=p.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<p.DB-15)-1,this.mt2=2*p.t}function Pe(p){var g=s();return p.abs().dlShiftTo(this.m.t,g),g.divRemTo(this.m,null,g),p.s<0&&g.compareTo(o.ZERO)>0&&this.m.subTo(g,g),g}function Ge(p){var g=s();return p.copyTo(g),this.reduce(g),g}function Ve(p){for(;p.t<=this.mt2;)p[p.t++]=0;for(var g=0;g<this.m.t;++g){var C=p[g]&32767,$=C*this.mpl+((C*this.mph+(p[g]>>15)*this.mpl&this.um)<<15)&p.DM;for(C=g+this.m.t,p[C]+=this.m.am(0,$,p,g,0,this.m.t);p[C]>=p.DV;)p[C]-=p.DV,p[++C]++}p.clamp(),p.drShiftTo(this.m.t,p),p.compareTo(this.m)>=0&&p.subTo(this.m,p)}function Oe(p,g){p.squareTo(g),this.reduce(g)}function je(p,g,C){p.multiplyTo(g,C),this.reduce(C)}_e.prototype.convert=Pe,_e.prototype.revert=Ge,_e.prototype.reduce=Ve,_e.prototype.mulTo=je,_e.prototype.sqrTo=Oe;function Ke(){return(this.t>0?this[0]&1:this.s)==0}function F(p,g){if(p>4294967295||p<1)return o.ONE;var C=s(),$=s(),ne=g.convert(this),se=k(p)-1;for(ne.copyTo(C);--se>=0;)if(g.sqrTo(C,$),(p&1<<se)>0)g.mulTo($,ne,C);else{var de=C;C=$,$=de}return g.revert(C)}function l(p,g){var C;return p<256||g.isEven()?C=new j(g):C=new _e(g),this.exp(p,C)}o.prototype.copyTo=w,o.prototype.fromInt=_,o.prototype.fromString=D,o.prototype.clamp=O,o.prototype.dlShiftTo=X,o.prototype.drShiftTo=ee,o.prototype.lShiftTo=Y,o.prototype.rShiftTo=Z,o.prototype.subTo=oe,o.prototype.multiplyTo=ie,o.prototype.squareTo=he,o.prototype.divRemTo=fe,o.prototype.invDigit=ye,o.prototype.isEven=Ke,o.prototype.exp=F,o.prototype.toString=L,o.prototype.negate=z,o.prototype.abs=Q,o.prototype.compareTo=P,o.prototype.bitLength=V,o.prototype.mod=H,o.prototype.modPowInt=l,o.ZERO=B(0),o.ONE=B(1);function d(){var p=s();return this.copyTo(p),p}function y(){if(this.s<0){if(this.t==1)return this[0]-this.DV;if(this.t==0)return-1}else{if(this.t==1)return this[0];if(this.t==0)return 0}return(this[1]&(1<<32-this.DB)-1)<<this.DB|this[0]}function T(){return this.t==0?this.s:this[0]<<24>>24}function W(){return this.t==0?this.s:this[0]<<16>>16}function K(p){return Math.floor(Math.LN2*this.DB/Math.log(p))}function pe(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function Ce(p){if(p==null&&(p=10),this.signum()==0||p<2||p>36)return"0";var g=this.chunkSize(p),C=Math.pow(p,g),$=B(C),ne=s(),se=s(),de="";for(this.divRemTo($,ne,se);ne.signum()>0;)de=(C+se.intValue()).toString(p).substr(1)+de,ne.divRemTo($,ne,se);return se.intValue().toString(p)+de}function be(p,g){this.fromInt(0),g==null&&(g=10);for(var C=this.chunkSize(g),$=Math.pow(g,C),ne=!1,se=0,de=0,xe=0;xe<p.length;++xe){var qe=R(p,xe);if(qe<0){p.charAt(xe)=="-"&&this.signum()==0&&(ne=!0);continue}de=g*de+qe,++se>=C&&(this.dMultiply($),this.dAddOffset(de,0),se=0,de=0)}se>0&&(this.dMultiply(Math.pow(g,se)),this.dAddOffset(de,0)),ne&&o.ZERO.subTo(this,this)}function Be(p,g,C){if(typeof g=="number")if(p<2)this.fromInt(1);else for(this.fromNumber(p,C),this.testBit(p-1)||this.bitwiseTo(o.ONE.shiftLeft(p-1),Wt,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(g);)this.dAddOffset(2,0),this.bitLength()>p&&this.subTo(o.ONE.shiftLeft(p-1),this);else{var $=new Array,ne=p&7;$.length=(p>>3)+1,g.nextBytes($),ne>0?$[0]&=(1<<ne)-1:$[0]=0,this.fromString($,256)}}function Le(){var p=this.t,g=new Array;g[0]=this.s;var C=this.DB-p*this.DB%8,$,ne=0;if(p-- >0)for(C<this.DB&&($=this[p]>>C)!=(this.s&this.DM)>>C&&(g[ne++]=$|this.s<<this.DB-C);p>=0;)C<8?($=(this[p]&(1<<C)-1)<<8-C,$|=this[--p]>>(C+=this.DB-8)):($=this[p]>>(C-=8)&255,C<=0&&(C+=this.DB,--p)),$&128&&($|=-256),ne==0&&(this.s&128)!=($&128)&&++ne,(ne>0||$!=this.s)&&(g[ne++]=$);return g}function mt(p){return this.compareTo(p)==0}function Ht(p){return this.compareTo(p)<0?this:p}function zt(p){return this.compareTo(p)>0?this:p}function Rt(p,g,C){var $,ne,se=Math.min(p.t,this.t);for($=0;$<se;++$)C[$]=g(this[$],p[$]);if(p.t<this.t){for(ne=p.s&this.DM,$=se;$<this.t;++$)C[$]=g(this[$],ne);C.t=this.t}else{for(ne=this.s&this.DM,$=se;$<p.t;++$)C[$]=g(ne,p[$]);C.t=p.t}C.s=g(this.s,p.s),C.clamp()}function qt(p,g){return p&g}function zr(p){var g=s();return this.bitwiseTo(p,qt,g),g}function Wt(p,g){return p|g}function qr(p){var g=s();return this.bitwiseTo(p,Wt,g),g}function Wr(p,g){return p^g}function gr(p){var g=s();return this.bitwiseTo(p,Wr,g),g}function nr(p,g){return p&~g}function bn(p){var g=s();return this.bitwiseTo(p,nr,g),g}function Et(){for(var p=s(),g=0;g<this.t;++g)p[g]=this.DM&~this[g];return p.t=this.t,p.s=~this.s,p}function Cn(p){var g=s();return p<0?this.rShiftTo(-p,g):this.lShiftTo(p,g),g}function Vr(p){var g=s();return p<0?this.lShiftTo(-p,g):this.rShiftTo(p,g),g}function Gr(p){if(p==0)return-1;var g=0;return p&65535||(p>>=16,g+=16),p&255||(p>>=8,g+=8),p&15||(p>>=4,g+=4),p&3||(p>>=2,g+=2),p&1||++g,g}function Bn(){for(var p=0;p<this.t;++p)if(this[p]!=0)return p*this.DB+Gr(this[p]);return this.s<0?this.t*this.DB:-1}function Dn(p){for(var g=0;p!=0;)p&=p-1,++g;return g}function jr(){for(var p=0,g=this.s&this.DM,C=0;C<this.t;++C)p+=Dn(this[C]^g);return p}function Sn(p){var g=Math.floor(p/this.DB);return g>=this.t?this.s!=0:(this[g]&1<<p%this.DB)!=0}function Fn(p,g){var C=o.ONE.shiftLeft(p);return this.bitwiseTo(C,g,C),C}function Kr(p){return this.changeBit(p,Wt)}function Rn(p){return this.changeBit(p,nr)}function Yr(p){return this.changeBit(p,Wr)}function ft(p,g){for(var C=0,$=0,ne=Math.min(p.t,this.t);C<ne;)$+=this[C]+p[C],g[C++]=$&this.DM,$>>=this.DB;if(p.t<this.t){for($+=p.s;C<this.t;)$+=this[C],g[C++]=$&this.DM,$>>=this.DB;$+=this.s}else{for($+=this.s;C<p.t;)$+=p[C],g[C++]=$&this.DM,$>>=this.DB;$+=p.s}g.s=$<0?-1:0,$>0?g[C++]=$:$<-1&&(g[C++]=this.DV+$),g.t=C,g.clamp()}function bt(p){var g=s();return this.addTo(p,g),g}function Er(p){var g=s();return this.subTo(p,g),g}function In(p){var g=s();return this.multiplyTo(p,g),g}function P0(){var p=s();return this.squareTo(p),p}function N0(p){var g=s();return this.divRemTo(p,g,null),g}function L0(p){var g=s();return this.divRemTo(p,null,g),g}function k0(p){var g=s(),C=s();return this.divRemTo(p,g,C),new Array(g,C)}function M0(p){this[this.t]=this.am(0,p-1,this,0,0,this.t),++this.t,this.clamp()}function U0(p,g){if(p!=0){for(;this.t<=g;)this[this.t++]=0;for(this[g]+=p;this[g]>=this.DV;)this[g]-=this.DV,++g>=this.t&&(this[this.t++]=0),++this[g]}}function Ar(){}function _i(p){return p}function $0(p,g,C){p.multiplyTo(g,C)}function H0(p,g){p.squareTo(g)}Ar.prototype.convert=_i,Ar.prototype.revert=_i,Ar.prototype.mulTo=$0,Ar.prototype.sqrTo=H0;function z0(p){return this.exp(p,new Ar)}function q0(p,g,C){var $=Math.min(this.t+p.t,g);for(C.s=0,C.t=$;$>0;)C[--$]=0;var ne;for(ne=C.t-this.t;$<ne;++$)C[$+this.t]=this.am(0,p[$],C,$,0,this.t);for(ne=Math.min(p.t,g);$<ne;++$)this.am(0,p[$],C,$,0,g-$);C.clamp()}function W0(p,g,C){--g;var $=C.t=this.t+p.t-g;for(C.s=0;--$>=0;)C[$]=0;for($=Math.max(g-this.t,0);$<p.t;++$)C[this.t+$-g]=this.am(g-$,p[$],C,0,0,this.t+$-g);C.clamp(),C.drShiftTo(1,C)}function Yt(p){this.r2=s(),this.q3=s(),o.ONE.dlShiftTo(2*p.t,this.r2),this.mu=this.r2.divide(p),this.m=p}function bi(p){if(p.s<0||p.t>2*this.m.t)return p.mod(this.m);if(p.compareTo(this.m)<0)return p;var g=s();return p.copyTo(g),this.reduce(g),g}function wr(p){return p}function Ci(p){for(p.drShiftTo(this.m.t-1,this.r2),p.t>this.m.t+1&&(p.t=this.m.t+1,p.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);p.compareTo(this.r2)<0;)p.dAddOffset(1,this.m.t+1);for(p.subTo(this.r2,p);p.compareTo(this.m)>=0;)p.subTo(this.m,p)}function ir(p,g){p.squareTo(g),this.reduce(g)}function V0(p,g,C){p.multiplyTo(g,C),this.reduce(C)}Yt.prototype.convert=bi,Yt.prototype.revert=wr,Yt.prototype.reduce=Ci,Yt.prototype.mulTo=V0,Yt.prototype.sqrTo=ir;function Xr(p,g){var C=p.bitLength(),$,ne=B(1),se;if(C<=0)return ne;C<18?$=1:C<48?$=3:C<144?$=4:C<768?$=5:$=6,C<8?se=new j(g):g.isEven()?se=new Yt(g):se=new _e(g);var de=new Array,xe=3,qe=$-1,st=(1<<$)-1;if(de[1]=se.convert(this),$>1){var Ct=s();for(se.sqrTo(de[1],Ct);xe<=st;)de[xe]=s(),se.mulTo(Ct,de[xe-2],de[xe]),xe+=2}var At=p.t-1,Xt,Bi=!0,It=s(),Tt;for(C=k(p[At])-1;At>=0;){for(C>=qe?Xt=p[At]>>C-qe&st:(Xt=(p[At]&(1<<C+1)-1)<<qe-C,At>0&&(Xt|=p[At-1]>>this.DB+C-qe)),xe=$;!(Xt&1);)Xt>>=1,--xe;if((C-=xe)<0&&(C+=this.DB,--At),Bi)de[Xt].copyTo(ne),Bi=!1;else{for(;xe>1;)se.sqrTo(ne,It),se.sqrTo(It,ne),xe-=2;xe>0?se.sqrTo(ne,It):(Tt=ne,ne=It,It=Tt),se.mulTo(It,de[Xt],ne)}for(;At>=0&&!(p[At]&1<<C);)se.sqrTo(ne,It),Tt=ne,ne=It,It=Tt,--C<0&&(C=this.DB-1,--At)}return se.revert(ne)}function Tn(p){var g=this.s<0?this.negate():this.clone(),C=p.s<0?p.negate():p.clone();if(g.compareTo(C)<0){var $=g;g=C,C=$}var ne=g.getLowestSetBit(),se=C.getLowestSetBit();if(se<0)return g;for(ne<se&&(se=ne),se>0&&(g.rShiftTo(se,g),C.rShiftTo(se,C));g.signum()>0;)(ne=g.getLowestSetBit())>0&&g.rShiftTo(ne,g),(ne=C.getLowestSetBit())>0&&C.rShiftTo(ne,C),g.compareTo(C)>=0?(g.subTo(C,g),g.rShiftTo(1,g)):(C.subTo(g,C),C.rShiftTo(1,C));return se>0&&C.lShiftTo(se,C),C}function G0(p){if(p<=0)return 0;var g=this.DV%p,C=this.s<0?p-1:0;if(this.t>0)if(g==0)C=this[0]%p;else for(var $=this.t-1;$>=0;--$)C=(g*C+this[$])%p;return C}function j0(p){var g=p.isEven();if(this.isEven()&&g||p.signum()==0)return o.ZERO;for(var C=p.clone(),$=this.clone(),ne=B(1),se=B(0),de=B(0),xe=B(1);C.signum()!=0;){for(;C.isEven();)C.rShiftTo(1,C),g?((!ne.isEven()||!se.isEven())&&(ne.addTo(this,ne),se.subTo(p,se)),ne.rShiftTo(1,ne)):se.isEven()||se.subTo(p,se),se.rShiftTo(1,se);for(;$.isEven();)$.rShiftTo(1,$),g?((!de.isEven()||!xe.isEven())&&(de.addTo(this,de),xe.subTo(p,xe)),de.rShiftTo(1,de)):xe.isEven()||xe.subTo(p,xe),xe.rShiftTo(1,xe);C.compareTo($)>=0?(C.subTo($,C),g&&ne.subTo(de,ne),se.subTo(xe,se)):($.subTo(C,$),g&&de.subTo(ne,de),xe.subTo(se,xe))}if($.compareTo(o.ONE)!=0)return o.ZERO;if(xe.compareTo(p)>=0)return xe.subtract(p);if(xe.signum()<0)xe.addTo(p,xe);else return xe;return xe.signum()<0?xe.add(p):xe}var nt=[2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97,101,103,107,109,113,127,131,137,139,149,151,157,163,167,173,179,181,191,193,197,199,211,223,227,229,233,239,241,251,257,263,269,271,277,281,283,293,307,311,313,317,331,337,347,349,353,359,367,373,379,383,389,397,401,409,419,421,431,433,439,443,449,457,461,463,467,479,487,491,499,503,509,521,523,541,547,557,563,569,571,577,587,593,599,601,607,613,617,619,631,641,643,647,653,659,661,673,677,683,691,701,709,719,727,733,739,743,751,757,761,769,773,787,797,809,811,821,823,827,829,839,853,857,859,863,877,881,883,887,907,911,919,929,937,941,947,953,967,971,977,983,991,997],K0=(1<<26)/nt[nt.length-1];function Y0(p){var g,C=this.abs();if(C.t==1&&C[0]<=nt[nt.length-1]){for(g=0;g<nt.length;++g)if(C[0]==nt[g])return!0;return!1}if(C.isEven())return!1;for(g=1;g<nt.length;){for(var $=nt[g],ne=g+1;ne<nt.length&&$<K0;)$*=nt[ne++];for($=C.modInt($);g<ne;)if($%nt[g++]==0)return!1}return C.millerRabin(p)}function b(p){var g=this.subtract(o.ONE),C=g.getLowestSetBit();if(C<=0)return!1;var $=g.shiftRight(C);p=p+1>>1,p>nt.length&&(p=nt.length);for(var ne=s(),se=0;se<p;++se){ne.fromInt(nt[Math.floor(Math.random()*nt.length)]);var de=ne.modPow($,this);if(de.compareTo(o.ONE)!=0&&de.compareTo(g)!=0){for(var xe=1;xe++<C&&de.compareTo(g)!=0;)if(de=de.modPowInt(2,this),de.compareTo(o.ONE)==0)return!1;if(de.compareTo(g)!=0)return!1}}return!0}o.prototype.chunkSize=K,o.prototype.toRadix=Ce,o.prototype.fromRadix=be,o.prototype.fromNumber=Be,o.prototype.bitwiseTo=Rt,o.prototype.changeBit=Fn,o.prototype.addTo=ft,o.prototype.dMultiply=M0,o.prototype.dAddOffset=U0,o.prototype.multiplyLowerTo=q0,o.prototype.multiplyUpperTo=W0,o.prototype.modInt=G0,o.prototype.millerRabin=b,o.prototype.clone=d,o.prototype.intValue=y,o.prototype.byteValue=T,o.prototype.shortValue=W,o.prototype.signum=pe,o.prototype.toByteArray=Le,o.prototype.equals=mt,o.prototype.min=Ht,o.prototype.max=zt,o.prototype.and=zr,o.prototype.or=qr,o.prototype.xor=gr,o.prototype.andNot=bn,o.prototype.not=Et,o.prototype.shiftLeft=Cn,o.prototype.shiftRight=Vr,o.prototype.getLowestSetBit=Bn,o.prototype.bitCount=jr,o.prototype.testBit=Sn,o.prototype.setBit=Kr,o.prototype.clearBit=Rn,o.prototype.flipBit=Yr,o.prototype.add=bt,o.prototype.subtract=Er,o.prototype.multiply=In,o.prototype.divide=N0,o.prototype.remainder=L0,o.prototype.divideAndRemainder=k0,o.prototype.modPow=Xr,o.prototype.modInverse=j0,o.prototype.pow=z0,o.prototype.gcd=Tn,o.prototype.isProbablePrime=Y0,o.prototype.square=P0,o.prototype.Barrett=Yt;var N,S,M;function q(p){S[M++]^=p&255,S[M++]^=p>>8&255,S[M++]^=p>>16&255,S[M++]^=p>>24&255,M>=Xe&&(M-=Xe)}function U(){q(new Date().getTime())}if(S==null){S=new Array,M=0;var te;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var ae=new Uint8Array(32);for(window.crypto.getRandomValues(ae),te=0;te<32;++te)S[M++]=ae[te]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var ce=window.crypto.random(32);for(te=0;te<ce.length;++te)S[M++]=ce.charCodeAt(te)&255}}for(;M<Xe;)te=Math.floor(65536*Math.random()),S[M++]=te>>>8,S[M++]=te&255;M=0,U()}function ue(){if(N==null){for(U(),N=Ze(),N.init(S),M=0;M<S.length;++M)S[M]=0;M=0}return N.next()}function le(p){var g;for(g=0;g<p.length;++g)p[g]=ue()}function ge(){}ge.prototype.nextBytes=le;function Se(){this.i=0,this.j=0,this.S=new Array}function Ue(p){var g,C,$;for(g=0;g<256;++g)this.S[g]=g;for(C=0,g=0;g<256;++g)C=C+this.S[g]+p[g%p.length]&255,$=this.S[g],this.S[g]=this.S[C],this.S[C]=$;this.i=0,this.j=0}function $e(){var p;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,p=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=p,this.S[p+this.S[this.i]&255]}Se.prototype.init=Ue,Se.prototype.next=$e;function Ze(){return new Se}var Xe=256;t.exports={default:o,BigInteger:o,SecureRandom:ge}}).call(ve)})(Ac);var He=Ac.exports,q1=He.BigInteger.prototype.Barrett;function pt(t,e){this.x=e,this.q=t}function yt(t,e,r,n){this.curve=t,this.x=e,this.y=r,this.z=n==null?He.BigInteger.ONE:n,this.zinv=null}function Ut(t,e,r){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new yt(this,null,null),this.reducer=new q1(this.q)}pt.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},pt.prototype.toBigInteger=function(){return this.x},pt.prototype.negate=function(){return new pt(this.q,this.x.negate().mod(this.q))},pt.prototype.add=function(t){return new pt(this.q,this.x.add(t.toBigInteger()).mod(this.q))},pt.prototype.subtract=function(t){return new pt(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},pt.prototype.multiply=function(t){return new pt(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},pt.prototype.square=function(){return new pt(this.q,this.x.square().mod(this.q))},pt.prototype.divide=function(t){return new pt(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},yt.prototype.getX=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var t=this.x.toBigInteger().multiply(this.zinv);return this.curve.reduce(t),this.curve.fromBigInteger(t)},yt.prototype.getY=function(){this.zinv==null&&(this.zinv=this.z.modInverse(this.curve.q));var t=this.y.toBigInteger().multiply(this.zinv);return this.curve.reduce(t),this.curve.fromBigInteger(t)},yt.prototype.equals=function(t){return t==this||(this.isInfinity()?t.isInfinity():t.isInfinity()?this.isInfinity():!!t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(He.BigInteger.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(He.BigInteger.ZERO))},yt.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(He.BigInteger.ZERO)&&!this.y.toBigInteger().equals(He.BigInteger.ZERO)},yt.prototype.negate=function(){return new yt(this.curve,this.x,this.y.negate(),this.z)},yt.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.y.toBigInteger().multiply(this.z).subtract(this.y.toBigInteger().multiply(t.z)).mod(this.curve.q),r=t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q);if(He.BigInteger.ZERO.equals(r))return He.BigInteger.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new He.BigInteger("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),s=(t.x.toBigInteger(),t.y.toBigInteger(),r.square()),a=s.multiply(r),u=i.multiply(s),c=e.square().multiply(this.z),f=c.subtract(u.shiftLeft(1)).multiply(t.z).subtract(a).multiply(r).mod(this.curve.q),x=u.multiply(n).multiply(e).subtract(o.multiply(a)).subtract(c.multiply(e)).multiply(t.z).add(e.multiply(a)).mod(this.curve.q),h=a.multiply(this.z).multiply(t.z).mod(this.curve.q);return new yt(this.curve,this.curve.fromBigInteger(f),this.curve.fromBigInteger(x),h)},yt.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var t=new He.BigInteger("3"),e=this.x.toBigInteger(),r=this.y.toBigInteger(),n=r.multiply(this.z),i=n.multiply(r).mod(this.curve.q),o=this.curve.a.toBigInteger(),s=e.square().multiply(t);He.BigInteger.ZERO.equals(o)||(s=s.add(this.z.square().multiply(o)));var a=(s=s.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.q),u=s.multiply(t).multiply(e).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(s.square().multiply(s)).mod(this.curve.q),c=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new yt(this.curve,this.curve.fromBigInteger(a),this.curve.fromBigInteger(u),c)},yt.prototype.multiply=function(t){if(this.isInfinity())return this;if(t.signum()==0)return this.curve.getInfinity();var e,r=t,n=r.multiply(new He.BigInteger("3")),i=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var s=n.testBit(e);s!=r.testBit(e)&&(o=o.add(s?this:i))}return o},yt.prototype.multiplyTwo=function(t,e,r){var n;n=t.bitLength()>r.bitLength()?t.bitLength()-1:r.bitLength()-1;for(var i=this.curve.getInfinity(),o=this.add(e);n>=0;)i=i.twice(),t.testBit(n)?i=r.testBit(n)?i.add(o):i.add(this):r.testBit(n)&&(i=i.add(e)),--n;return i},Ut.prototype.getQ=function(){return this.q},Ut.prototype.getA=function(){return this.a},Ut.prototype.getB=function(){return this.b},Ut.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},Ut.prototype.getInfinity=function(){return this.infinity},Ut.prototype.fromBigInteger=function(t){return new pt(this.q,t)},Ut.prototype.reduce=function(t){this.reducer.reduce(t)},Ut.prototype.decodePointHex=function(t){switch(parseInt(t.substr(0,2),16)){case 0:return this.infinity;case 2:case 3:return null;case 4:case 6:case 7:var e=(t.length-2)/2,r=t.substr(2,e),n=t.substr(e+2,e);return new yt(this,this.fromBigInteger(new He.BigInteger(r,16)),this.fromBigInteger(new He.BigInteger(n,16)));default:return null}},Ut.prototype.encodePointHex=function(t){if(t.isInfinity())return"00";var e=t.getX().toBigInteger().toString(16),r=t.getY().toBigInteger().toString(16),n=this.getQ().toString(16).length;for(n%2!=0&&n++;e.length<n;)e="0"+e;for(;r.length<n;)r="0"+r;return"04"+e+r};var at=function(t,e){return t<<(e%=32)|t>>>32-e},__$t__=function(t,e){var r=e-t.length;return(r>0?"0".repeat(r):"")+t},W1=function(t){return t<16?2043430169:2055708042},V1=function(t,e,r,n){return n<16?t^e^r:t&e|t&r|e&r},G1=function(t,e,r,n){return n<16?t^e^r:t&e|~t&r},j1=function(t,e,r){for(var n,i,o,s,a,u=function(w){var _,B=new Array(132);w.forEach(function(L,z){B[z]=L});for(var D=16;D<68;D++)B[D]=(_=B[D-16]^B[D-9]^at(B[D-3],15))^at(_,15)^at(_,23)^at(B[D-13],7)^B[D-6];for(var O=0;O<64;O++)B[O+68]=B[O]^B[O+4];return B}(e),c=t[0],f=t[1],x=t[2],h=t[3],v=t[4],m=t[5],E=t[6],A=t[7],R=0;R<64;R++)i=(n=at(at(c,12)+v+at(W1(R),R),7))^at(c,12),o=V1(c,f,x,R)+h+i+u[R+68],s=G1(v,m,E,R)+A+n+u[R],h=x,x=at(f,9),f=c,c=o,A=E,E=at(m,19),m=v,v=(a=s)^at(a,9)^at(a,17);return[c^t[0],f^t[1],x^t[2],h^t[3],v^t[4],m^t[5],E^t[6],A^t[7]]},h0=function(t,e,r){if(typeof t=="string"?t=Fe.Buffer.from(t,e||"utf8"):t instanceof ArrayBuffer&&(t=Fe.Buffer.from(t)),!Fe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var n,i,o,s,a,u;n=t,i=Fe.Buffer.alloc(1,128),s=Fe.Buffer.alloc(o=(o=n.length%64)>=56?64-o%56-1:56-o-1,0),a=Fe.Buffer.alloc(8),u=8*n.length,a.writeUInt32BE(Math.floor(u/Math.pow(2,32)),0),a.writeUInt32BE(u%Math.pow(2,32),4);for(var c=(t=Fe.Buffer.concat([n,i,s,a],n.length+1+o+8)).length/64,f=new Array(c),x=0;x<c;x++){f[x]=new Array(16);for(var h=0;h<16;h++)f[x][h]=t.readUInt32BE(64*x+4*h)}var v=new Array(c);v[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var m=0;m<c;m++)v[m+1]=j1(v[m],f[m]);var E=Fe.Buffer.alloc(32);return v[c].forEach(function(A,R){return E.writeInt32BE(A,4*R)}),r?E.toString(r):vn(E)},wc=new He.SecureRandom,d0=function(){var t=new Ut(new He.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new He.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new He.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16)),e=t.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:t,G:e,n:new He.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),_c=d0.curve,bc=d0.G,ui=d0.n;function Cc(t,e){for(var r=[],n=Math.ceil(e/32),i=e%32,o=1;o<=n;o++){var s=Fe.Buffer.allocUnsafe(4);s.writeUInt32BE(o);var a=h0(Fe.Buffer.concat([t,s]));r.push(o===n&&i?Fe.Buffer.from(a).slice(0,i):Fe.Buffer.from(a))}return Fe.Buffer.concat(r,e)}var K1={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var t=new He.BigInteger(ui.bitLength(),wc).mod(ui.subtract(new He.BigInteger("2"))).add(He.BigInteger.ONE),e=__$t__(t.toString(16),64),r=bc.multiply(t);return{privateKey:e,publicKey:"04"+__$t__(r.getX().toBigInteger().toString(16),64)+__$t__(r.getY().toBigInteger().toString(16),64)}},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,s=n.outputEncoding,a=n.pc;if(typeof t=="string"?t=Fe.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=Fe.Buffer.from(t)),!Fe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var u=new He.BigInteger(ui.bitLength(),wc).mod(ui.subtract(He.BigInteger.ONE)).add(He.BigInteger.ONE),c=bc.multiply(u),f=__$t__(c.getX().toBigInteger().toString(16),64)+__$t__(c.getY().toBigInteger().toString(16),64),x=_c.decodePointHex(e).multiply(u),h=__$t__(x.getX().toBigInteger().toString(16),64),v=__$t__(x.getY().toBigInteger().toString(16),64),m=Cc(Fe.Buffer.from(h+v,"hex"),t.length),E=__$t__(new He.BigInteger(t.toString("hex"),16).xor(new He.BigInteger(m.toString("hex"),16)).toString(16),2*t.length),A=h0(h+t.toString("hex")+v,"hex","hex"),R=Fe.Buffer.from((a?"04":"")+(o===0?f+E+A:f+A+E),"hex");return s?R.toString(s):vn(R)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,s=n.outputEncoding,a=n.pc;if(typeof t=="string"?t=Fe.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=Fe.Buffer.from(t)),!Fe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var u=(t=a?t.slice(1):t).slice(0,32).toString("hex"),c=t.slice(32,64).toString("hex"),f=_c.decodePointHex("04"+u+c).multiply(new He.BigInteger(e,16)),x=__$t__(f.getX().toBigInteger().toString(16),64),h=__$t__(f.getY().toBigInteger().toString(16),64),v=t.slice(64,96),m=t.slice(96);o===0&&(v=t.slice(t.length-32),m=t.slice(64,t.length-32));var E=Cc(Fe.Buffer.from(x+h,"hex"),m.length),A=new He.BigInteger(m.toString("hex"),16).xor(new He.BigInteger(E.toString("hex"),16)).toString(16),R=h0(x+A+h,"hex","hex")===v.toString("hex")?Fe.Buffer.from(A,"hex"):Fe.Buffer.alloc(0);return s?R.toString(s):vn(R)}},li=[[214,144,233,254,204,225,61,183,22,182,20,194,40,251,44,5],[43,103,154,118,42,190,4,195,170,68,19,38,73,134,6,153],[156,66,80,244,145,239,152,122,51,84,11,67,237,207,172,98],[228,179,28,169,201,8,232,149,128,223,148,250,117,143,63,166],[71,7,167,252,243,115,23,186,131,89,60,25,230,133,79,168],[104,107,129,178,113,100,218,139,248,235,15,75,112,86,157,53],[30,36,14,94,99,88,209,162,37,34,124,59,1,33,120,135],[212,0,70,87,159,211,39,82,76,54,2,231,160,196,200,158],[234,191,138,210,64,199,56,181,163,247,242,206,249,97,21,161],[224,174,93,164,155,52,26,85,173,147,50,48,245,140,177,227],[29,246,226,46,130,102,202,96,192,41,35,171,13,83,78,111],[213,219,55,69,222,253,142,47,3,255,106,114,109,108,91,81],[141,27,175,146,187,221,188,127,17,217,92,65,31,16,90,216],[10,193,49,136,165,205,123,189,45,116,208,18,184,229,180,176],[137,105,151,74,12,150,119,126,101,185,241,9,197,110,198,132],[24,240,125,236,58,220,77,32,121,238,95,62,215,203,57,72]],hi=[2746333894,1453994832,1736282519,2993693404],Y1=[462357,472066609,943670861,1415275113,1886879365,2358483617,2830087869,3301692121,3773296373,4228057617,404694573,876298825,1347903077,1819507329,2291111581,2762715833,3234320085,3705924337,4177462797,337322537,808926789,1280531041,1752135293,2223739545,2695343797,3166948049,3638552301,4110090761,269950501,741554753,1213159005,1684763257],di=/^[0-9a-f]{32}$/i,Bc=function(t){return li[(4026531840&t)>>>28][(251658240&t)>>>24]<<24|li[(15728640&t)>>>20][(983040&t)>>>16]<<16|li[(61440&t)>>>12][(3840&t)>>>8]<<8|li[(240&t)>>>4][(15&t)>>>0]<<0},Dc=function(t){return(e=Bc(t))^at(e,2)^at(e,10)^at(e,18)^at(e,24);var e},Sc=function(t){var e,r=new Array(36);r[0]=t[0]^hi[0],r[1]=t[1]^hi[1],r[2]=t[2]^hi[2],r[3]=t[3]^hi[3];for(var n=new Array(32),i=0;i<32;i++)r[i+4]=r[i]^(e=Bc(r[i+1]^r[i+2]^r[i+3]^Y1[i]))^at(e,13)^at(e,23),n[i]=r[i+4];return n},Fc=function(t,e){for(var r=Sc(e),n=0;n<32;n++)t[n+4]=t[n]^Dc(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},Rc=function(t,e){for(var r=Sc(e).reverse(),n=0;n<32;n++)t[n+4]=t[n]^Dc(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},pi=function(t){return[t.readInt32BE(0),t.readInt32BE(4),t.readInt32BE(8),t.readInt32BE(12)]},xi=function(t){for(var e=Fe.Buffer.alloc(16),r=0;r<4;r++)e.writeInt32BE(t[r],4*r);return e},kr={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,s=n.outputEncoding;if(typeof t=="string"?t=Fe.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=Fe.Buffer.from(t)),!Fe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!di.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=Fe.Buffer.from(e,"hex"),i===2&&!di.test(o))throw new TypeError("Invalid value of `iv` option");return function(a,u,c,f){c&&(c=pi(c)),u=pi(u);for(var x=[],h=(a=function(D){var O=16-D.length%16,L=Fe.Buffer.alloc(O,O);return Fe.Buffer.concat([D,L],D.length+O)}(a)).length/16,v=0;v<h;v++)if(c){var m=16*v,E=[c[0]^a.readInt32BE(m),c[1]^a.readInt32BE(m+4),c[2]^a.readInt32BE(m+8),c[3]^a.readInt32BE(m+12)],A=Fc(E,u);x.push(xi(A)),c=A.slice(0)}else{var R=16*v,w=[a.readInt32BE(R),a.readInt32BE(R+4),a.readInt32BE(R+8),a.readInt32BE(R+12)],_=Fc(w,u);x.push(xi(_))}var B=Fe.Buffer.concat(x,a.length);return f?B.toString(f):vn(B)}(t,e,o=i===2?Fe.Buffer.from(o,"hex"):null,s)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,s=n.outputEncoding;if(typeof t=="string"?t=Fe.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=Fe.Buffer.from(t)),!Fe.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!di.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=Fe.Buffer.from(e,"hex"),i===2&&!di.test(o))throw new TypeError("Invalid value of `iv` option");return function(a,u,c,f){c&&(c=pi(c)),u=pi(u);var x=[],h=a.length/16;if(c)for(var v=h-1;v>=0;v--){var m,E=16*v;m=v>0?[a.readInt32BE(E-16),a.readInt32BE(E-16+4),a.readInt32BE(E-16+8),a.readInt32BE(E-16+12)]:c;var A=[a.readInt32BE(E),a.readInt32BE(E+4),a.readInt32BE(E+8),a.readInt32BE(E+12)],R=Rc(A,u);x.unshift(xi([R[0]^m[0],R[1]^m[1],R[2]^m[2],R[3]^m[3]]))}else for(var w=0;w<h;w++){var _=16*w,B=[a.readInt32BE(_),a.readInt32BE(_+4),a.readInt32BE(_+8),a.readInt32BE(_+12)],D=Rc(B,u);x.push(xi(D))}var O=Fe.Buffer.concat(x,a.length-x[x.length-1][15]);return f?O.toString(f):vn(O)}(t,e,o=i===2?Fe.Buffer.from(o,"hex"):null,s)}};(function(){if(typeof Object.id=="undefined"){var t=0;Object.id=function(e){return typeof e.__uniqueid=="undefined"&&Object.defineProperty(e,"__uniqueid",{value:++t,enumerable:!1,writable:!1}),e.__uniqueid}}})();function X1(){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1];this.encode=function(r){var n,i,o,s,a,u;for(o=r.length,i=0,n="";i<o;){if(s=r.charCodeAt(i++)&255,i==o){n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4),n+="==";break}if(a=r.charCodeAt(i++),i==o){n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4|(a&240)>>4),n+=t.charAt((a&15)<<2),n+="=";break}u=r.charCodeAt(i++),n+=t.charAt(s>>2),n+=t.charAt((s&3)<<4|(a&240)>>4),n+=t.charAt((a&15)<<2|(u&192)>>6),n+=t.charAt(u&63)}return n},this.decode=function(r){var n,i,o,s,a,u,c;for(u=r.length,a=0,c="";a<u;){do n=e[r.charCodeAt(a++)&255];while(a<u&&n==-1);if(n==-1)break;do i=e[r.charCodeAt(a++)&255];while(a<u&&i==-1);if(i==-1)break;c+=String.fromCharCode(n<<2|(i&48)>>4);do{if(o=r.charCodeAt(a++)&255,o==61)return c;o=e[o]}while(a<u&&o==-1);if(o==-1)break;c+=String.fromCharCode((i&15)<<4|(o&60)>>2);do{if(s=r.charCodeAt(a++)&255,s==61)return c;s=e[s]}while(a<u&&s==-1);if(s==-1)break;c+=String.fromCharCode((o&3)<<6|s)}return c},this.utf16to8=function(r){var n,i,o,s;for(n="",o=r.length,i=0;i<o;i++)s=r.charCodeAt(i),s>=1&&s<=127?n+=r.charAt(i):s>2047?(n+=String.fromCharCode(224|s>>12&15),n+=String.fromCharCode(128|s>>6&63),n+=String.fromCharCode(128|s>>0&63)):(n+=String.fromCharCode(192|s>>6&31),n+=String.fromCharCode(128|s>>0&63));return n},this.utf8to16=function(r){var n,i,o,s,a,u;for(n="",o=r.length,i=0;i<o;)switch(s=r.charCodeAt(i++),s>>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:n+=r.charAt(i-1);break;case 12:case 13:a=r.charCodeAt(i++),n+=String.fromCharCode((s&31)<<6|a&63);break;case 14:a=r.charCodeAt(i++),u=r.charCodeAt(i++),n+=String.fromCharCode((s&15)<<12|(a&63)<<6|(u&63)<<0);break}return n},this.charToHex=function(r){var n,i,o;for(n="",i=0;i<r.length;)o=r.charCodeAt(i++).toString(16),n+="\\0x"+o,n+=i>0&&i%8==0?`\r
|
|
36
|
+
`:", ";return n}}function J1(){var t=0,e=new Object;this.add=function(r,n){this.containsKey(r)||t++,e[r]=n},this.getValue=function(r){return this.containsKey(r)?e[r]:null},this.remove=function(r){this.containsKey(r)&&delete e[r]&&t--},this.containsKey=function(r){return r in e},this.containsValue=function(r){for(var n in e)if(e[n]==r)return!0;return!1},this.getValues=function(){var r=[];for(var n in e)r.push(e[n]);return r},this.getKeys=function(){var r=[];for(var n in e)r.push(n);return r},this.getSize=function(){return t},this.clear=function(){t=0,e=new Object}}function Q1(t){if(this.connect=!1,this.ready_func_=null,this.callbacks_=new J1,this.module_="JS_IActiveXCtrl","WebSocket"in window)this.ws=new WebSocket("ws://127.0.0.1:7321");else throw"WebSocket not supported";this.ws.onerror=function(){throw"Unable to establish connection to WebSocket"},this.loadModule=function(){this.connect=!0;var e=JSON.stringify({MsgId:"LoadModule",Module:this.module_});this.ws.onmessage=this._callback.bind(this),this.ws.send(e)},this.loadModuleCallBack=function(e){if(!e)throw e.Response;this.ready_func_&&this.ready_func_()}.bind(this),this.callbacks_.add("LoadModule",this.loadModuleCallBack),this.exec=function(e,r,n){var i=Object.id(n).toString();this.callbacks_.add(i,n);var o={MsgId:i,Method:e+"|"+t};r&&(o.Param=JSON.stringify(r));var s=JSON.stringify(o);this.connect&&this.ws.send(s)},this.ready=function(e){this.ready_func_=e},this._callback=function(e){var r=JSON.parse(e.data),n=r.MsgId;if(this.callbacks_.containsKey(n)){var i=this.callbacks_.getValue(n);i(r.Result,r.Response),this.callbacks_.remove(n)}},this.ws.onopen=this.loadModule.bind(this),this.Arm_GetDongleInfo=function({Index:e,DongleInfoNum:r},n){this.exec("Arm_GetDongleInfo",[parseInt(e),parseInt(r)],n)},this.Arm_Enum=function(e){this.exec("Arm_Enum",null,e)},this.Arm_Open=function({Index:e},r){this.exec("Arm_Open",[parseInt(e)],r)},this.Arm_Close=function({Handle:e},r){this.exec("Arm_Close",[parseInt(e)],r)},this.Arm_VerifyPIN=function({Handle:e,UserPin:r,UserType:n},i){this.exec("Arm_VerifyPIN",[parseInt(e),n,r],i)},this.Arm_ResetState=function({Handle:e},r){this.exec("Arm_ResetState",[parseInt(e)],r)},this.Arm_GenRandom=function({Handle:e,RandomLen:r},n){this.exec("Arm_GenRandom",[parseInt(e),parseInt(r)],n)},this.Arm_LEDControl=function({Handle:e,LedFlag:r},n){this.exec("Arm_LEDControl",[parseInt(e),r],n)},this.Arm_SwitchProtocol=function({Handle:e,ProtocolFlag:r},n){this.exec("Arm_SwitchProtocol",[parseInt(e),r],n)},this.Arm_CreateFile=function({Handle:e,FileID:r,FileType:n,AttrBuffer:i},o){this.exec("Arm_CreateFile",[parseInt(e),n,parseInt(r),i],o)},this.Arm_WriteFile=function({Handle:e,FileID:r,FileType:n,FileOffset:i,DataInput:o},s){this.exec("Arm_WriteFile",[parseInt(e),n,parseInt(r),parseInt(i),o],s)},this.Arm_ReadFile0001=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0001"),parseInt(0),parseInt("64")],r)},this.Arm_ReadFile0002=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0002"),parseInt(0),parseInt("130")],r)},this.Arm_ReadFile0003=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0003"),parseInt(0),parseInt("130")],r)},this.Arm_ReadFile0004=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0004"),parseInt(0),parseInt("2048")],r)},this.Arm_ReadFile0005=function({Handle:e},r){this.exec("Arm_ReadFile",[parseInt(e),parseInt("0005"),parseInt(0),parseInt("2048")],r)},this.Arm_DownloadExeFile=function({Handle:e,Count:r,ExeFileInfo:n},i){this.exec("Arm_DownloadExeFile",[parseInt(e),parseInt(r),n],i)},this.Arm_RunExeFile=function({Handle:e,FileID:r,InData:n,DataLen:i},o){this.exec("Arm_RunExeFile",[parseInt(e),parseInt(r),n,n.length,parseInt(i)],o)},this.Arm_ReadRunExeFileData=function(e){this.exec("Arm_ReadRunExeFileData",null,e)},this.Arm_DeleteFile=function({Handle:e,FileID:r,FileType:n},i){this.exec("Arm_DeleteFile",[parseInt(e),n,parseInt(r)],i)},this.Arm_WriteData=function({Handle:e,Offset:r,DataInput:n},i){this.exec("Arm_WriteData",[parseInt(e),parseInt(r),n],i)},this.Arm_ReadData=function({Handle:e,Offset:r,ReadLength:n},i){this.exec("Arm_ReadData",[parseInt(e),parseInt(r),n],i)},this.Arm_WriteShareMemory=function({Handle:e,DataInput:r},n){this.exec("Arm_WriteShareMemory",[parseInt(e),r],n)},this.Arm_ReadShareMemory=function({Handle:e},r){this.exec("Arm_ReadShareMemory",[parseInt(e)],r)},this.Arm_GenUniqueKey=function({Handle:e,Seed:r},n){this.exec("Arm_GenUniqueKey",[parseInt(e),r.length,r],n)},this.Arm_ChangePIN=function({Handle:e,NewPIN:r,OldPIN:n,TryCount:i,PinFlag:o},s){this.exec("Arm_ChangePIN",[parseInt(e),o,n,r,parseInt(i)],s)},this.Arm_ResetUserPIN=function({Handle:e,AdminPIN:r},n){this.exec("Arm_ResetUserPIN",[parseInt(e),r],n)},this.Arm_SetUserID=function({Handle:e,UserID:r},n){this.exec("Arm_SetUserID",[parseInt(e),parseInt(r)],n)},this.Arm_GetDeadline=function({Handle:e},r){this.exec("Arm_GetDeadline",[parseInt(e)],r)},this.Arm_SetDeadline=function({Handle:e,SetDeadTime:r},n){this.exec("Arm_SetDeadline",[parseInt(e),parseInt(r)],n)},this.Arm_GetUTCTime=function({Handle:e},r){this.exec("Arm_GetUTCTime",[parseInt(e)],r)},this.Arm_RFS=function({Handle:e},r){this.exec("Arm_RFS",[parseInt(e)],r)},this.Arm_RsaGenPubPriKey=function({Handle:e,RsaFileId:r},n){this.exec("Arm_RsaGenPubPriKey",[parseInt(e),parseInt(r)],n)},this.Arm_EccGenPubPriKey=function({Handle:e,EccFileId:r},n){this.exec("Arm_EccGenPubPriKey",[parseInt(e),parseInt(r)],n)},this.Arm_Sm2GenPubPriKey=function({Handle:e,Sm2FileId:r},n){this.exec("Arm_Sm2GenPubPriKey",[parseInt(e),parseInt(r)],n)},this.Arm_ReadRsaPri=function(e){this.exec("Arm_ReadRsaPri",null,e)},this.Arm_ReadRsaPub=function(e){this.exec("Arm_ReadRsaPub",null,e)},this.Arm_ReadEccPri=function(e){this.exec("Arm_ReadEccPri",null,e)},this.Arm_ReadEccPub=function(e){this.exec("Arm_ReadEccPub",null,e)},this.Arm_ReadSm2Pri=function(e){this.exec("Arm_ReadSm2Pri",null,e)},this.Arm_ReadSm2Pub=function(e){this.exec("Arm_ReadSm2Pub",null,e)},this.Arm_RsaPri=function({Handle:e,RsaPri_Flag:r,RsaPriInData:n,RsaPriFileID:i,RsaPriFileSize:o},s){this.exec("Arm_RsaPri",[parseInt(e),parseInt(i),parseInt(o),r,n],s)},this.Arm_RsaPub=function({Handle:e,RsaPubKey:r,RsaPub_Flag:n,RsaPubInData:i,RsaPubFileSize:o},s){this.exec("Arm_RsaPub",[parseInt(e),parseInt(o),n,r,r.length,i],s)},this.Arm_EccSign=function({Handle:e,HashData:r,EccFileId:n},i){this.exec("Arm_EccSign",[parseInt(e),parseInt(n),r],i)},this.Arm_EccVerify=function({Handle:e,HashData:r,EccPubKey:n,EccSignData:i},o){this.exec("Arm_EccVerify",[parseInt(e),n,n.length,r,i],o)},this.Arm_Sm2Sign=function({Handle:e,HashData:r,Sm2FileId:n},i){this.exec("Arm_Sm2Sign",[parseInt(e),parseInt(n),r],i)},this.Arm_Sm2Verify=function({Handle:e,HashData:r,Sm2PubKey:n,Sm2SignData:i},o){this.exec("Arm_Sm2Verify",[parseInt(e),n,n.length,r,i],o)},this.Arm_TDES=function({Handle:e,Tdes_Flag:r,TdesFileID:n,TdesInData:i},o){this.exec("Arm_TDES",[parseInt(e),parseInt(n),r,i],o)},this.Arm_SM4=function({Handle:e,Sm4_Flag:r,Sm4FileID:n,Sm4InData:i},o){this.exec("Arm_SM4",[parseInt(e),parseInt(n),r,i],o)},this.Arm_HASH=function({Handle:e,Hash_Flag:r,HashInData:n},i){this.exec("Arm_HASH",[parseInt(e),r,n],i)},this.Arm_Seed=function({Handle:e,SeedData:r,SeedLength:n},i){this.exec("Arm_Seed",[parseInt(e),n,r],i)},this.Arm_LimitSeedCount=function({Handle:e,SeedCount:r},n){this.exec("Arm_LimitSeedCount",[parseInt(e),parseInt(r)],n)},this.Arm_GenMotherKey=function({Handle:e,SeedLen:r,SeedForPID:n,SonCount:i,StartUserID:o,AdminTryCount:s,UserPin:a,UserTryCount:u,UpdateRSAPriKey:c},f){this.exec("Arm_GenMotherKey",[parseInt(e),parseInt(r),n,a,parseInt(u),parseInt(s),c,parseInt(o),parseInt(i)],f)},this.Arm_RequestInit=function({Handle:e},r){this.exec("Arm_RequestInit",[parseInt(e)],r)},this.Arm_GetInitDataFromMother=function({Handle:e},r){this.exec("Arm_GetInitDataFromMother",[parseInt(e),Request],r)},this.Arm_InitSon=function({Handle:e,InitData:r},n){this.exec("Arm_InitSon",[parseInt(e),r],n)},this.Arm_SetUpdatePriKey=function({Handle:e,UpdatePriKey:r},n){this.exec("Arm_SetUpdatePriKey",[parseInt(e),r],n)},this.Arm_MakeUpdatePacket=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:s,DataLen:a,DataBuffer:u,UpRSAPubKey:c},f){this.exec("Arm_MakeUpdatePacket",[parseInt(e),r,n,o,parseInt(i),parseInt(s),u,c,parseInt(a)],f)},this.Arm_MakeUpdatePacketFromMother=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:s,DataLen:a,DataBuffer:u},c){this.exec("Arm_MakeUpdatePacketFromMother",[parseInt(e),r,n,o,parseInt(i),parseInt(s),u,parseInt(a)],c)},this.Arm_Update=function({Handle:e,UpdateData:r},n){this.exec("Arm_Update",[parseInt(e),r],n)},this.Arm_Set_DATA_FILE_ATTR=function({Size:e,ReadPriv:r,WritePriv:n},i){this.exec("Arm_Set_DATA_FILE_ATTR",[parseInt(e),parseInt(r),parseInt(n)],i)},this.Arm_Set_PRIKEY_FILE_ATTR=function({Count:e,Size:r,Type:n,Priv:i,IsReset:o,IsDecOnRAM:s},a){this.exec("Arm_Set_PRIKEY_FILE_ATTR",[n,parseInt(r),parseInt(e),parseInt(i),parseInt(s),parseInt(o)],a)},this.Arm_Set_KEY_FILE_ATTR=function({Size:e,PrivEnc:r},n){this.exec("Arm_Set_KEY_FILE_ATTR",[parseInt(e),parseInt(r)],n)},this.Arm_Set_EXE_FILE_ATTR=function({FileLen:e,PrivExe:r},n){this.exec("Arm_Set_EXE_FILE_ATTR",[parseInt(e),parseInt(r)],n)},this.Arm_Set_DATA_LIC=function({ReadPriv:e,WritePriv:r},n){this.exec("Arm_Set_DATA_LIC",[parseInt(e),parseInt(r)],n)},this.Arm_Set_PRIKEY_LIC=function({Count:e,Priv:r,IsReset:n,IsDecOnRAM:i},o){this.exec("Arm_Set_PRIKEY_LIC",[parseInt(e),parseInt(r),parseInt(i),parseInt(n)],o)},this.Arm_Set_KEY_LIC=function({PrivEnc:e},r){this.exec("Arm_Set_KEY_LIC",[parseInt(e)],r)},this.Arm_Set_EXE_LIC=function({PrivExe:e},r){this.exec("Arm_Set_EXE_LIC",[parseInt(e)],r)},this.Arm_Set_EXE_FILE_INFO=function({FileID:e,FileData:r,FileSize:n,InBuffer:i,CallLimit:o},s){this.exec("Arm_Set_EXE_FILE_INFO",[i,parseInt(n),parseInt(e),parseInt(o),r,r.length],s)},this.Arm_Clear_EXE_FILE_INFO=function({InBuffer:e},r){this.exec("Arm_Clear_EXE_FILE_INFO",[e],r)}}const Z1={HID:0},yi={PRODUCT_ID:0,USER_ID:1,HARDWARE_ID:2},Ic={USER:0};class Tc{constructor(){_r(this,"Base64",new X1);_r(this,"AtlCtrl",null);_r(this,"ArmCount",0);_r(this,"ArmIndex",0);_r(this,"ArmHandle",0);_r(this,"ArmRandom","");try{this.AtlCtrl=new Q1("{39E9B272-82A7-4177-A19D-6723C1BDB0CC}")}catch(e){console.error(e),this.AtlCtrl=null}}armEnum(){if(this.AtlCtrl)return new Promise((e,r)=>{this.AtlCtrl.Arm_Enum((n,i)=>{n?(this.ArmCount=+i,e(i)):r(i)})})}armOpen(e=0){if(this.AtlCtrl)return this.ArmIndex=e,new Promise((r,n)=>{this.AtlCtrl.Arm_Open({Index:e},(i,o)=>{i?(this.ArmHandle=+o,r(o)):(this.ArmHandle=o,n(o))})})}armClose(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_Close({Handle:e},(i,o)=>{i?r(o):n(o)})})}armChangePIN(e,r,n=255,i=Ic.USER,o=this.ArmHandle){if(this.AtlCtrl)return new Promise((s,a)=>{this.AtlCtrl.Arm_ChangePIN({Handle:o,NewPIN:e,OldPIN:r,TryCount:n,PinFlag:i},(u,c)=>{u&&c==0?(this.ArmPin=e,s(c)):a(c)})})}armGenRandom(e=16,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_GenRandom({Handle:r,RandomLen:e},(o,s)=>{o?(this.ArmRandom=s,n(s)):i(s)})})}armGetDeadline(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_GetDeadline({Handle:e},(i,o)=>{i?(this.ArmDeadline=o,r(o)):n(o)})})}armGenUniqueKey(e="MTIzNDU2Nzg5MA==",r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_GenUniqueKey({Handle:r,Seed:e},(o,s)=>{o?(this.ArmUKey=s,n(s)):i(s)})})}armGetDongleInfo(e=0,r=yi.HARDWARE_ID){if(this.AtlCtrl)return this.ArmIndex=e,new Promise((n,i)=>{this.AtlCtrl.Arm_GetDongleInfo({Index:e,DongleInfoNum:r},(o,s)=>{if(o){switch(r){case yi.USER_ID:this.ArmUid=s;break;case yi.PRODUCT_ID:this.ArmPid=s;break;case yi.HARDWARE_ID:this.ArmHid=s;break}n(s)}else i(s)})})}armLEDControl(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_LEDControl({Handle:r,LedFlag:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armRFS(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_RFS({Handle:e},(i,o)=>{i&&o==0?r(o):n(o)})})}armReadFile(e="0001",r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl[`Arm_ReadFile${e}`]({Handle:r},(o,s)=>{if(o&&s.length>0)try{s=this.Base64.decode(s),n(s)}catch(a){console.error(a),n(s)}else i(s)})})}armResetState(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_ResetState({Handle:e},(i,o)=>{i&&o==0?r(o):n(o)})})}armResetUserPIN(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_ResetUserPIN({Handle:r,AdminPIN:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armSetUserID(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetUserID({Handle:r,UserID:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armSetDeadline(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetDeadline({Handle:r,SetDeadTime:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armSwitchProtocol(e=Z1.HID,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SwitchProtocol({Handle:r,ProtocolFlag:e},(o,s)=>{o&&s==0?n(s):i(s)})})}armVerifyPIN(e,r=Ic.USER,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_VerifyPIN({Handle:n,UserPin:e,UserType:r},(s,a)=>{s&&a==0?(this.ArmPin=e,i(a)):o(a)})})}armReadData(e=0,r=128,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_ReadData({Handle:n,Offset:e,ReadLength:r},(s,a)=>{s?(this.ArmData=a,i(a)):o(a)})})}armWriteData(e,r=0,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_WriteData({Handle:n,Offset:r,DataInput:e},(s,a)=>{s&&a==0?i(a):o(a)})})}armReadShareMemory(e=this.ArmHandle){if(this.AtlCtrl)return new Promise((r,n)=>{this.AtlCtrl.Arm_ReadShareMemory({Handle:e},(i,o)=>{i?(this.ArmData=o,r(o)):n(o)})})}armWriteShareMemory(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_WriteShareMemory({Handle:r,DataInput:e},(o,s)=>{o&&s==0?n(s):i(s)})})}}const Oc=Symbol(),vi="el",ex="is-",xr=(t,e,r,n,i)=>{let o=`${t}-${e}`;return r&&(o+=`-${r}`),n&&(o+=`__${n}`),i&&(o+=`--${i}`),o},Pc=Symbol("namespaceContextKey"),tx=t=>{const e=t||(I.getCurrentInstance()?I.inject(Pc,I.ref(vi)):I.ref(vi));return I.computed(()=>I.unref(e)||vi)},p0=(t,e)=>{const r=tx(e);return{namespace:r,b:(E="")=>xr(r.value,t,E,"",""),e:E=>E?xr(r.value,t,"",E,""):"",m:E=>E?xr(r.value,t,"","",E):"",be:(E,A)=>E&&A?xr(r.value,t,E,A,""):"",em:(E,A)=>E&&A?xr(r.value,t,"",E,A):"",bm:(E,A)=>E&&A?xr(r.value,t,E,"",A):"",bem:(E,A,R)=>E&&A&&R?xr(r.value,t,E,A,R):"",is:(E,...A)=>{const R=A.length>=1?A[0]:!0;return E&&R?`${ex}${E}`:""},cssVar:E=>{const A={};for(const R in E)E[R]&&(A[`--${r.value}-${R}`]=E[R]);return A},cssVarName:E=>`--${r.value}-${E}`,cssVarBlock:E=>{const A={};for(const R in E)E[R]&&(A[`--${r.value}-${t}-${R}`]=E[R]);return A},cssVarBlockName:E=>`--${r.value}-${t}-${E}`}};/**
|
|
37
37
|
* @vue/shared v3.5.33
|
|
38
38
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
39
39
|
* @license MIT
|
|
40
|
-
**/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const rx=Object.prototype.hasOwnProperty,x0=(t,e)=>rx.call(t,e),nx=Array.isArray,
|
|
41
|
-
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:n,currentZIndex:i,nextZIndex:o}};var _x={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const bx=t=>(e,r)=>Cx(e,r,I.unref(t)),Cx=(t,e,r)=>ze.get(r,t,t).replace(/\{(\w+)\}/g,(n,i)=>{var o;return`${(o=e==null?void 0:e[i])!=null?o:`{${i}}`}`}),Bx=t=>{const e=I.computed(()=>I.unref(t).name),r=I.isRef(t)?t:I.ref(t);return{lang:e,locale:r,t:bx(t)}},Jc=Symbol("localeContextKey"),Dx=t=>{const e=t||I.inject(Jc,I.ref());return Bx(I.computed(()=>e.value||_x))},Qc="__epPropKey",mt=t=>t,Sx=t=>Lc(t)&&!!t[Qc],Zc=(t,e)=>{if(!Lc(t)||Sx(t))return t;const{values:r,required:n,default:i,type:o,validator:s}=t,h={type:o,required:!!n,validator:r||s?c=>{let f=!1,x=[];if(r&&(x=Array.from(r),x0(t,"default")&&x.push(i),f||(f=x.includes(c))),s&&(f||(f=s(c))),!f&&x.length>0){const l=[...new Set(x)].map(m=>JSON.stringify(m)).join(", ");I.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${l}], got value ${JSON.stringify(c)}.`)}return f}:void 0,[Qc]:!0};return x0(t,"default")&&(h.default=i),h},gn=t=>ze.fromPairs(Object.entries(t).map(([e,r])=>[e,Zc(r,e)])),Fx=Zc({type:String,values:["","default","small","large"],required:!1}),Rx=Symbol("size"),Ix=Symbol("emptyValuesContextKey"),Tx=gn({emptyValues:Array,valueOnClear:{type:mt([String,Number,Boolean,Function]),default:void 0,validator:t=>(t=gi(t)?t():t,nx(t)?t.every(e=>!e):!t)}}),ef=t=>Object.keys(t),Ei=I.ref();function tf(t,e=void 0){return I.getCurrentInstance()?I.inject(Pc,Ei):Ei}function Ox(t,e){const r=tf(),n=p0(t,I.computed(()=>{var a;return((a=r.value)==null?void 0:a.namespace)||mi})),i=Dx(I.computed(()=>{var a;return(a=r.value)==null?void 0:a.locale})),o=wx(I.computed(()=>{var a;return((a=r.value)==null?void 0:a.zIndex)||Kc})),s=I.computed(()=>{var a;return I.unref(e)||((a=r.value)==null?void 0:a.size)||""});return rf(I.computed(()=>I.unref(r)||{})),{ns:n,locale:i,zIndex:o,size:s}}const rf=(t,e,r=!1)=>{var n;const i=!!I.getCurrentInstance(),o=i?tf():void 0,s=(n=void 0)!=null?n:i?I.provide:void 0;if(!s){mn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const a=I.computed(()=>{const h=I.unref(t);return o!=null&&o.value?Px(o.value,h):h});return s(Pc,a),s(Jc,I.computed(()=>a.value.locale)),s(Nc,I.computed(()=>a.value.namespace)),s(Xc,I.computed(()=>a.value.zIndex)),s(Rx,{size:I.computed(()=>a.value.size||"")}),s(Ix,I.computed(()=>({emptyValues:a.value.emptyValues,valueOnClear:a.value.valueOnClear}))),(r||!Ei.value)&&(Ei.value=a.value),a},Px=(t,e)=>{const r=[...new Set([...ef(t),...ef(e)])],n={};for(const i of r)n[i]=e[i]!==void 0?e[i]:t[i];return n};var g0=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r};const Nx="utils/dom/style";function E0(t,e="px"){if(!t&&t!==0)return"";if(yr(t)||ox(t))return`${t}${e}`;if(Mr(t))return t;mn(Nx,"binding value must be a string or number")}const nf=(t,e)=>(t.install=r=>{for(const n of[t,...Object.values({})])r.component(n.name,n)},t),Lx=(t,e)=>(t.install=r=>{t._context=r._context,r.config.globalProperties[e]=t},t),kx=gn({size:{type:mt([Number,String])},color:{type:String}}),Mx=I.defineComponent({name:"ElIcon",inheritAttrs:!1}),Ux=I.defineComponent(Wt(We({},Mx),{props:kx,setup(t){const e=t,r=p0("icon"),n=I.computed(()=>{const{size:i,color:o}=e,s=E0(i);return!s&&!o?{}:{fontSize:s,"--color":o}});return(i,o)=>(I.openBlock(),I.createElementBlock("i",I.mergeProps({class:I.unref(r).b(),style:I.unref(n)},i.$attrs),[I.renderSlot(i.$slots,"default")],16))}}));var $x=g0(Ux,[["__file","icon.vue"]]);const of=nf($x);/*! Element Plus Icons Vue v2.3.2 */var Hx=I.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,r)=>(I.openBlock(),I.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[I.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),zx=Hx,qx=I.defineComponent({name:"Close",__name:"close",setup(t){return(e,r)=>(I.openBlock(),I.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[I.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Wx=qx,Vx=I.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,r)=>(I.openBlock(),I.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[I.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),af=Vx,Gx=I.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,r)=>(I.openBlock(),I.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[I.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),jx=Gx,Kx=I.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,r)=>(I.openBlock(),I.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[I.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Yx=Kx;const Xx=mt([String,Object,Function]),Jx={Close:Wx},sf={primary:af,success:jx,warning:Yx,error:zx,info:af},Qx=()=>vr&&/android/i.test(window.navigator.userAgent),Zx=t=>t,A0={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ey=t=>{if(t.code&&t.code!=="Unidentified")return t.code;const e=ty(t);if(e){if(Object.values(A0).includes(e))return e;switch(e){case" ":return A0.space;default:return""}}return""},ty=t=>{let e=t.key&&t.key!=="Unidentified"?t.key:"";if(!e&&t.type==="keyup"&&Qx()){const r=t.target;e=r.value.charAt(r.selectionStart-1)}return e},ry=gn({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:mt([String,Object,Array])},offset:{type:mt(Array),default:[0,0]},badgeClass:{type:String}}),ny=I.defineComponent({name:"ElBadge"}),iy=I.defineComponent(Wt(We({},ny),{props:ry,setup(t,{expose:e}){const r=t,n=p0("badge"),i=I.computed(()=>r.isDot?"":yr(r.value)&&yr(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`),o=I.computed(()=>{var s;return[{backgroundColor:r.color,marginRight:E0(-r.offset[0]),marginTop:E0(r.offset[1])},(s=r.badgeStyle)!=null?s:{}]});return e({content:i}),(s,a)=>(I.openBlock(),I.createElementBlock("div",{class:I.normalizeClass(I.unref(n).b())},[I.renderSlot(s.$slots,"default"),I.createVNode(I.Transition,{name:`${I.unref(n).namespace.value}-zoom-in-center`,persisted:""},{default:I.withCtx(()=>[I.withDirectives(I.createElementVNode("sup",{class:I.normalizeClass([I.unref(n).e("content"),I.unref(n).em("content",s.type),I.unref(n).is("fixed",!!s.$slots.default),I.unref(n).is("dot",s.isDot),I.unref(n).is("hide-zero",!s.showZero&&s.value===0),s.badgeClass]),style:I.normalizeStyle(I.unref(o))},[I.renderSlot(s.$slots,"content",{value:I.unref(i)},()=>[I.createTextVNode(I.toDisplayString(I.unref(i)),1)])],6),[[I.vShow,!s.hidden&&(I.unref(i)||s.isDot||s.$slots.content)]])]),_:3},8,["name"])],2))}}));var oy=g0(iy,[["__file","badge.vue"]]);const ay=nf(oy),sy=gn(We({a11y:{type:Boolean,default:!0},locale:{type:mt(Object)},size:Fx,button:{type:mt(Object)},card:{type:mt(Object)},dialog:{type:mt(Object)},link:{type:mt(Object)},experimentalFeatures:{type:mt(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:mt(Object)},zIndex:Number,namespace:{type:String,default:"el"}},Tx)),lt={placement:"top"};I.defineComponent({name:"ElConfigProvider",props:sy,setup(t,{slots:e}){const r=rf(t);return I.watch(()=>t.message,n=>{var i,o;Object.assign(lt,(o=(i=r==null?void 0:r.value)==null?void 0:i.message)!=null?o:{},n!=null?n:{})},{immediate:!0,deep:!0}),()=>I.renderSlot(e,"default",{config:r==null?void 0:r.value})}});const cf=["primary","success","info","warning","error"],ff=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Ur="top",ht=Zx({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:vr?document.body:void 0}),cy=gn({customClass:{type:String,default:ht.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ht.dangerouslyUseHTMLString},duration:{type:Number,default:ht.duration},icon:{type:Xx,default:ht.icon},id:{type:String,default:ht.id},message:{type:mt([String,Object,Function]),default:ht.message},onClose:{type:mt(Function),default:ht.onClose},showClose:{type:Boolean,default:ht.showClose},type:{type:String,values:cf,default:ht.type},plain:{type:Boolean,default:ht.plain},offset:{type:Number,default:ht.offset},placement:{type:String,values:ff,default:ht.placement},zIndex:{type:Number,default:ht.zIndex},grouping:{type:Boolean,default:ht.grouping},repeatNum:{type:Number,default:ht.repeatNum}}),fy={destroy:()=>!0},Dt=I.shallowReactive({}),uy=t=>(Dt[t]||(Dt[t]=I.shallowReactive([])),Dt[t]),ly=(t,e)=>{const r=Dt[e]||[],n=r.findIndex(s=>s.id===t),i=r[n];let o;return n>0&&(o=r[n-1]),{current:i,prev:o}},hy=(t,e)=>{const{prev:r}=ly(t,e);return r?r.vm.exposed.bottom.value:0},dy=(t,e,r)=>(Dt[r]||[]).findIndex(o=>o.id===t)>0?16:e,py=I.defineComponent({name:"ElMessage"}),xy=I.defineComponent(Wt(We({},py),{props:cy,emits:fy,setup(t,{expose:e,emit:r}){const n=t,{Close:i}=Jx,o=I.ref(!1),{ns:s,zIndex:a}=Ox("message"),{currentZIndex:h,nextZIndex:c}=a,f=I.ref(),x=I.ref(!1),l=I.ref(0);let m;const v=I.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),E=I.computed(()=>{const V=n.type;return{[s.bm("icon",V)]:V&&sf[V]}}),A=I.computed(()=>n.icon||sf[n.type]||""),R=I.computed(()=>n.placement||Ur),w=I.computed(()=>hy(n.id,R.value)),_=I.computed(()=>dy(n.id,n.offset,R.value)+w.value),D=I.computed(()=>l.value+_.value),C=I.computed(()=>R.value.includes("left")?s.is("left"):R.value.includes("right")?s.is("right"):s.is("center")),O=I.computed(()=>R.value.startsWith("top")?"top":"bottom"),L=I.computed(()=>({[O.value]:`${_.value}px`,zIndex:h.value}));function H(){n.duration!==0&&({stop:m}=ux(()=>{P()},n.duration))}function Z(){m==null||m()}function P(){x.value=!1,I.nextTick(()=>{var V;o.value||((V=n.onClose)==null||V.call(n),r("destroy"))})}function k(V){ey(V)===A0.esc&&P()}return I.onMounted(()=>{H(),c(),x.value=!0}),I.watch(()=>n.repeatNum,()=>{Z(),H()}),lx(document,"keydown",k),yx(f,()=>{l.value=f.value.getBoundingClientRect().height}),e({visible:x,bottom:D,close:P}),(V,X)=>(I.openBlock(),I.createBlock(I.Transition,{name:I.unref(s).b("fade"),onBeforeEnter:te=>o.value=!0,onBeforeLeave:V.onClose,onAfterLeave:te=>V.$emit("destroy"),persisted:""},{default:I.withCtx(()=>[I.withDirectives(I.createElementVNode("div",{id:V.id,ref_key:"messageRef",ref:f,class:I.normalizeClass([I.unref(s).b(),{[I.unref(s).m(V.type)]:V.type},I.unref(s).is("closable",V.showClose),I.unref(s).is("plain",V.plain),I.unref(s).is("bottom",I.unref(O)==="bottom"),I.unref(C),V.customClass]),style:I.normalizeStyle(I.unref(L)),role:"alert",onMouseenter:Z,onMouseleave:H},[V.repeatNum>1?(I.openBlock(),I.createBlock(I.unref(ay),{key:0,value:V.repeatNum,type:I.unref(v),class:I.normalizeClass(I.unref(s).e("badge"))},null,8,["value","type","class"])):I.createCommentVNode("v-if",!0),I.unref(A)?(I.openBlock(),I.createBlock(I.unref(of),{key:1,class:I.normalizeClass([I.unref(s).e("icon"),I.unref(E)])},{default:I.withCtx(()=>[(I.openBlock(),I.createBlock(I.resolveDynamicComponent(I.unref(A))))]),_:1},8,["class"])):I.createCommentVNode("v-if",!0),I.renderSlot(V.$slots,"default",{},()=>[V.dangerouslyUseHTMLString?(I.openBlock(),I.createElementBlock(I.Fragment,{key:1},[I.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),I.createElementVNode("p",{class:I.normalizeClass(I.unref(s).e("content")),innerHTML:V.message},null,10,["innerHTML"])],2112)):(I.openBlock(),I.createElementBlock("p",{key:0,class:I.normalizeClass(I.unref(s).e("content"))},I.toDisplayString(V.message),3))]),V.showClose?(I.openBlock(),I.createBlock(I.unref(of),{key:2,class:I.normalizeClass(I.unref(s).e("closeBtn")),onClick:I.withModifiers(P,["stop"])},{default:I.withCtx(()=>[I.createVNode(I.unref(i))]),_:1},8,["class","onClick"])):I.createCommentVNode("v-if",!0)],46,["id"]),[[I.vShow,x.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}}));var yy=g0(xy,[["__file","message.vue"]]);let vy=1;const my=t=>{if(!t.appendTo)t.appendTo=document.body;else if(Mr(t.appendTo)){let r=document.querySelector(t.appendTo);ix(r)||(mn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),r=document.body),t.appendTo=r}},gy=t=>{!t.placement&&Mr(lt.placement)&<.placement&&(t.placement=lt.placement),t.placement||(t.placement=Ur),ff.includes(t.placement)||(mn("ElMessage",`Invalid placement: ${t.placement}. Falling back to '${Ur}'.`),t.placement=Ur)},uf=t=>{const e=!t||Mr(t)||I.isVNode(t)||gi(t)?{message:t}:t,r=We(We({},ht),e);return my(r),gy(r),y0(lt.grouping)&&!r.grouping&&(r.grouping=lt.grouping),yr(lt.duration)&&r.duration===3e3&&(r.duration=lt.duration),yr(lt.offset)&&r.offset===16&&(r.offset=lt.offset),y0(lt.showClose)&&!r.showClose&&(r.showClose=lt.showClose),y0(lt.plain)&&!r.plain&&(r.plain=lt.plain),r},Ey=t=>{const e=t.props.placement||Ur,r=Dt[e],n=r.indexOf(t);if(n===-1)return;r.splice(n,1);const{handler:i}=t;i.close()},Ay=(n,r)=>{var i=n,{appendTo:t}=i,e=Kf(i,["appendTo"]);const o=`message_${vy++}`,s=e.onClose,a=document.createElement("div"),h=Wt(We({},e),{id:o,onClose:()=>{s==null||s(),Ey(l)},onDestroy:()=>{I.render(null,a)}}),c=I.createVNode(yy,h,gi(h.message)||I.isVNode(h.message)?{default:gi(h.message)?h.message:()=>h.message}:null);c.appContext=r||mr._context,I.render(c,a),t.appendChild(a.firstElementChild);const f=c.component,l={id:o,vnode:c,vm:f,handler:{close:()=>{f.exposed.close()}},props:c.component.props};return l},mr=(t={},e)=>{if(!vr)return{close:()=>{}};const r=uf(t),n=uy(r.placement||Ur);if(r.grouping&&n.length){const o=n.find(({vnode:s})=>{var a;return((a=s.props)==null?void 0:a.message)===r.message});if(o)return o.props.repeatNum+=1,o.props.type=r.type,o.handler}if(yr(lt.max)&&n.length>=lt.max)return{close:()=>{}};const i=Ay(r,e);return n.push(i),i.handler};cf.forEach(t=>{mr[t]=(e={},r)=>{const n=uf(e);return mr(Wt(We({},n),{type:t}),r)}});function wy(t){for(const e in Dt)if(x0(Dt,e)){const r=[...Dt[e]];for(const n of r)(!t||t===n.props.type)&&n.handler.close()}}function _y(t){if(!Dt[t])return;[...Dt[t]].forEach(r=>r.handler.close())}mr.closeAll=wy,mr.closeAllByPlacement=_y,mr._context=null;const er=Lx(mr,"$message"),lf="0123456789abcdeffedcba9876543210",hf="4b0de988570c3a0f";let $r=window.ENCRYPT&&new Oc;function df(t=16,e="0123456789abcdefghijklmnopqrstuvwxyz"){let r="",n=e.length;for(;t>0;)r+=e[Math.floor(Math.random()*n)],t--;return r}function pf(){return De(this,null,function*(){return $r||($r=new Oc),new Promise((t,e)=>{$r.armEnum().then(r=>{t(+r)}).catch(r=>{er({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e(r)})})})}ze.throttle(()=>De(this,null,function*(){const t=yield pf(),e={};if(typeof t!="number"||t<=0)er({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken();else{const r=yield Cy();if(!e.token)return;r.length?r.includes(e.ukeyHid)||(er({type:"error",ElMessage:"U盘锁不匹配,请检查U盘锁!"}),e.resetToken()):(er({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken())}}),5e3,{trailing:!1});function by(t=0){return De(this,null,function*(){return $r?new Promise((e,r)=>{$r.armGetDongleInfo(t).then(n=>{n?e(n):(er({type:"warning",ElMessage:"U盘锁信息为空,请检查U盘锁!"}),r(n))}).catch(n=>{r(n)})}):er({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"})})}function Cy(){return De(this,null,function*(){if(!$r)return er({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"});const t=yield pf();let e=[];for(let r=0;r<t;r++){const n=yield by(r);e.push(n)}return e})}df(16),df(16);const xf=window.meta.app.inspect?kr.constants.CBC:kr.constants.ECB;K1.generateKeyPair();function yf(t,e,r={}){const n=mf(hf),i=r.mode||xf;r=i===kr.constants.ECB?We({mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r):We({iv:lf,mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r);let o="";try{o=kr.encrypt(t,n,r)}catch(s){console.log("err: ",s)}return o}function vf(t,e,r={}){const n=mf(hf),i=r.mode||xf;return r=i===kr.constants.ECB?We({mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r):We({iv:lf,mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r),kr.decrypt(t,n,r)}function mf(t){return[...t].map(e=>e.charCodeAt().toString(16)).join("")}const w0={getLocal:t=>{try{let e=window.localStorage.getItem(t);return e=e!==null?vf(e):e,JSON.parse(e)}catch(e){console.error(e)}},setLocal:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?yf(r):r,window.localStorage.setItem(t,r)}catch(r){console.error(r)}},eachLocal:t=>{if(!t||ks(t)!=="Function")return console.error("传递参数非函数类型!");for(let e=0,r=window.localStorage.length;e<r;e++){const n=window.localStorage.key(e);t((void 0).getLocal(n),n)}},clearLocal:()=>{window.localStorage.clear()},removeLocal:t=>{window.localStorage.removeItem(t)},getSession:t=>{try{let e=window.sessionStorage.getItem(t);return e=e!==null?vf(e):e,JSON.parse(e)}catch(e){console.error(e)}},setSession:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?yf(r):r,window.sessionStorage.setItem(t,r)}catch(r){console.error(r)}},eachSession:t=>{if(!t||ks(t)!=="Function")return console.error("传递参数非函数类型!");for(let e=0,r=window.sessionStorage.length;e<r;e++){const n=window.sessionStorage.key(e);t((void 0).getSession(n),n)}},clearSession:()=>{window.sessionStorage.clear()},removeSession:t=>{window.sessionStorage.removeItem(t)}},By="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1778134039448'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1155'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20512m-500.62222187%200a500.62222187%20500.62222187%200%201%200%201001.24444374%200%20500.62222187%20500.62222187%200%201%200-1001.24444374%200Z'%20fill='%231afa29'%20p-id='1156'%3e%3c/path%3e%3c/svg%3e",gf="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1778135587292'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1657'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20512m-500.62222187%200a500.62222187%20500.62222187%200%201%200%201001.24444374%200%20500.62222187%20500.62222187%200%201%200-1001.24444374%200Z'%20fill='%23808080'%20p-id='1658'%3e%3c/path%3e%3c/svg%3e",Dy="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1778133589331'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='25776'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M377.083%20125.44c74.606-135.314%20195.292-135.314%20269.897%200l346.332%20629.394c74.606%20135.315%209.508%20245.395-145.189%20245.395H175.94c-154.697%200-219.428-109.715-145.188-245.395L377.083%20125.44z'%20fill='%23FF2D16'%20p-id='25777'%3e%3c/path%3e%3cpath%20d='M567.986%20328.046c0-31.086-25.234-55.955-55.954-55.955s-55.954%2025.235-55.954%2055.955v280.137c0%2031.086%2025.234%2055.954%2055.954%2055.954s55.954-25.234%2055.954-55.954V328.046z%20m-111.908%20448h111.908v111.908H456.078z'%20fill='%23FFFFFF'%20p-id='25778'%3e%3c/path%3e%3c/svg%3e";class Sy extends Re.Object3D{constructor(e=document.createElement("div")){super(),this.isCSS2DObject=!0,this.element=e,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.center=new Re.Vector2(.5,.5),this.addEventListener("removed",function(){this.traverse(function(r){r.element instanceof r.element.ownerDocument.defaultView.Element&&r.element.parentNode!==null&&r.element.remove()})})}copy(e,r){return super.copy(e,r),this.element=e.element.cloneNode(!0),this.center=e.center,this}}new Re.Vector3,new Re.Matrix4,new Re.Matrix4,new Re.Vector3,new Re.Vector3;const Fy={name:"局放测点",label:"局放测点",create:function(t,e){return De(this,null,function*(){const{transformControls:r}=e,n=document.createElement("div");n.style.position="relative",n.style.gap="20px";const i=document.createElement("img");i.style.objectFit="fill",i.style.width="1.3vw",i.style.height="1.3vw",i.src=gf,i.style.cursor="pointer",i.style.pointerEvents="auto",i.style.userSelect="none",n.append(i);const o=document.createElement("div");Object.assign(o.style,{position:"absolute",top:"0",left:"1.8vw",display:"none",flexDirection:"column",gap:"10px",padding:"10px",borderRadius:"4px",minWidth:"12vw",border:"1px solid color-mix(in srgb, var(--sc-color-white) 20%, transparent)",backdropFilter:"blur(12px)",background:"color-mix(in srgb, var(--sc-color-black) 20%, transparent)"}),t.valueEleId||(t.valueEleId=Co()),o.innerHTML=`
|
|
40
|
+
**/process.env.NODE_ENV!=="production"&&Object.freeze({}),process.env.NODE_ENV!=="production"&&Object.freeze([]);const rx=Object.prototype.hasOwnProperty,x0=(t,e)=>rx.call(t,e),nx=Array.isArray,mi=t=>typeof t=="function",Mr=t=>typeof t=="string",Nc=t=>t!==null&&typeof t=="object",y0=t=>typeof t=="boolean",yr=t=>typeof t=="number",ix=t=>typeof Element=="undefined"?!1:t instanceof Element,ox=t=>Mr(t)?!Number.isNaN(Number(t)):!1;var Lc;const vr=typeof window!="undefined",ax=t=>typeof t=="string",sx=()=>{};vr&&((Lc=window==null?void 0:window.navigator)!=null&&Lc.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function v0(t){return typeof t=="function"?t():I.unref(t)}function cx(t){return t}function m0(t){return I.getCurrentScope()?(I.onScopeDispose(t),!0):!1}function fx(t,e=!0){I.getCurrentInstance()?I.onMounted(t):e?t():I.nextTick(t)}function ux(t,e,r={}){const{immediate:n=!0}=r,i=I.ref(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function a(){i.value=!1,s()}function u(...c){s(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,t(...c)},v0(e))}return n&&(i.value=!0,vr&&u()),m0(a),{isPending:I.readonly(i),start:u,stop:a}}function kc(t){var e;const r=v0(t);return(e=r==null?void 0:r.$el)!=null?e:r}const Mc=vr?window:void 0;function lx(...t){let e,r,n,i;if(ax(t[0])||Array.isArray(t[0])?([r,n,i]=t,e=Mc):[e,r,n,i]=t,!e)return sx;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(f=>f()),o.length=0},a=(f,x,h,v)=>(f.addEventListener(x,h,v),()=>f.removeEventListener(x,h,v)),u=I.watch(()=>[kc(e),v0(i)],([f,x])=>{s(),f&&o.push(...r.flatMap(h=>n.map(v=>a(f,h,v,x))))},{immediate:!0,flush:"post"}),c=()=>{u(),s()};return m0(c),c}function hx(t,e=!1){const r=I.ref(),n=()=>r.value=!!t();return n(),fx(n,e),r}const Uc=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},$c="__vueuse_ssr_handlers__";Uc[$c]=Uc[$c]||{};var Hc=Object.getOwnPropertySymbols,dx=Object.prototype.hasOwnProperty,px=Object.prototype.propertyIsEnumerable,xx=(t,e)=>{var r={};for(var n in t)dx.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&Hc)for(var n of Hc(t))e.indexOf(n)<0&&px.call(t,n)&&(r[n]=t[n]);return r};function yx(t,e,r={}){const n=r,{window:i=Mc}=n,o=xx(n,["window"]);let s;const a=hx(()=>i&&"ResizeObserver"in i),u=()=>{s&&(s.disconnect(),s=void 0)},c=I.watch(()=>kc(t),x=>{u(),a.value&&i&&x&&(s=new ResizeObserver(e),s.observe(x,o))},{immediate:!0,flush:"post"}),f=()=>{u(),c()};return m0(f),{isSupported:a,stop:f}}var zc;(function(t){t.UP="UP",t.RIGHT="RIGHT",t.DOWN="DOWN",t.LEFT="LEFT",t.NONE="NONE"})(zc||(zc={}));var vx=Object.defineProperty,qc=Object.getOwnPropertySymbols,mx=Object.prototype.hasOwnProperty,gx=Object.prototype.propertyIsEnumerable,Wc=(t,e,r)=>e in t?vx(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,Ex=(t,e)=>{for(var r in e||(e={}))mx.call(e,r)&&Wc(t,r,e[r]);if(qc)for(var r of qc(e))gx.call(e,r)&&Wc(t,r,e[r]);return t};Ex({linear:cx},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});class Ax extends Error{constructor(e){super(e),this.name="ElementPlusError"}}function mn(t,e){if(typeof process!="undefined"&&process.env.NODE_ENV!=="production"){const r=Mr(t)?new Ax(`[${t}] ${e}`):t;console.warn(r)}}const Vc={current:0},Gc=I.ref(0),jc=2e3,Kc=Symbol("elZIndexContextKey"),Yc=Symbol("zIndexContextKey"),wx=t=>{const e=I.getCurrentInstance()?I.inject(Kc,Vc):Vc,r=t||(I.getCurrentInstance()?I.inject(Yc,void 0):void 0),n=I.computed(()=>{const s=I.unref(r);return yr(s)?s:jc}),i=I.computed(()=>n.value+Gc.value),o=()=>(e.current++,Gc.value=e.current,i.value);return!vr&&!I.inject(Kc)&&mn("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
|
|
41
|
+
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:n,currentZIndex:i,nextZIndex:o}};var _x={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color.",alphaLabel:"pick alpha value",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",predefineDescription:"select {value} as the color"},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},mention:{loading:"Loading"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum",selectAllLabel:"Select all rows",selectRowLabel:"Select this row",expandRowLabel:"Expand this row",collapseRowLabel:"Collapse this row",sortLabel:"Sort by {column}",filterLabel:"Filter by {column}"},tag:{close:"Close this tag"},tour:{next:"Next",previous:"Previous",finish:"Finish",close:"Close this dialog"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const bx=t=>(e,r)=>Cx(e,r,I.unref(t)),Cx=(t,e,r)=>ze.get(r,t,t).replace(/\{(\w+)\}/g,(n,i)=>{var o;return`${(o=e==null?void 0:e[i])!=null?o:`{${i}}`}`}),Bx=t=>{const e=I.computed(()=>I.unref(t).name),r=I.isRef(t)?t:I.ref(t);return{lang:e,locale:r,t:bx(t)}},Xc=Symbol("localeContextKey"),Dx=t=>{const e=t||I.inject(Xc,I.ref());return Bx(I.computed(()=>e.value||_x))},Jc="__epPropKey",vt=t=>t,Sx=t=>Nc(t)&&!!t[Jc],Qc=(t,e)=>{if(!Nc(t)||Sx(t))return t;const{values:r,required:n,default:i,type:o,validator:s}=t,u={type:o,required:!!n,validator:r||s?c=>{let f=!1,x=[];if(r&&(x=Array.from(r),x0(t,"default")&&x.push(i),f||(f=x.includes(c))),s&&(f||(f=s(c))),!f&&x.length>0){const h=[...new Set(x)].map(v=>JSON.stringify(v)).join(", ");I.warn(`Invalid prop: validation failed${e?` for prop "${e}"`:""}. Expected one of [${h}], got value ${JSON.stringify(c)}.`)}return f}:void 0,[Jc]:!0};return x0(t,"default")&&(u.default=i),u},gn=t=>ze.fromPairs(Object.entries(t).map(([e,r])=>[e,Qc(r,e)])),Fx=Qc({type:String,values:["","default","small","large"],required:!1}),Rx=Symbol("size"),Ix=Symbol("emptyValuesContextKey"),Tx=gn({emptyValues:Array,valueOnClear:{type:vt([String,Number,Boolean,Function]),default:void 0,validator:t=>(t=mi(t)?t():t,nx(t)?t.every(e=>!e):!t)}}),Zc=t=>Object.keys(t),gi=I.ref();function ef(t,e=void 0){return I.getCurrentInstance()?I.inject(Oc,gi):gi}function Ox(t,e){const r=ef(),n=p0(t,I.computed(()=>{var a;return((a=r.value)==null?void 0:a.namespace)||vi})),i=Dx(I.computed(()=>{var a;return(a=r.value)==null?void 0:a.locale})),o=wx(I.computed(()=>{var a;return((a=r.value)==null?void 0:a.zIndex)||jc})),s=I.computed(()=>{var a;return I.unref(e)||((a=r.value)==null?void 0:a.size)||""});return tf(I.computed(()=>I.unref(r)||{})),{ns:n,locale:i,zIndex:o,size:s}}const tf=(t,e,r=!1)=>{var n;const i=!!I.getCurrentInstance(),o=i?ef():void 0,s=(n=void 0)!=null?n:i?I.provide:void 0;if(!s){mn("provideGlobalConfig","provideGlobalConfig() can only be used inside setup().");return}const a=I.computed(()=>{const u=I.unref(t);return o!=null&&o.value?Px(o.value,u):u});return s(Oc,a),s(Xc,I.computed(()=>a.value.locale)),s(Pc,I.computed(()=>a.value.namespace)),s(Yc,I.computed(()=>a.value.zIndex)),s(Rx,{size:I.computed(()=>a.value.size||"")}),s(Ix,I.computed(()=>({emptyValues:a.value.emptyValues,valueOnClear:a.value.valueOnClear}))),(r||!gi.value)&&(gi.value=a.value),a},Px=(t,e)=>{const r=[...new Set([...Zc(t),...Zc(e)])],n={};for(const i of r)n[i]=e[i]!==void 0?e[i]:t[i];return n};var g0=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r};const Nx="utils/dom/style";function E0(t,e="px"){if(!t&&t!==0)return"";if(yr(t)||ox(t))return`${t}${e}`;if(Mr(t))return t;mn(Nx,"binding value must be a string or number")}const rf=(t,e)=>(t.install=r=>{for(const n of[t,...Object.values({})])r.component(n.name,n)},t),Lx=(t,e)=>(t.install=r=>{t._context=r._context,r.config.globalProperties[e]=t},t),kx=gn({size:{type:vt([Number,String])},color:{type:String}}),Mx=I.defineComponent({name:"ElIcon",inheritAttrs:!1}),Ux=I.defineComponent(Vt(We({},Mx),{props:kx,setup(t){const e=t,r=p0("icon"),n=I.computed(()=>{const{size:i,color:o}=e,s=E0(i);return!s&&!o?{}:{fontSize:s,"--color":o}});return(i,o)=>(I.openBlock(),I.createElementBlock("i",I.mergeProps({class:I.unref(r).b(),style:I.unref(n)},i.$attrs),[I.renderSlot(i.$slots,"default")],16))}}));var $x=g0(Ux,[["__file","icon.vue"]]);const nf=rf($x);/*! Element Plus Icons Vue v2.3.2 */var Hx=I.defineComponent({name:"CircleCloseFilled",__name:"circle-close-filled",setup(t){return(e,r)=>(I.openBlock(),I.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[I.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),zx=Hx,qx=I.defineComponent({name:"Close",__name:"close",setup(t){return(e,r)=>(I.openBlock(),I.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[I.createElementVNode("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),Wx=qx,Vx=I.defineComponent({name:"InfoFilled",__name:"info-filled",setup(t){return(e,r)=>(I.openBlock(),I.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[I.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),of=Vx,Gx=I.defineComponent({name:"SuccessFilled",__name:"success-filled",setup(t){return(e,r)=>(I.openBlock(),I.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[I.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),jx=Gx,Kx=I.defineComponent({name:"WarningFilled",__name:"warning-filled",setup(t){return(e,r)=>(I.openBlock(),I.createElementBlock("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[I.createElementVNode("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),Yx=Kx;const Xx=vt([String,Object,Function]),Jx={Close:Wx},af={primary:of,success:jx,warning:Yx,error:zx,info:of},Qx=()=>vr&&/android/i.test(window.navigator.userAgent),Zx=t=>t,A0={tab:"Tab",enter:"Enter",space:"Space",left:"ArrowLeft",up:"ArrowUp",right:"ArrowRight",down:"ArrowDown",esc:"Escape",delete:"Delete",backspace:"Backspace",numpadEnter:"NumpadEnter",pageUp:"PageUp",pageDown:"PageDown",home:"Home",end:"End"},ey=t=>{if(t.code&&t.code!=="Unidentified")return t.code;const e=ty(t);if(e){if(Object.values(A0).includes(e))return e;switch(e){case" ":return A0.space;default:return""}}return""},ty=t=>{let e=t.key&&t.key!=="Unidentified"?t.key:"";if(!e&&t.type==="keyup"&&Qx()){const r=t.target;e=r.value.charAt(r.selectionStart-1)}return e},ry=gn({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:!0},color:String,badgeStyle:{type:vt([String,Object,Array])},offset:{type:vt(Array),default:[0,0]},badgeClass:{type:String}}),ny=I.defineComponent({name:"ElBadge"}),iy=I.defineComponent(Vt(We({},ny),{props:ry,setup(t,{expose:e}){const r=t,n=p0("badge"),i=I.computed(()=>r.isDot?"":yr(r.value)&&yr(r.max)?r.max<r.value?`${r.max}+`:`${r.value}`:`${r.value}`),o=I.computed(()=>{var s;return[{backgroundColor:r.color,marginRight:E0(-r.offset[0]),marginTop:E0(r.offset[1])},(s=r.badgeStyle)!=null?s:{}]});return e({content:i}),(s,a)=>(I.openBlock(),I.createElementBlock("div",{class:I.normalizeClass(I.unref(n).b())},[I.renderSlot(s.$slots,"default"),I.createVNode(I.Transition,{name:`${I.unref(n).namespace.value}-zoom-in-center`,persisted:""},{default:I.withCtx(()=>[I.withDirectives(I.createElementVNode("sup",{class:I.normalizeClass([I.unref(n).e("content"),I.unref(n).em("content",s.type),I.unref(n).is("fixed",!!s.$slots.default),I.unref(n).is("dot",s.isDot),I.unref(n).is("hide-zero",!s.showZero&&s.value===0),s.badgeClass]),style:I.normalizeStyle(I.unref(o))},[I.renderSlot(s.$slots,"content",{value:I.unref(i)},()=>[I.createTextVNode(I.toDisplayString(I.unref(i)),1)])],6),[[I.vShow,!s.hidden&&(I.unref(i)||s.isDot||s.$slots.content)]])]),_:3},8,["name"])],2))}}));var oy=g0(iy,[["__file","badge.vue"]]);const ay=rf(oy),sy=gn(We({a11y:{type:Boolean,default:!0},locale:{type:vt(Object)},size:Fx,button:{type:vt(Object)},card:{type:vt(Object)},dialog:{type:vt(Object)},link:{type:vt(Object)},experimentalFeatures:{type:vt(Object)},keyboardNavigation:{type:Boolean,default:!0},message:{type:vt(Object)},zIndex:Number,namespace:{type:String,default:"el"}},Tx)),lt={placement:"top"};I.defineComponent({name:"ElConfigProvider",props:sy,setup(t,{slots:e}){const r=tf(t);return I.watch(()=>t.message,n=>{var i,o;Object.assign(lt,(o=(i=r==null?void 0:r.value)==null?void 0:i.message)!=null?o:{},n!=null?n:{})},{immediate:!0,deep:!0}),()=>I.renderSlot(e,"default",{config:r==null?void 0:r.value})}});const sf=["primary","success","info","warning","error"],cf=["top","top-left","top-right","bottom","bottom-left","bottom-right"],Ur="top",ht=Zx({customClass:"",dangerouslyUseHTMLString:!1,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:!1,type:"info",plain:!1,offset:16,placement:void 0,zIndex:0,grouping:!1,repeatNum:1,appendTo:vr?document.body:void 0}),cy=gn({customClass:{type:String,default:ht.customClass},dangerouslyUseHTMLString:{type:Boolean,default:ht.dangerouslyUseHTMLString},duration:{type:Number,default:ht.duration},icon:{type:Xx,default:ht.icon},id:{type:String,default:ht.id},message:{type:vt([String,Object,Function]),default:ht.message},onClose:{type:vt(Function),default:ht.onClose},showClose:{type:Boolean,default:ht.showClose},type:{type:String,values:sf,default:ht.type},plain:{type:Boolean,default:ht.plain},offset:{type:Number,default:ht.offset},placement:{type:String,values:cf,default:ht.placement},zIndex:{type:Number,default:ht.zIndex},grouping:{type:Boolean,default:ht.grouping},repeatNum:{type:Number,default:ht.repeatNum}}),fy={destroy:()=>!0},St=I.shallowReactive({}),uy=t=>(St[t]||(St[t]=I.shallowReactive([])),St[t]),ly=(t,e)=>{const r=St[e]||[],n=r.findIndex(s=>s.id===t),i=r[n];let o;return n>0&&(o=r[n-1]),{current:i,prev:o}},hy=(t,e)=>{const{prev:r}=ly(t,e);return r?r.vm.exposed.bottom.value:0},dy=(t,e,r)=>(St[r]||[]).findIndex(o=>o.id===t)>0?16:e,py=I.defineComponent({name:"ElMessage"}),xy=I.defineComponent(Vt(We({},py),{props:cy,emits:fy,setup(t,{expose:e,emit:r}){const n=t,{Close:i}=Jx,o=I.ref(!1),{ns:s,zIndex:a}=Ox("message"),{currentZIndex:u,nextZIndex:c}=a,f=I.ref(),x=I.ref(!1),h=I.ref(0);let v;const m=I.computed(()=>n.type?n.type==="error"?"danger":n.type:"info"),E=I.computed(()=>{const V=n.type;return{[s.bm("icon",V)]:V&&af[V]}}),A=I.computed(()=>n.icon||af[n.type]||""),R=I.computed(()=>n.placement||Ur),w=I.computed(()=>hy(n.id,R.value)),_=I.computed(()=>dy(n.id,n.offset,R.value)+w.value),B=I.computed(()=>h.value+_.value),D=I.computed(()=>R.value.includes("left")?s.is("left"):R.value.includes("right")?s.is("right"):s.is("center")),O=I.computed(()=>R.value.startsWith("top")?"top":"bottom"),L=I.computed(()=>({[O.value]:`${_.value}px`,zIndex:u.value}));function z(){n.duration!==0&&({stop:v}=ux(()=>{P()},n.duration))}function Q(){v==null||v()}function P(){x.value=!1,I.nextTick(()=>{var V;o.value||((V=n.onClose)==null||V.call(n),r("destroy"))})}function k(V){ey(V)===A0.esc&&P()}return I.onMounted(()=>{z(),c(),x.value=!0}),I.watch(()=>n.repeatNum,()=>{Q(),z()}),lx(document,"keydown",k),yx(f,()=>{h.value=f.value.getBoundingClientRect().height}),e({visible:x,bottom:B,close:P}),(V,X)=>(I.openBlock(),I.createBlock(I.Transition,{name:I.unref(s).b("fade"),onBeforeEnter:ee=>o.value=!0,onBeforeLeave:V.onClose,onAfterLeave:ee=>V.$emit("destroy"),persisted:""},{default:I.withCtx(()=>[I.withDirectives(I.createElementVNode("div",{id:V.id,ref_key:"messageRef",ref:f,class:I.normalizeClass([I.unref(s).b(),{[I.unref(s).m(V.type)]:V.type},I.unref(s).is("closable",V.showClose),I.unref(s).is("plain",V.plain),I.unref(s).is("bottom",I.unref(O)==="bottom"),I.unref(D),V.customClass]),style:I.normalizeStyle(I.unref(L)),role:"alert",onMouseenter:Q,onMouseleave:z},[V.repeatNum>1?(I.openBlock(),I.createBlock(I.unref(ay),{key:0,value:V.repeatNum,type:I.unref(m),class:I.normalizeClass(I.unref(s).e("badge"))},null,8,["value","type","class"])):I.createCommentVNode("v-if",!0),I.unref(A)?(I.openBlock(),I.createBlock(I.unref(nf),{key:1,class:I.normalizeClass([I.unref(s).e("icon"),I.unref(E)])},{default:I.withCtx(()=>[(I.openBlock(),I.createBlock(I.resolveDynamicComponent(I.unref(A))))]),_:1},8,["class"])):I.createCommentVNode("v-if",!0),I.renderSlot(V.$slots,"default",{},()=>[V.dangerouslyUseHTMLString?(I.openBlock(),I.createElementBlock(I.Fragment,{key:1},[I.createCommentVNode(" Caution here, message could've been compromised, never use user's input as message "),I.createElementVNode("p",{class:I.normalizeClass(I.unref(s).e("content")),innerHTML:V.message},null,10,["innerHTML"])],2112)):(I.openBlock(),I.createElementBlock("p",{key:0,class:I.normalizeClass(I.unref(s).e("content"))},I.toDisplayString(V.message),3))]),V.showClose?(I.openBlock(),I.createBlock(I.unref(nf),{key:2,class:I.normalizeClass(I.unref(s).e("closeBtn")),onClick:I.withModifiers(P,["stop"])},{default:I.withCtx(()=>[I.createVNode(I.unref(i))]),_:1},8,["class","onClick"])):I.createCommentVNode("v-if",!0)],46,["id"]),[[I.vShow,x.value]])]),_:3},8,["name","onBeforeEnter","onBeforeLeave","onAfterLeave"]))}}));var yy=g0(xy,[["__file","message.vue"]]);let vy=1;const my=t=>{if(!t.appendTo)t.appendTo=document.body;else if(Mr(t.appendTo)){let r=document.querySelector(t.appendTo);ix(r)||(mn("ElMessage","the appendTo option is not an HTMLElement. Falling back to document.body."),r=document.body),t.appendTo=r}},gy=t=>{!t.placement&&Mr(lt.placement)&<.placement&&(t.placement=lt.placement),t.placement||(t.placement=Ur),cf.includes(t.placement)||(mn("ElMessage",`Invalid placement: ${t.placement}. Falling back to '${Ur}'.`),t.placement=Ur)},ff=t=>{const e=!t||Mr(t)||I.isVNode(t)||mi(t)?{message:t}:t,r=We(We({},ht),e);return my(r),gy(r),y0(lt.grouping)&&!r.grouping&&(r.grouping=lt.grouping),yr(lt.duration)&&r.duration===3e3&&(r.duration=lt.duration),yr(lt.offset)&&r.offset===16&&(r.offset=lt.offset),y0(lt.showClose)&&!r.showClose&&(r.showClose=lt.showClose),y0(lt.plain)&&!r.plain&&(r.plain=lt.plain),r},Ey=t=>{const e=t.props.placement||Ur,r=St[e],n=r.indexOf(t);if(n===-1)return;r.splice(n,1);const{handler:i}=t;i.close()},Ay=(n,r)=>{var i=n,{appendTo:t}=i,e=Kf(i,["appendTo"]);const o=`message_${vy++}`,s=e.onClose,a=document.createElement("div"),u=Vt(We({},e),{id:o,onClose:()=>{s==null||s(),Ey(h)},onDestroy:()=>{I.render(null,a)}}),c=I.createVNode(yy,u,mi(u.message)||I.isVNode(u.message)?{default:mi(u.message)?u.message:()=>u.message}:null);c.appContext=r||mr._context,I.render(c,a),t.appendChild(a.firstElementChild);const f=c.component,h={id:o,vnode:c,vm:f,handler:{close:()=>{f.exposed.close()}},props:c.component.props};return h},mr=(t={},e)=>{if(!vr)return{close:()=>{}};const r=ff(t),n=uy(r.placement||Ur);if(r.grouping&&n.length){const o=n.find(({vnode:s})=>{var a;return((a=s.props)==null?void 0:a.message)===r.message});if(o)return o.props.repeatNum+=1,o.props.type=r.type,o.handler}if(yr(lt.max)&&n.length>=lt.max)return{close:()=>{}};const i=Ay(r,e);return n.push(i),i.handler};sf.forEach(t=>{mr[t]=(e={},r)=>{const n=ff(e);return mr(Vt(We({},n),{type:t}),r)}});function wy(t){for(const e in St)if(x0(St,e)){const r=[...St[e]];for(const n of r)(!t||t===n.props.type)&&n.handler.close()}}function _y(t){if(!St[t])return;[...St[t]].forEach(r=>r.handler.close())}mr.closeAll=wy,mr.closeAllByPlacement=_y,mr._context=null;const er=Lx(mr,"$message"),uf="0123456789abcdeffedcba9876543210",lf="4b0de988570c3a0f";let $r=window.ENCRYPT&&new Tc;function hf(t=16,e="0123456789abcdefghijklmnopqrstuvwxyz"){let r="",n=e.length;for(;t>0;)r+=e[Math.floor(Math.random()*n)],t--;return r}function df(){return De(this,null,function*(){return $r||($r=new Tc),new Promise((t,e)=>{$r.armEnum().then(r=>{t(+r)}).catch(r=>{er({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e(r)})})})}ze.throttle(()=>De(this,null,function*(){const t=yield df(),e={};if(typeof t!="number"||t<=0)er({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken();else{const r=yield Cy();if(!e.token)return;r.length?r.includes(e.ukeyHid)||(er({type:"error",ElMessage:"U盘锁不匹配,请检查U盘锁!"}),e.resetToken()):(er({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken())}}),5e3,{trailing:!1});function by(t=0){return De(this,null,function*(){return $r?new Promise((e,r)=>{$r.armGetDongleInfo(t).then(n=>{n?e(n):(er({type:"warning",ElMessage:"U盘锁信息为空,请检查U盘锁!"}),r(n))}).catch(n=>{r(n)})}):er({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"})})}function Cy(){return De(this,null,function*(){if(!$r)return er({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"});const t=yield df();let e=[];for(let r=0;r<t;r++){const n=yield by(r);e.push(n)}return e})}hf(16),hf(16);const pf=window.meta.app.inspect?kr.constants.CBC:kr.constants.ECB;K1.generateKeyPair();function xf(t,e,r={}){const n=vf(lf),i=r.mode||pf;r=i===kr.constants.ECB?We({mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r):We({iv:uf,mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r);let o="";try{o=kr.encrypt(t,n,r)}catch(s){console.log("err: ",s)}return o}function yf(t,e,r={}){const n=vf(lf),i=r.mode||pf;return r=i===kr.constants.ECB?We({mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r):We({iv:uf,mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r),kr.decrypt(t,n,r)}function vf(t){return[...t].map(e=>e.charCodeAt().toString(16)).join("")}const w0={getLocal:t=>{try{let e=window.localStorage.getItem(t);return e=e!==null?yf(e):e,JSON.parse(e)}catch(e){console.error(e)}},setLocal:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?xf(r):r,window.localStorage.setItem(t,r)}catch(r){console.error(r)}},eachLocal:t=>{if(!t||Ls(t)!=="Function")return console.error("传递参数非函数类型!");for(let e=0,r=window.localStorage.length;e<r;e++){const n=window.localStorage.key(e);t((void 0).getLocal(n),n)}},clearLocal:()=>{window.localStorage.clear()},removeLocal:t=>{window.localStorage.removeItem(t)},getSession:t=>{try{let e=window.sessionStorage.getItem(t);return e=e!==null?yf(e):e,JSON.parse(e)}catch(e){console.error(e)}},setSession:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?xf(r):r,window.sessionStorage.setItem(t,r)}catch(r){console.error(r)}},eachSession:t=>{if(!t||Ls(t)!=="Function")return console.error("传递参数非函数类型!");for(let e=0,r=window.sessionStorage.length;e<r;e++){const n=window.sessionStorage.key(e);t((void 0).getSession(n),n)}},clearSession:()=>{window.sessionStorage.clear()},removeSession:t=>{window.sessionStorage.removeItem(t)}},By="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1778134039448'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1155'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20512m-500.62222187%200a500.62222187%20500.62222187%200%201%200%201001.24444374%200%20500.62222187%20500.62222187%200%201%200-1001.24444374%200Z'%20fill='%231afa29'%20p-id='1156'%3e%3c/path%3e%3c/svg%3e",mf="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1778135587292'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='1657'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M512%20512m-500.62222187%200a500.62222187%20500.62222187%200%201%200%201001.24444374%200%20500.62222187%20500.62222187%200%201%200-1001.24444374%200Z'%20fill='%23808080'%20p-id='1658'%3e%3c/path%3e%3c/svg%3e",Dy="data:image/svg+xml,%3c?xml%20version='1.0'%20standalone='no'?%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20t='1778133589331'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='25776'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='200'%20height='200'%3e%3cpath%20d='M377.083%20125.44c74.606-135.314%20195.292-135.314%20269.897%200l346.332%20629.394c74.606%20135.315%209.508%20245.395-145.189%20245.395H175.94c-154.697%200-219.428-109.715-145.188-245.395L377.083%20125.44z'%20fill='%23FF2D16'%20p-id='25777'%3e%3c/path%3e%3cpath%20d='M567.986%20328.046c0-31.086-25.234-55.955-55.954-55.955s-55.954%2025.235-55.954%2055.955v280.137c0%2031.086%2025.234%2055.954%2055.954%2055.954s55.954-25.234%2055.954-55.954V328.046z%20m-111.908%20448h111.908v111.908H456.078z'%20fill='%23FFFFFF'%20p-id='25778'%3e%3c/path%3e%3c/svg%3e";class Sy extends Re.Object3D{constructor(e=document.createElement("div")){super(),this.isCSS2DObject=!0,this.element=e,this.element.style.position="absolute",this.element.style.userSelect="none",this.element.setAttribute("draggable",!1),this.center=new Re.Vector2(.5,.5),this.addEventListener("removed",function(){this.traverse(function(r){r.element instanceof r.element.ownerDocument.defaultView.Element&&r.element.parentNode!==null&&r.element.remove()})})}copy(e,r){return super.copy(e,r),this.element=e.element.cloneNode(!0),this.center=e.center,this}}new Re.Vector3,new Re.Matrix4,new Re.Matrix4,new Re.Vector3,new Re.Vector3;const Fy={name:"局放测点",label:"局放测点",create:function(t,e){return De(this,null,function*(){const{transformControls:r}=e,n=document.createElement("div");n.style.position="relative",n.style.gap="20px";const i=document.createElement("img");i.style.objectFit="fill",i.style.width="1.3vw",i.style.height="1.3vw",i.src=mf,i.style.cursor="pointer",i.style.pointerEvents="auto",i.style.userSelect="none",n.append(i);const o=document.createElement("div");Object.assign(o.style,{position:"absolute",top:"0",left:"1.8vw",display:"none",flexDirection:"column",gap:"10px",padding:"10px",borderRadius:"4px",minWidth:"12vw",border:"1px solid color-mix(in srgb, var(--sc-color-white) 20%, transparent)",backdropFilter:"blur(12px)",background:"color-mix(in srgb, var(--sc-color-black) 20%, transparent)"}),t.valueEleId||(t.valueEleId=Co()),o.innerHTML=`
|
|
42
42
|
<div style="padding-bottom: 10px; font-size: 16px; color: var(--sc-color-white); border-bottom: 1px solid color-mix(in srgb, var(--sc-color-danger) 70%, transparent);white-space: nowrap;">${t.name}</div>
|
|
43
43
|
<div style="font-size: 14px; color: #cae4ff;">幅值峰值</div>
|
|
44
44
|
<div style="display: flex; align-items: flex-end; gap: 10px; color: color-mix(in srgb, var(--sc-color-danger) 80%, transparent);">
|
|
45
45
|
<span id="${t.valueEleId}" style="font-size: 24px;font-weight: 600;">${t.value}</span>
|
|
46
46
|
<span style="font-size: 14px;">dBm</span>
|
|
47
47
|
</div>
|
|
48
|
-
`;const s=new Sy(n);s.name=t.name,s.dataId=t.id,s.userData.params=t,i.addEventListener("mouseover",()=>{o.style.display="flex"}),i.addEventListener("mouseleave",()=>{o.style.display="none"}),i.addEventListener("click",()=>{Bo.emit("three-event",{type:"pd-sensor-click",data:s}),t.preview||setTimeout(()=>{r.attach(s)},100)}),n.append(o);const a=c=>{c===0?i.src=
|
|
48
|
+
`;const s=new Sy(n);s.name=t.name,s.dataId=t.id,s.userData.params=t,i.addEventListener("mouseover",()=>{o.style.display="flex"}),i.addEventListener("mouseleave",()=>{o.style.display="none"}),i.addEventListener("click",()=>{Bo.emit("three-event",{type:"pd-sensor-click",data:s}),t.preview||setTimeout(()=>{r.attach(s)},100)}),n.append(o);const a=c=>{c===0?i.src=mf:c===1?i.src=By:c===2&&(i.src=Dy)},u=c=>{const f=document.getElementById(t.valueEleId);f&&(f.innerText=c)};return s.changeState=a,s.changeValue=u,setTimeout(()=>{a(t.state),u(t.value)},200),s})},getStorage:function(t){return t.userData.params}};var gf={exports:{}};/*!
|
|
49
49
|
localForage -- Offline Storage, Improved
|
|
50
50
|
Version 1.10.0
|
|
51
51
|
https://localforage.github.io/localForage
|
|
52
52
|
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
53
|
-
*/(function(t,e){(function(r){t.exports=r()})(function(){return function r(n,i,o){function s(c,f){if(!i[c]){if(!n[c]){var x=typeof yn=="function"&&yn;if(!f&&x)return x(c,!0);if(a)return a(c,!0);var l=new Error("Cannot find module '"+c+"'");throw l.code="MODULE_NOT_FOUND",l}var m=i[c]={exports:{}};n[c][0].call(m.exports,function(v){var E=n[c][1][v];return s(E||v)},m,m.exports,r,n,i,o)}return i[c].exports}for(var a=typeof yn=="function"&&yn,h=0;h<o.length;h++)s(o[h]);return s}({1:[function(r,n,i){(function(o){var s=o.MutationObserver||o.WebKitMutationObserver,a;if(s){var h=0,c=new s(v),f=o.document.createTextNode("");c.observe(f,{characterData:!0}),a=function(){f.data=h=++h%2}}else if(!o.setImmediate&&typeof o.MessageChannel!="undefined"){var x=new o.MessageChannel;x.port1.onmessage=v,a=function(){x.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?a=function(){var A=o.document.createElement("script");A.onreadystatechange=function(){v(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},o.document.documentElement.appendChild(A)}:a=function(){setTimeout(v,0)};var l,m=[];function v(){l=!0;for(var A,R,w=m.length;w;){for(R=m,m=[],A=-1;++A<w;)R[A]();w=m.length}l=!1}n.exports=E;function E(A){m.push(A)===1&&!l&&a()}}).call(this,typeof ye!="undefined"?ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(r,n,i){var o=r(1);function s(){}var a={},h=["REJECTED"],c=["FULFILLED"],f=["PENDING"];n.exports=x;function x(C){if(typeof C!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,C!==s&&E(this,C)}x.prototype.catch=function(C){return this.then(null,C)},x.prototype.then=function(C,O){if(typeof C!="function"&&this.state===c||typeof O!="function"&&this.state===h)return this;var L=new this.constructor(s);if(this.state!==f){var H=this.state===c?C:O;m(L,H,this.outcome)}else this.queue.push(new l(L,C,O));return L};function l(C,O,L){this.promise=C,typeof O=="function"&&(this.onFulfilled=O,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}l.prototype.callFulfilled=function(C){a.resolve(this.promise,C)},l.prototype.otherCallFulfilled=function(C){m(this.promise,this.onFulfilled,C)},l.prototype.callRejected=function(C){a.reject(this.promise,C)},l.prototype.otherCallRejected=function(C){m(this.promise,this.onRejected,C)};function m(C,O,L){o(function(){var H;try{H=O(L)}catch(Z){return a.reject(C,Z)}H===C?a.reject(C,new TypeError("Cannot resolve promise with itself")):a.resolve(C,H)})}a.resolve=function(C,O){var L=A(v,O);if(L.status==="error")return a.reject(C,L.value);var H=L.value;if(H)E(C,H);else{C.state=c,C.outcome=O;for(var Z=-1,P=C.queue.length;++Z<P;)C.queue[Z].callFulfilled(O)}return C},a.reject=function(C,O){C.state=h,C.outcome=O;for(var L=-1,H=C.queue.length;++L<H;)C.queue[L].callRejected(O);return C};function v(C){var O=C&&C.then;if(C&&(typeof C=="object"||typeof C=="function")&&typeof O=="function")return function(){O.apply(C,arguments)}}function E(C,O){var L=!1;function H(V){L||(L=!0,a.reject(C,V))}function Z(V){L||(L=!0,a.resolve(C,V))}function P(){O(Z,H)}var k=A(P);k.status==="error"&&H(k.value)}function A(C,O){var L={};try{L.value=C(O),L.status="success"}catch(H){L.status="error",L.value=H}return L}x.resolve=R;function R(C){return C instanceof this?C:a.resolve(new this(s),C)}x.reject=w;function w(C){var O=new this(s);return a.reject(O,C)}x.all=_;function _(C){var O=this;if(Object.prototype.toString.call(C)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=C.length,H=!1;if(!L)return this.resolve([]);for(var Z=new Array(L),P=0,k=-1,V=new this(s);++k<L;)X(C[k],k);return V;function X(te,Y){O.resolve(te).then(Q,function(oe){H||(H=!0,a.reject(V,oe))});function Q(oe){Z[Y]=oe,++P===L&&!H&&(H=!0,a.resolve(V,Z))}}}x.race=D;function D(C){var O=this;if(Object.prototype.toString.call(C)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=C.length,H=!1;if(!L)return this.resolve([]);for(var Z=-1,P=new this(s);++Z<L;)k(C[Z]);return P;function k(V){O.resolve(V).then(function(X){H||(H=!0,a.resolve(P,X))},function(X){H||(H=!0,a.reject(P,X))})}}},{1:1}],3:[function(r,n,i){(function(o){typeof o.Promise!="function"&&(o.Promise=r(2))}).call(this,typeof ye!="undefined"?ye:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(r,n,i){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b};function s(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(b){return}}var h=a();function c(){try{if(!h||!h.open)return!1;var b=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),N=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!b||N)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(S){return!1}}function f(b,N){b=b||[],N=N||{};try{return new Blob(b,N)}catch(U){if(U.name!=="TypeError")throw U;for(var S=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,M=new S,q=0;q<b.length;q+=1)M.append(b[q]);return M.getBlob(N.type)}}typeof Promise=="undefined"&&r(3);var x=Promise;function l(b,N){N&&b.then(function(S){N(null,S)},function(S){N(S)})}function m(b,N,S){typeof N=="function"&&b.then(N),typeof S=="function"&&b.catch(S)}function v(b){return typeof b!="string"&&(console.warn(b+" used as a key, but it is not a string."),b=String(b)),b}function E(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",R=void 0,w={},_=Object.prototype.toString,D="readonly",C="readwrite";function O(b){for(var N=b.length,S=new ArrayBuffer(N),M=new Uint8Array(S),q=0;q<N;q++)M[q]=b.charCodeAt(q);return S}function L(b){return new x(function(N){var S=b.transaction(A,C),M=f([""]);S.objectStore(A).put(M,"key"),S.onabort=function(q){q.preventDefault(),q.stopPropagation(),N(!1)},S.oncomplete=function(){var q=navigator.userAgent.match(/Chrome\/(\d+)/),U=navigator.userAgent.match(/Edge\//);N(U||!q||parseInt(q[1],10)>=43)}}).catch(function(){return!1})}function H(b){return typeof R=="boolean"?x.resolve(R):L(b).then(function(N){return R=N,R})}function Z(b){var N=w[b.name],S={};S.promise=new x(function(M,q){S.resolve=M,S.reject=q}),N.deferredOperations.push(S),N.dbReady?N.dbReady=N.dbReady.then(function(){return S.promise}):N.dbReady=S.promise}function P(b){var N=w[b.name],S=N.deferredOperations.pop();if(S)return S.resolve(),S.promise}function k(b,N){var S=w[b.name],M=S.deferredOperations.pop();if(M)return M.reject(N),M.promise}function V(b,N){return new x(function(S,M){if(w[b.name]=w[b.name]||j(),b.db)if(N)Z(b),b.db.close();else return S(b.db);var q=[b.name];N&&q.push(b.version);var U=h.open.apply(h,q);N&&(U.onupgradeneeded=function(ee){var ae=U.result;try{ae.createObjectStore(b.storeName),ee.oldVersion<=1&&ae.createObjectStore(A)}catch(ce){if(ce.name==="ConstraintError")console.warn('The database "'+b.name+'" has been upgraded from version '+ee.oldVersion+" to version "+ee.newVersion+', but the storage "'+b.storeName+'" already exists.');else throw ce}}),U.onerror=function(ee){ee.preventDefault(),M(U.error)},U.onsuccess=function(){var ee=U.result;ee.onversionchange=function(ae){ae.target.close()},S(ee),P(b)}})}function X(b){return V(b,!1)}function te(b){return V(b,!0)}function Y(b,N){if(!b.db)return!0;var S=!b.db.objectStoreNames.contains(b.storeName),M=b.version<b.db.version,q=b.version>b.db.version;if(M&&(b.version!==N&&console.warn('The database "'+b.name+`" can't be downgraded from version `+b.db.version+" to version "+b.version+"."),b.version=b.db.version),q||S){if(S){var U=b.db.version+1;U>b.version&&(b.version=U)}return!0}return!1}function Q(b){return new x(function(N,S){var M=new FileReader;M.onerror=S,M.onloadend=function(q){var U=btoa(q.target.result||"");N({__local_forage_encoded_blob:!0,data:U,type:b.type})},M.readAsBinaryString(b)})}function oe(b){var N=O(atob(b.data));return f([N],{type:b.type})}function ie(b){return b&&b.__local_forage_encoded_blob}function he(b){var N=this,S=N._initReady().then(function(){var M=w[N._dbInfo.name];if(M&&M.dbReady)return M.dbReady});return m(S,b,b),S}function fe(b){Z(b);for(var N=w[b.name],S=N.forages,M=0;M<S.length;M++){var q=S[M];q._dbInfo.db&&(q._dbInfo.db.close(),q._dbInfo.db=null)}return b.db=null,X(b).then(function(U){return b.db=U,Y(b)?te(b):U}).then(function(U){b.db=N.db=U;for(var ee=0;ee<S.length;ee++)S[ee]._dbInfo.db=U}).catch(function(U){throw k(b,U),U})}function z(b,N,S,M){M===void 0&&(M=1);try{var q=b.db.transaction(b.storeName,N);S(null,q)}catch(U){if(M>0&&(!b.db||U.name==="InvalidStateError"||U.name==="NotFoundError"))return x.resolve().then(function(){if(!b.db||U.name==="NotFoundError"&&!b.db.objectStoreNames.contains(b.storeName)&&b.version<=b.db.version)return b.db&&(b.version=b.db.version+1),te(b)}).then(function(){return fe(b).then(function(){z(b,N,S,M-1)})}).catch(S);S(U)}}function j(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function re(b){var N=this,S={db:null};if(b)for(var M in b)S[M]=b[M];var q=w[S.name];q||(q=j(),w[S.name]=q),q.forages.push(N),N._initReady||(N._initReady=N.ready,N.ready=he);var U=[];function ee(){return x.resolve()}for(var ae=0;ae<q.forages.length;ae++){var ce=q.forages[ae];ce!==N&&U.push(ce._initReady().catch(ee))}var ue=q.forages.slice(0);return x.all(U).then(function(){return S.db=q.db,X(S)}).then(function(le){return S.db=le,Y(S,N._defaultConfig.version)?te(S):le}).then(function(le){S.db=q.db=le,N._dbInfo=S;for(var ge=0;ge<ue.length;ge++){var Se=ue[ge];Se!==N&&(Se._dbInfo.db=S.db,Se._dbInfo.version=S.version)}})}function J(b,N){var S=this;b=v(b);var M=new x(function(q,U){S.ready().then(function(){z(S._dbInfo,D,function(ee,ae){if(ee)return U(ee);try{var ce=ae.objectStore(S._dbInfo.storeName),ue=ce.get(b);ue.onsuccess=function(){var le=ue.result;le===void 0&&(le=null),ie(le)&&(le=oe(le)),q(le)},ue.onerror=function(){U(ue.error)}}catch(le){U(le)}})}).catch(U)});return l(M,N),M}function Ee(b,N){var S=this,M=new x(function(q,U){S.ready().then(function(){z(S._dbInfo,D,function(ee,ae){if(ee)return U(ee);try{var ce=ae.objectStore(S._dbInfo.storeName),ue=ce.openCursor(),le=1;ue.onsuccess=function(){var ge=ue.result;if(ge){var Se=ge.value;ie(Se)&&(Se=oe(Se));var Ue=b(Se,ge.key,le++);Ue!==void 0?q(Ue):ge.continue()}else q()},ue.onerror=function(){U(ue.error)}}catch(ge){U(ge)}})}).catch(U)});return l(M,N),M}function we(b,N,S){var M=this;b=v(b);var q=new x(function(U,ee){var ae;M.ready().then(function(){return ae=M._dbInfo,_.call(N)==="[object Blob]"?H(ae.db).then(function(ce){return ce?N:Q(N)}):N}).then(function(ce){z(M._dbInfo,C,function(ue,le){if(ue)return ee(ue);try{var ge=le.objectStore(M._dbInfo.storeName);ce===null&&(ce=void 0);var Se=ge.put(ce,b);le.oncomplete=function(){ce===void 0&&(ce=null),U(ce)},le.onabort=le.onerror=function(){var Ue=Se.error?Se.error:Se.transaction.error;ee(Ue)}}catch(Ue){ee(Ue)}})}).catch(ee)});return l(q,S),q}function Me(b,N){var S=this;b=v(b);var M=new x(function(q,U){S.ready().then(function(){z(S._dbInfo,C,function(ee,ae){if(ee)return U(ee);try{var ce=ae.objectStore(S._dbInfo.storeName),ue=ce.delete(b);ae.oncomplete=function(){q()},ae.onerror=function(){U(ue.error)},ae.onabort=function(){var le=ue.error?ue.error:ue.transaction.error;U(le)}}catch(le){U(le)}})}).catch(U)});return l(M,N),M}function ve(b){var N=this,S=new x(function(M,q){N.ready().then(function(){z(N._dbInfo,C,function(U,ee){if(U)return q(U);try{var ae=ee.objectStore(N._dbInfo.storeName),ce=ae.clear();ee.oncomplete=function(){M()},ee.onabort=ee.onerror=function(){var ue=ce.error?ce.error:ce.transaction.error;q(ue)}}catch(ue){q(ue)}})}).catch(q)});return l(S,b),S}function _e(b){var N=this,S=new x(function(M,q){N.ready().then(function(){z(N._dbInfo,D,function(U,ee){if(U)return q(U);try{var ae=ee.objectStore(N._dbInfo.storeName),ce=ae.count();ce.onsuccess=function(){M(ce.result)},ce.onerror=function(){q(ce.error)}}catch(ue){q(ue)}})}).catch(q)});return l(S,b),S}function Pe(b,N){var S=this,M=new x(function(q,U){if(b<0){q(null);return}S.ready().then(function(){z(S._dbInfo,D,function(ee,ae){if(ee)return U(ee);try{var ce=ae.objectStore(S._dbInfo.storeName),ue=!1,le=ce.openKeyCursor();le.onsuccess=function(){var ge=le.result;if(!ge){q(null);return}b===0||ue?q(ge.key):(ue=!0,ge.advance(b))},le.onerror=function(){U(le.error)}}catch(ge){U(ge)}})}).catch(U)});return l(M,N),M}function Ge(b){var N=this,S=new x(function(M,q){N.ready().then(function(){z(N._dbInfo,D,function(U,ee){if(U)return q(U);try{var ae=ee.objectStore(N._dbInfo.storeName),ce=ae.openKeyCursor(),ue=[];ce.onsuccess=function(){var le=ce.result;if(!le){M(ue);return}ue.push(le.key),le.continue()},ce.onerror=function(){q(ce.error)}}catch(le){q(le)}})}).catch(q)});return l(S,b),S}function Ve(b,N){N=E.apply(this,arguments);var S=this.config();b=typeof b!="function"&&b||{},b.name||(b.name=b.name||S.name,b.storeName=b.storeName||S.storeName);var M=this,q;if(!b.name)q=x.reject("Invalid arguments");else{var U=b.name===S.name&&M._dbInfo.db,ee=U?x.resolve(M._dbInfo.db):X(b).then(function(ae){var ce=w[b.name],ue=ce.forages;ce.db=ae;for(var le=0;le<ue.length;le++)ue[le]._dbInfo.db=ae;return ae});b.storeName?q=ee.then(function(ae){if(ae.objectStoreNames.contains(b.storeName)){var ce=ae.version+1;Z(b);var ue=w[b.name],le=ue.forages;ae.close();for(var ge=0;ge<le.length;ge++){var Se=le[ge];Se._dbInfo.db=null,Se._dbInfo.version=ce}var Ue=new x(function($e,Qe){var Xe=h.open(b.name,ce);Xe.onerror=function(p){var g=Xe.result;g.close(),Qe(p)},Xe.onupgradeneeded=function(){var p=Xe.result;p.deleteObjectStore(b.storeName)},Xe.onsuccess=function(){var p=Xe.result;p.close(),$e(p)}});return Ue.then(function($e){ue.db=$e;for(var Qe=0;Qe<le.length;Qe++){var Xe=le[Qe];Xe._dbInfo.db=$e,P(Xe._dbInfo)}}).catch(function($e){throw(k(b,$e)||x.resolve()).catch(function(){}),$e})}}):q=ee.then(function(ae){Z(b);var ce=w[b.name],ue=ce.forages;ae.close();for(var le=0;le<ue.length;le++){var ge=ue[le];ge._dbInfo.db=null}var Se=new x(function(Ue,$e){var Qe=h.deleteDatabase(b.name);Qe.onerror=function(){var Xe=Qe.result;Xe&&Xe.close(),$e(Qe.error)},Qe.onblocked=function(){console.warn('dropInstance blocked for database "'+b.name+'" until all open connections are closed')},Qe.onsuccess=function(){var Xe=Qe.result;Xe&&Xe.close(),Ue(Xe)}});return Se.then(function(Ue){ce.db=Ue;for(var $e=0;$e<ue.length;$e++){var Qe=ue[$e];P(Qe._dbInfo)}}).catch(function(Ue){throw(k(b,Ue)||x.resolve()).catch(function(){}),Ue})})}return l(q,N),q}var Oe={_driver:"asyncStorage",_initStorage:re,_support:c(),iterate:Ee,getItem:J,setItem:we,removeItem:Me,clear:ve,length:_e,key:Pe,keys:Ge,dropInstance:Ve};function je(){return typeof openDatabase=="function"}var Ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F="~~local_forage_type~",u=/^~~local_forage_type~([^~]+)~/,d="__lfsc__:",y=d.length,T="arbf",W="blob",K="si08",pe="ui08",Ce="uic8",be="si16",Be="si32",ke="ur16",gt="ui32",__$t__="fl32",Ht="fl64",Ft=y+T.length,zt=Object.prototype.toString;function zr(b){var N=b.length*.75,S=b.length,M,q=0,U,ee,ae,ce;b[b.length-1]==="="&&(N--,b[b.length-2]==="="&&N--);var ue=new ArrayBuffer(N),le=new Uint8Array(ue);for(M=0;M<S;M+=4)U=Ke.indexOf(b[M]),ee=Ke.indexOf(b[M+1]),ae=Ke.indexOf(b[M+2]),ce=Ke.indexOf(b[M+3]),le[q++]=U<<2|ee>>4,le[q++]=(ee&15)<<4|ae>>2,le[q++]=(ae&3)<<6|ce&63;return ue}function qt(b){var N=new Uint8Array(b),S="",M;for(M=0;M<N.length;M+=3)S+=Ke[N[M]>>2],S+=Ke[(N[M]&3)<<4|N[M+1]>>4],S+=Ke[(N[M+1]&15)<<2|N[M+2]>>6],S+=Ke[N[M+2]&63];return N.length%3===2?S=S.substring(0,S.length-1)+"=":N.length%3===1&&(S=S.substring(0,S.length-2)+"=="),S}function qr(b,N){var S="";if(b&&(S=zt.call(b)),b&&(S==="[object ArrayBuffer]"||b.buffer&&zt.call(b.buffer)==="[object ArrayBuffer]")){var M,q=d;b instanceof ArrayBuffer?(M=b,q+=T):(M=b.buffer,S==="[object Int8Array]"?q+=K:S==="[object Uint8Array]"?q+=pe:S==="[object Uint8ClampedArray]"?q+=Ce:S==="[object Int16Array]"?q+=be:S==="[object Uint16Array]"?q+=ke:S==="[object Int32Array]"?q+=Be:S==="[object Uint32Array]"?q+=gt:S==="[object Float32Array]"?q+=__$t__:S==="[object Float64Array]"?q+=Ht:N(new Error("Failed to get type for BinaryArray"))),N(q+qt(M))}else if(S==="[object Blob]"){var U=new FileReader;U.onload=function(){var ee=F+b.type+"~"+qt(this.result);N(d+W+ee)},U.readAsArrayBuffer(b)}else try{N(JSON.stringify(b))}catch(ee){console.error("Couldn't convert value into a JSON string: ",b),N(null,ee)}}function Wr(b){if(b.substring(0,y)!==d)return JSON.parse(b);var N=b.substring(Ft),S=b.substring(y,Ft),M;if(S===W&&u.test(N)){var q=N.match(u);M=q[1],N=N.substring(q[0].length)}var U=zr(N);switch(S){case T:return U;case W:return f([U],{type:M});case K:return new Int8Array(U);case pe:return new Uint8Array(U);case Ce:return new Uint8ClampedArray(U);case be:return new Int16Array(U);case ke:return new Uint16Array(U);case Be:return new Int32Array(U);case gt:return new Uint32Array(U);case __$t__:return new Float32Array(U);case Ht:return new Float64Array(U);default:throw new Error("Unkown type: "+S)}}var gr={serialize:qr,deserialize:Wr,stringToBuffer:zr,bufferToString:qt};function nr(b,N,S,M){b.executeSql("CREATE TABLE IF NOT EXISTS "+N.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],S,M)}function bn(b){var N=this,S={db:null};if(b)for(var M in b)S[M]=typeof b[M]!="string"?b[M].toString():b[M];var q=new x(function(U,ee){try{S.db=openDatabase(S.name,String(S.version),S.description,S.size)}catch(ae){return ee(ae)}S.db.transaction(function(ae){nr(ae,S,function(){N._dbInfo=S,U()},function(ce,ue){ee(ue)})},ee)});return S.serializer=gr,q}function Et(b,N,S,M,q,U){b.executeSql(S,M,q,function(ee,ae){ae.code===ae.SYNTAX_ERR?ee.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[N.storeName],function(ce,ue){ue.rows.length?U(ce,ae):nr(ce,N,function(){ce.executeSql(S,M,q,U)},U)},U):U(ee,ae)},U)}function Cn(b,N){var S=this;b=v(b);var M=new x(function(q,U){S.ready().then(function(){var ee=S._dbInfo;ee.db.transaction(function(ae){Et(ae,ee,"SELECT * FROM "+ee.storeName+" WHERE key = ? LIMIT 1",[b],function(ce,ue){var le=ue.rows.length?ue.rows.item(0).value:null;le&&(le=ee.serializer.deserialize(le)),q(le)},function(ce,ue){U(ue)})})}).catch(U)});return l(M,N),M}function Vr(b,N){var S=this,M=new x(function(q,U){S.ready().then(function(){var ee=S._dbInfo;ee.db.transaction(function(ae){Et(ae,ee,"SELECT * FROM "+ee.storeName,[],function(ce,ue){for(var le=ue.rows,ge=le.length,Se=0;Se<ge;Se++){var Ue=le.item(Se),$e=Ue.value;if($e&&($e=ee.serializer.deserialize($e)),$e=b($e,Ue.key,Se+1),$e!==void 0){q($e);return}}q()},function(ce,ue){U(ue)})})}).catch(U)});return l(M,N),M}function Gr(b,N,S,M){var q=this;b=v(b);var U=new x(function(ee,ae){q.ready().then(function(){N===void 0&&(N=null);var ce=N,ue=q._dbInfo;ue.serializer.serialize(N,function(le,ge){ge?ae(ge):ue.db.transaction(function(Se){Et(Se,ue,"INSERT OR REPLACE INTO "+ue.storeName+" (key, value) VALUES (?, ?)",[b,le],function(){ee(ce)},function(Ue,$e){ae($e)})},function(Se){if(Se.code===Se.QUOTA_ERR){if(M>0){ee(Gr.apply(q,[b,ce,S,M-1]));return}ae(Se)}})})}).catch(ae)});return l(U,S),U}function Bn(b,N,S){return Gr.apply(this,[b,N,S,1])}function Dn(b,N){var S=this;b=v(b);var M=new x(function(q,U){S.ready().then(function(){var ee=S._dbInfo;ee.db.transaction(function(ae){Et(ae,ee,"DELETE FROM "+ee.storeName+" WHERE key = ?",[b],function(){q()},function(ce,ue){U(ue)})})}).catch(U)});return l(M,N),M}function jr(b){var N=this,S=new x(function(M,q){N.ready().then(function(){var U=N._dbInfo;U.db.transaction(function(ee){Et(ee,U,"DELETE FROM "+U.storeName,[],function(){M()},function(ae,ce){q(ce)})})}).catch(q)});return l(S,b),S}function Sn(b){var N=this,S=new x(function(M,q){N.ready().then(function(){var U=N._dbInfo;U.db.transaction(function(ee){Et(ee,U,"SELECT COUNT(key) as c FROM "+U.storeName,[],function(ae,ce){var ue=ce.rows.item(0).c;M(ue)},function(ae,ce){q(ce)})})}).catch(q)});return l(S,b),S}function Fn(b,N){var S=this,M=new x(function(q,U){S.ready().then(function(){var ee=S._dbInfo;ee.db.transaction(function(ae){Et(ae,ee,"SELECT key FROM "+ee.storeName+" WHERE id = ? LIMIT 1",[b+1],function(ce,ue){var le=ue.rows.length?ue.rows.item(0).key:null;q(le)},function(ce,ue){U(ue)})})}).catch(U)});return l(M,N),M}function Kr(b){var N=this,S=new x(function(M,q){N.ready().then(function(){var U=N._dbInfo;U.db.transaction(function(ee){Et(ee,U,"SELECT key FROM "+U.storeName,[],function(ae,ce){for(var ue=[],le=0;le<ce.rows.length;le++)ue.push(ce.rows.item(le).key);M(ue)},function(ae,ce){q(ce)})})}).catch(q)});return l(S,b),S}function Rn(b){return new x(function(N,S){b.transaction(function(M){M.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(q,U){for(var ee=[],ae=0;ae<U.rows.length;ae++)ee.push(U.rows.item(ae).name);N({db:b,storeNames:ee})},function(q,U){S(U)})},function(M){S(M)})})}function Yr(b,N){N=E.apply(this,arguments);var S=this.config();b=typeof b!="function"&&b||{},b.name||(b.name=b.name||S.name,b.storeName=b.storeName||S.storeName);var M=this,q;return b.name?q=new x(function(U){var ee;b.name===S.name?ee=M._dbInfo.db:ee=openDatabase(b.name,"","",0),b.storeName?U({db:ee,storeNames:[b.storeName]}):U(Rn(ee))}).then(function(U){return new x(function(ee,ae){U.db.transaction(function(ce){function ue(Ue){return new x(function($e,Qe){ce.executeSql("DROP TABLE IF EXISTS "+Ue,[],function(){$e()},function(Xe,p){Qe(p)})})}for(var le=[],ge=0,Se=U.storeNames.length;ge<Se;ge++)le.push(ue(U.storeNames[ge]));x.all(le).then(function(){ee()}).catch(function(Ue){ae(Ue)})},function(ce){ae(ce)})})}):q=x.reject("Invalid arguments"),l(q,N),q}var ft={_driver:"webSQLStorage",_initStorage:bn,_support:je(),iterate:Vr,getItem:Cn,setItem:Bn,removeItem:Dn,clear:jr,length:Sn,key:Fn,keys:Kr,dropInstance:Yr};function bt(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(b){return!1}}function Er(b,N){var S=b.name+"/";return b.storeName!==N.storeName&&(S+=b.storeName+"/"),S}function In(){var b="_localforage_support_test";try{return localStorage.setItem(b,!0),localStorage.removeItem(b),!1}catch(N){return!0}}function P0(){return!In()||localStorage.length>0}function N0(b){var N=this,S={};if(b)for(var M in b)S[M]=b[M];return S.keyPrefix=Er(b,N._defaultConfig),P0()?(N._dbInfo=S,S.serializer=gr,x.resolve()):x.reject()}function L0(b){var N=this,S=N.ready().then(function(){for(var M=N._dbInfo.keyPrefix,q=localStorage.length-1;q>=0;q--){var U=localStorage.key(q);U.indexOf(M)===0&&localStorage.removeItem(U)}});return l(S,b),S}function k0(b,N){var S=this;b=v(b);var M=S.ready().then(function(){var q=S._dbInfo,U=localStorage.getItem(q.keyPrefix+b);return U&&(U=q.serializer.deserialize(U)),U});return l(M,N),M}function M0(b,N){var S=this,M=S.ready().then(function(){for(var q=S._dbInfo,U=q.keyPrefix,ee=U.length,ae=localStorage.length,ce=1,ue=0;ue<ae;ue++){var le=localStorage.key(ue);if(le.indexOf(U)===0){var ge=localStorage.getItem(le);if(ge&&(ge=q.serializer.deserialize(ge)),ge=b(ge,le.substring(ee),ce++),ge!==void 0)return ge}}});return l(M,N),M}function U0(b,N){var S=this,M=S.ready().then(function(){var q=S._dbInfo,U;try{U=localStorage.key(b)}catch(ee){U=null}return U&&(U=U.substring(q.keyPrefix.length)),U});return l(M,N),M}function Ar(b){var N=this,S=N.ready().then(function(){for(var M=N._dbInfo,q=localStorage.length,U=[],ee=0;ee<q;ee++){var ae=localStorage.key(ee);ae.indexOf(M.keyPrefix)===0&&U.push(ae.substring(M.keyPrefix.length))}return U});return l(S,b),S}function bi(b){var N=this,S=N.keys().then(function(M){return M.length});return l(S,b),S}function $0(b,N){var S=this;b=v(b);var M=S.ready().then(function(){var q=S._dbInfo;localStorage.removeItem(q.keyPrefix+b)});return l(M,N),M}function H0(b,N,S){var M=this;b=v(b);var q=M.ready().then(function(){N===void 0&&(N=null);var U=N;return new x(function(ee,ae){var ce=M._dbInfo;ce.serializer.serialize(N,function(ue,le){if(le)ae(le);else try{localStorage.setItem(ce.keyPrefix+b,ue),ee(U)}catch(ge){(ge.name==="QuotaExceededError"||ge.name==="NS_ERROR_DOM_QUOTA_REACHED")&&ae(ge),ae(ge)}})})});return l(q,S),q}function z0(b,N){if(N=E.apply(this,arguments),b=typeof b!="function"&&b||{},!b.name){var S=this.config();b.name=b.name||S.name,b.storeName=b.storeName||S.storeName}var M=this,q;return b.name?q=new x(function(U){b.storeName?U(Er(b,M._defaultConfig)):U(b.name+"/")}).then(function(U){for(var ee=localStorage.length-1;ee>=0;ee--){var ae=localStorage.key(ee);ae.indexOf(U)===0&&localStorage.removeItem(ae)}}):q=x.reject("Invalid arguments"),l(q,N),q}var q0={_driver:"localStorageWrapper",_initStorage:N0,_support:bt(),iterate:M0,getItem:k0,setItem:H0,removeItem:$0,clear:L0,length:bi,key:U0,keys:Ar,dropInstance:z0},W0=function(N,S){return N===S||typeof N=="number"&&typeof S=="number"&&isNaN(N)&&isNaN(S)},Yt=function(N,S){for(var M=N.length,q=0;q<M;){if(W0(N[q],S))return!0;q++}return!1},Ci=Array.isArray||function(b){return Object.prototype.toString.call(b)==="[object Array]"},wr={},Bi={},ir={INDEXEDDB:Oe,WEBSQL:ft,LOCALSTORAGE:q0},V0=[ir.INDEXEDDB._driver,ir.WEBSQL._driver,ir.LOCALSTORAGE._driver],Xr=["dropInstance"],Tn=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Xr),G0={description:"",driver:V0.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function j0(b,N){b[N]=function(){var S=arguments;return b.ready().then(function(){return b[N].apply(b,S)})}}function nt(){for(var b=1;b<arguments.length;b++){var N=arguments[b];if(N)for(var S in N)N.hasOwnProperty(S)&&(Ci(N[S])?arguments[0][S]=N[S].slice():arguments[0][S]=N[S])}return arguments[0]}var K0=function(){function b(N){s(this,b);for(var S in ir)if(ir.hasOwnProperty(S)){var M=ir[S],q=M._driver;this[S]=q,wr[q]||this.defineDriver(M)}this._defaultConfig=nt({},G0),this._config=nt({},this._defaultConfig,N),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return b.prototype.config=function(S){if((typeof S=="undefined"?"undefined":o(S))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var M in S){if(M==="storeName"&&(S[M]=S[M].replace(/\W/g,"_")),M==="version"&&typeof S[M]!="number")return new Error("Database version must be a number.");this._config[M]=S[M]}return"driver"in S&&S.driver?this.setDriver(this._config.driver):!0}else return typeof S=="string"?this._config[S]:this._config},b.prototype.defineDriver=function(S,M,q){var U=new x(function(ee,ae){try{var ce=S._driver,ue=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!S._driver){ae(ue);return}for(var le=Tn.concat("_initStorage"),ge=0,Se=le.length;ge<Se;ge++){var Ue=le[ge],$e=!Yt(Xr,Ue);if(($e||S[Ue])&&typeof S[Ue]!="function"){ae(ue);return}}var Qe=function(){for(var g=function(de){return function(){var xe=new Error("Method "+de+" is not implemented by the current driver"),qe=x.reject(xe);return l(qe,arguments[arguments.length-1]),qe}},B=0,$=Xr.length;B<$;B++){var ne=Xr[B];S[ne]||(S[ne]=g(ne))}};Qe();var Xe=function(g){wr[ce]&&console.info("Redefining LocalForage driver: "+ce),wr[ce]=S,Bi[ce]=g,ee()};"_support"in S?S._support&&typeof S._support=="function"?S._support().then(Xe,ae):Xe(!!S._support):Xe(!0)}catch(p){ae(p)}});return m(U,M,q),U},b.prototype.driver=function(){return this._driver||null},b.prototype.getDriver=function(S,M,q){var U=wr[S]?x.resolve(wr[S]):x.reject(new Error("Driver not found."));return m(U,M,q),U},b.prototype.getSerializer=function(S){var M=x.resolve(gr);return m(M,S),M},b.prototype.ready=function(S){var M=this,q=M._driverSet.then(function(){return M._ready===null&&(M._ready=M._initDriver()),M._ready});return m(q,S,S),q},b.prototype.setDriver=function(S,M,q){var U=this;Ci(S)||(S=[S]);var ee=this._getSupportedDrivers(S);function ae(){U._config.driver=U.driver()}function ce(ge){return U._extend(ge),ae(),U._ready=U._initStorage(U._config),U._ready}function ue(ge){return function(){var Se=0;function Ue(){for(;Se<ge.length;){var $e=ge[Se];return Se++,U._dbInfo=null,U._ready=null,U.getDriver($e).then(ce).catch(Ue)}ae();var Qe=new Error("No available storage method found.");return U._driverSet=x.reject(Qe),U._driverSet}return Ue()}}var le=this._driverSet!==null?this._driverSet.catch(function(){return x.resolve()}):x.resolve();return this._driverSet=le.then(function(){var ge=ee[0];return U._dbInfo=null,U._ready=null,U.getDriver(ge).then(function(Se){U._driver=Se._driver,ae(),U._wrapLibraryMethodsWithReady(),U._initDriver=ue(ee)})}).catch(function(){ae();var ge=new Error("No available storage method found.");return U._driverSet=x.reject(ge),U._driverSet}),m(this._driverSet,M,q),this._driverSet},b.prototype.supports=function(S){return!!Bi[S]},b.prototype._extend=function(S){nt(this,S)},b.prototype._getSupportedDrivers=function(S){for(var M=[],q=0,U=S.length;q<U;q++){var ee=S[q];this.supports(ee)&&M.push(ee)}return M},b.prototype._wrapLibraryMethodsWithReady=function(){for(var S=0,M=Tn.length;S<M;S++)j0(this,Tn[S])},b.prototype.createInstance=function(S){return new b(S)},b}(),Y0=new K0;n.exports=Y0},{3:3}]},{},[4])(4)})})(Ef);var Ry=Ef.exports;const ct=dt(Ry);ct.config(We({driver:[ct.INDEXEDDB,ct.LOCALSTORAGE],name:"SGP7000",size:4980736,storeName:"keyvaluepairs",version:1,description:"SGP7000"},((Vf=window.meta.storage)==null?void 0:Vf.config)||{}));function Iy(){return{getKey:v=>De(this,null,function*(){return yield ct.key(v)}),getKeys:()=>De(this,null,function*(){return yield ct.keys()}),getItem:v=>De(this,null,function*(){if(v)return yield ct.getItem(v)}),setItem:(v,E)=>De(this,null,function*(){if(v)return yield ct.setItem(v,E)}),removeItem:v=>De(this,null,function*(){if(v)return yield ct.removeItem(v)}),clearItems:()=>De(this,null,function*(){return yield ct.clear()}),iterateItems:(v,E)=>De(this,null,function*(){if(v)return yield ct.iterate(v,E)}),getReady:()=>De(this,null,function*(){return yield ct.ready()}),getLength:()=>De(this,null,function*(){return yield ct.length()}),getDriver:()=>De(this,null,function*(){return yield ct.driver()}),setDriver:v=>De(this,null,function*(){if(v)return yield ct.setDriver(v)}),setConfig:v=>De(this,null,function*(){if(v)return yield ct.config(v)}),dropInstance:v=>De(this,null,function*(){if(v)return yield ct.dropInstance(v)}),createInstance:v=>De(this,null,function*(){if(v)return yield ct.createInstance(v)})}}const Ty="THREED_LOG_BUFFER",Oy="THREED_CURRSCENE",Py="THREED_ACTIVE_MENU",Ny="THREED_PIXEL_RATIO",Ai="THREED_MODEL_DBNAME",_0="THREED_MODEL_DBSTORE",Ly="THREED_SCENE_PREVIEW",b0="THREED_MODEL_LOAD_KEY",En="THREED_PREVIEW_URL_KEY",ky="THREED_ADDON_EDITOR_JSON",My="THREED_SCENE_STORAGE_SUFFIX",C0={step:.1},Uy=80,Af=30,$y=1e3,Hy=1200,zy=3e5,qy="三维测试",Wy="灯光",Vy=1,Gy=["环境光","平行光","点光源","聚光灯","半球光","平面光"],wf=new Set(["syncStatus","disposeTargets","statusMaterials","syncPanelPlacement"]),jy=["AxesHelper","GridHelper","Box3Helper","PerspectiveCamera"],_f=new Set(["GridHelper","AxesHelper","CameraHelper","SpotLightHelper","PointLightHelper","TransformControls","HemisphereLightHelper","DirectionalLightHelper","TransformControlsPlane"]),bf=new Set(["CSS2DObject","CSS3DObject"]),Ky=Object.assign({"/src/views/threed/models/pd-sensor.js":Fy}),Yy=Object.assign({}),Xy={环境光:()=>new Ne.THREE.AmbientLight(16777215,1),平行光:()=>new Ne.THREE.DirectionalLight(16777215,1),点光源:()=>new Ne.THREE.PointLight(16777215,1,0,0),聚光灯:()=>new Ne.THREE.SpotLight(16777215,1,0,Math.PI/6,0,0),半球光:()=>new Ne.THREE.HemisphereLight(16777215,0,1),平面光:()=>new Ne.THREE.RectAreaLight(16777215,1,100,100)},Jy=[{name:"荧光流动",commonUniforms:!0,vertex:"vUv-material",fragment:`
|
|
53
|
+
*/(function(t,e){(function(r){t.exports=r()})(function(){return function r(n,i,o){function s(c,f){if(!i[c]){if(!n[c]){var x=typeof yn=="function"&&yn;if(!f&&x)return x(c,!0);if(a)return a(c,!0);var h=new Error("Cannot find module '"+c+"'");throw h.code="MODULE_NOT_FOUND",h}var v=i[c]={exports:{}};n[c][0].call(v.exports,function(m){var E=n[c][1][m];return s(E||m)},v,v.exports,r,n,i,o)}return i[c].exports}for(var a=typeof yn=="function"&&yn,u=0;u<o.length;u++)s(o[u]);return s}({1:[function(r,n,i){(function(o){var s=o.MutationObserver||o.WebKitMutationObserver,a;if(s){var u=0,c=new s(m),f=o.document.createTextNode("");c.observe(f,{characterData:!0}),a=function(){f.data=u=++u%2}}else if(!o.setImmediate&&typeof o.MessageChannel!="undefined"){var x=new o.MessageChannel;x.port1.onmessage=m,a=function(){x.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?a=function(){var A=o.document.createElement("script");A.onreadystatechange=function(){m(),A.onreadystatechange=null,A.parentNode.removeChild(A),A=null},o.document.documentElement.appendChild(A)}:a=function(){setTimeout(m,0)};var h,v=[];function m(){h=!0;for(var A,R,w=v.length;w;){for(R=v,v=[],A=-1;++A<w;)R[A]();w=v.length}h=!1}n.exports=E;function E(A){v.push(A)===1&&!h&&a()}}).call(this,typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],2:[function(r,n,i){var o=r(1);function s(){}var a={},u=["REJECTED"],c=["FULFILLED"],f=["PENDING"];n.exports=x;function x(D){if(typeof D!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,D!==s&&E(this,D)}x.prototype.catch=function(D){return this.then(null,D)},x.prototype.then=function(D,O){if(typeof D!="function"&&this.state===c||typeof O!="function"&&this.state===u)return this;var L=new this.constructor(s);if(this.state!==f){var z=this.state===c?D:O;v(L,z,this.outcome)}else this.queue.push(new h(L,D,O));return L};function h(D,O,L){this.promise=D,typeof O=="function"&&(this.onFulfilled=O,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}h.prototype.callFulfilled=function(D){a.resolve(this.promise,D)},h.prototype.otherCallFulfilled=function(D){v(this.promise,this.onFulfilled,D)},h.prototype.callRejected=function(D){a.reject(this.promise,D)},h.prototype.otherCallRejected=function(D){v(this.promise,this.onRejected,D)};function v(D,O,L){o(function(){var z;try{z=O(L)}catch(Q){return a.reject(D,Q)}z===D?a.reject(D,new TypeError("Cannot resolve promise with itself")):a.resolve(D,z)})}a.resolve=function(D,O){var L=A(m,O);if(L.status==="error")return a.reject(D,L.value);var z=L.value;if(z)E(D,z);else{D.state=c,D.outcome=O;for(var Q=-1,P=D.queue.length;++Q<P;)D.queue[Q].callFulfilled(O)}return D},a.reject=function(D,O){D.state=u,D.outcome=O;for(var L=-1,z=D.queue.length;++L<z;)D.queue[L].callRejected(O);return D};function m(D){var O=D&&D.then;if(D&&(typeof D=="object"||typeof D=="function")&&typeof O=="function")return function(){O.apply(D,arguments)}}function E(D,O){var L=!1;function z(V){L||(L=!0,a.reject(D,V))}function Q(V){L||(L=!0,a.resolve(D,V))}function P(){O(Q,z)}var k=A(P);k.status==="error"&&z(k.value)}function A(D,O){var L={};try{L.value=D(O),L.status="success"}catch(z){L.status="error",L.value=z}return L}x.resolve=R;function R(D){return D instanceof this?D:a.resolve(new this(s),D)}x.reject=w;function w(D){var O=new this(s);return a.reject(O,D)}x.all=_;function _(D){var O=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=D.length,z=!1;if(!L)return this.resolve([]);for(var Q=new Array(L),P=0,k=-1,V=new this(s);++k<L;)X(D[k],k);return V;function X(ee,Y){O.resolve(ee).then(Z,function(oe){z||(z=!0,a.reject(V,oe))});function Z(oe){Q[Y]=oe,++P===L&&!z&&(z=!0,a.resolve(V,Q))}}}x.race=B;function B(D){var O=this;if(Object.prototype.toString.call(D)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=D.length,z=!1;if(!L)return this.resolve([]);for(var Q=-1,P=new this(s);++Q<L;)k(D[Q]);return P;function k(V){O.resolve(V).then(function(X){z||(z=!0,a.resolve(P,X))},function(X){z||(z=!0,a.reject(P,X))})}}},{1:1}],3:[function(r,n,i){(function(o){typeof o.Promise!="function"&&(o.Promise=r(2))}).call(this,typeof ve!="undefined"?ve:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{2:2}],4:[function(r,n,i){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(b){return typeof b}:function(b){return b&&typeof Symbol=="function"&&b.constructor===Symbol&&b!==Symbol.prototype?"symbol":typeof b};function s(b,N){if(!(b instanceof N))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB!="undefined")return indexedDB;if(typeof webkitIndexedDB!="undefined")return webkitIndexedDB;if(typeof mozIndexedDB!="undefined")return mozIndexedDB;if(typeof OIndexedDB!="undefined")return OIndexedDB;if(typeof msIndexedDB!="undefined")return msIndexedDB}catch(b){return}}var u=a();function c(){try{if(!u||!u.open)return!1;var b=typeof openDatabase!="undefined"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),N=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!b||N)&&typeof indexedDB!="undefined"&&typeof IDBKeyRange!="undefined"}catch(S){return!1}}function f(b,N){b=b||[],N=N||{};try{return new Blob(b,N)}catch(U){if(U.name!=="TypeError")throw U;for(var S=typeof BlobBuilder!="undefined"?BlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:WebKitBlobBuilder,M=new S,q=0;q<b.length;q+=1)M.append(b[q]);return M.getBlob(N.type)}}typeof Promise=="undefined"&&r(3);var x=Promise;function h(b,N){N&&b.then(function(S){N(null,S)},function(S){N(S)})}function v(b,N,S){typeof N=="function"&&b.then(N),typeof S=="function"&&b.catch(S)}function m(b){return typeof b!="string"&&(console.warn(b+" used as a key, but it is not a string."),b=String(b)),b}function E(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var A="local-forage-detect-blob-support",R=void 0,w={},_=Object.prototype.toString,B="readonly",D="readwrite";function O(b){for(var N=b.length,S=new ArrayBuffer(N),M=new Uint8Array(S),q=0;q<N;q++)M[q]=b.charCodeAt(q);return S}function L(b){return new x(function(N){var S=b.transaction(A,D),M=f([""]);S.objectStore(A).put(M,"key"),S.onabort=function(q){q.preventDefault(),q.stopPropagation(),N(!1)},S.oncomplete=function(){var q=navigator.userAgent.match(/Chrome\/(\d+)/),U=navigator.userAgent.match(/Edge\//);N(U||!q||parseInt(q[1],10)>=43)}}).catch(function(){return!1})}function z(b){return typeof R=="boolean"?x.resolve(R):L(b).then(function(N){return R=N,R})}function Q(b){var N=w[b.name],S={};S.promise=new x(function(M,q){S.resolve=M,S.reject=q}),N.deferredOperations.push(S),N.dbReady?N.dbReady=N.dbReady.then(function(){return S.promise}):N.dbReady=S.promise}function P(b){var N=w[b.name],S=N.deferredOperations.pop();if(S)return S.resolve(),S.promise}function k(b,N){var S=w[b.name],M=S.deferredOperations.pop();if(M)return M.reject(N),M.promise}function V(b,N){return new x(function(S,M){if(w[b.name]=w[b.name]||j(),b.db)if(N)Q(b),b.db.close();else return S(b.db);var q=[b.name];N&&q.push(b.version);var U=u.open.apply(u,q);N&&(U.onupgradeneeded=function(te){var ae=U.result;try{ae.createObjectStore(b.storeName),te.oldVersion<=1&&ae.createObjectStore(A)}catch(ce){if(ce.name==="ConstraintError")console.warn('The database "'+b.name+'" has been upgraded from version '+te.oldVersion+" to version "+te.newVersion+', but the storage "'+b.storeName+'" already exists.');else throw ce}}),U.onerror=function(te){te.preventDefault(),M(U.error)},U.onsuccess=function(){var te=U.result;te.onversionchange=function(ae){ae.target.close()},S(te),P(b)}})}function X(b){return V(b,!1)}function ee(b){return V(b,!0)}function Y(b,N){if(!b.db)return!0;var S=!b.db.objectStoreNames.contains(b.storeName),M=b.version<b.db.version,q=b.version>b.db.version;if(M&&(b.version!==N&&console.warn('The database "'+b.name+`" can't be downgraded from version `+b.db.version+" to version "+b.version+"."),b.version=b.db.version),q||S){if(S){var U=b.db.version+1;U>b.version&&(b.version=U)}return!0}return!1}function Z(b){return new x(function(N,S){var M=new FileReader;M.onerror=S,M.onloadend=function(q){var U=btoa(q.target.result||"");N({__local_forage_encoded_blob:!0,data:U,type:b.type})},M.readAsBinaryString(b)})}function oe(b){var N=O(atob(b.data));return f([N],{type:b.type})}function ie(b){return b&&b.__local_forage_encoded_blob}function he(b){var N=this,S=N._initReady().then(function(){var M=w[N._dbInfo.name];if(M&&M.dbReady)return M.dbReady});return v(S,b,b),S}function fe(b){Q(b);for(var N=w[b.name],S=N.forages,M=0;M<S.length;M++){var q=S[M];q._dbInfo.db&&(q._dbInfo.db.close(),q._dbInfo.db=null)}return b.db=null,X(b).then(function(U){return b.db=U,Y(b)?ee(b):U}).then(function(U){b.db=N.db=U;for(var te=0;te<S.length;te++)S[te]._dbInfo.db=U}).catch(function(U){throw k(b,U),U})}function H(b,N,S,M){M===void 0&&(M=1);try{var q=b.db.transaction(b.storeName,N);S(null,q)}catch(U){if(M>0&&(!b.db||U.name==="InvalidStateError"||U.name==="NotFoundError"))return x.resolve().then(function(){if(!b.db||U.name==="NotFoundError"&&!b.db.objectStoreNames.contains(b.storeName)&&b.version<=b.db.version)return b.db&&(b.version=b.db.version+1),ee(b)}).then(function(){return fe(b).then(function(){H(b,N,S,M-1)})}).catch(S);S(U)}}function j(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function re(b){var N=this,S={db:null};if(b)for(var M in b)S[M]=b[M];var q=w[S.name];q||(q=j(),w[S.name]=q),q.forages.push(N),N._initReady||(N._initReady=N.ready,N.ready=he);var U=[];function te(){return x.resolve()}for(var ae=0;ae<q.forages.length;ae++){var ce=q.forages[ae];ce!==N&&U.push(ce._initReady().catch(te))}var ue=q.forages.slice(0);return x.all(U).then(function(){return S.db=q.db,X(S)}).then(function(le){return S.db=le,Y(S,N._defaultConfig.version)?ee(S):le}).then(function(le){S.db=q.db=le,N._dbInfo=S;for(var ge=0;ge<ue.length;ge++){var Se=ue[ge];Se!==N&&(Se._dbInfo.db=S.db,Se._dbInfo.version=S.version)}})}function J(b,N){var S=this;b=m(b);var M=new x(function(q,U){S.ready().then(function(){H(S._dbInfo,B,function(te,ae){if(te)return U(te);try{var ce=ae.objectStore(S._dbInfo.storeName),ue=ce.get(b);ue.onsuccess=function(){var le=ue.result;le===void 0&&(le=null),ie(le)&&(le=oe(le)),q(le)},ue.onerror=function(){U(ue.error)}}catch(le){U(le)}})}).catch(U)});return h(M,N),M}function Ae(b,N){var S=this,M=new x(function(q,U){S.ready().then(function(){H(S._dbInfo,B,function(te,ae){if(te)return U(te);try{var ce=ae.objectStore(S._dbInfo.storeName),ue=ce.openCursor(),le=1;ue.onsuccess=function(){var ge=ue.result;if(ge){var Se=ge.value;ie(Se)&&(Se=oe(Se));var Ue=b(Se,ge.key,le++);Ue!==void 0?q(Ue):ge.continue()}else q()},ue.onerror=function(){U(ue.error)}}catch(ge){U(ge)}})}).catch(U)});return h(M,N),M}function we(b,N,S){var M=this;b=m(b);var q=new x(function(U,te){var ae;M.ready().then(function(){return ae=M._dbInfo,_.call(N)==="[object Blob]"?z(ae.db).then(function(ce){return ce?N:Z(N)}):N}).then(function(ce){H(M._dbInfo,D,function(ue,le){if(ue)return te(ue);try{var ge=le.objectStore(M._dbInfo.storeName);ce===null&&(ce=void 0);var Se=ge.put(ce,b);le.oncomplete=function(){ce===void 0&&(ce=null),U(ce)},le.onabort=le.onerror=function(){var Ue=Se.error?Se.error:Se.transaction.error;te(Ue)}}catch(Ue){te(Ue)}})}).catch(te)});return h(q,S),q}function Me(b,N){var S=this;b=m(b);var M=new x(function(q,U){S.ready().then(function(){H(S._dbInfo,D,function(te,ae){if(te)return U(te);try{var ce=ae.objectStore(S._dbInfo.storeName),ue=ce.delete(b);ae.oncomplete=function(){q()},ae.onerror=function(){U(ue.error)},ae.onabort=function(){var le=ue.error?ue.error:ue.transaction.error;U(le)}}catch(le){U(le)}})}).catch(U)});return h(M,N),M}function ye(b){var N=this,S=new x(function(M,q){N.ready().then(function(){H(N._dbInfo,D,function(U,te){if(U)return q(U);try{var ae=te.objectStore(N._dbInfo.storeName),ce=ae.clear();te.oncomplete=function(){M()},te.onabort=te.onerror=function(){var ue=ce.error?ce.error:ce.transaction.error;q(ue)}}catch(ue){q(ue)}})}).catch(q)});return h(S,b),S}function _e(b){var N=this,S=new x(function(M,q){N.ready().then(function(){H(N._dbInfo,B,function(U,te){if(U)return q(U);try{var ae=te.objectStore(N._dbInfo.storeName),ce=ae.count();ce.onsuccess=function(){M(ce.result)},ce.onerror=function(){q(ce.error)}}catch(ue){q(ue)}})}).catch(q)});return h(S,b),S}function Pe(b,N){var S=this,M=new x(function(q,U){if(b<0){q(null);return}S.ready().then(function(){H(S._dbInfo,B,function(te,ae){if(te)return U(te);try{var ce=ae.objectStore(S._dbInfo.storeName),ue=!1,le=ce.openKeyCursor();le.onsuccess=function(){var ge=le.result;if(!ge){q(null);return}b===0||ue?q(ge.key):(ue=!0,ge.advance(b))},le.onerror=function(){U(le.error)}}catch(ge){U(ge)}})}).catch(U)});return h(M,N),M}function Ge(b){var N=this,S=new x(function(M,q){N.ready().then(function(){H(N._dbInfo,B,function(U,te){if(U)return q(U);try{var ae=te.objectStore(N._dbInfo.storeName),ce=ae.openKeyCursor(),ue=[];ce.onsuccess=function(){var le=ce.result;if(!le){M(ue);return}ue.push(le.key),le.continue()},ce.onerror=function(){q(ce.error)}}catch(le){q(le)}})}).catch(q)});return h(S,b),S}function Ve(b,N){N=E.apply(this,arguments);var S=this.config();b=typeof b!="function"&&b||{},b.name||(b.name=b.name||S.name,b.storeName=b.storeName||S.storeName);var M=this,q;if(!b.name)q=x.reject("Invalid arguments");else{var U=b.name===S.name&&M._dbInfo.db,te=U?x.resolve(M._dbInfo.db):X(b).then(function(ae){var ce=w[b.name],ue=ce.forages;ce.db=ae;for(var le=0;le<ue.length;le++)ue[le]._dbInfo.db=ae;return ae});b.storeName?q=te.then(function(ae){if(ae.objectStoreNames.contains(b.storeName)){var ce=ae.version+1;Q(b);var ue=w[b.name],le=ue.forages;ae.close();for(var ge=0;ge<le.length;ge++){var Se=le[ge];Se._dbInfo.db=null,Se._dbInfo.version=ce}var Ue=new x(function($e,Ze){var Xe=u.open(b.name,ce);Xe.onerror=function(p){var g=Xe.result;g.close(),Ze(p)},Xe.onupgradeneeded=function(){var p=Xe.result;p.deleteObjectStore(b.storeName)},Xe.onsuccess=function(){var p=Xe.result;p.close(),$e(p)}});return Ue.then(function($e){ue.db=$e;for(var Ze=0;Ze<le.length;Ze++){var Xe=le[Ze];Xe._dbInfo.db=$e,P(Xe._dbInfo)}}).catch(function($e){throw(k(b,$e)||x.resolve()).catch(function(){}),$e})}}):q=te.then(function(ae){Q(b);var ce=w[b.name],ue=ce.forages;ae.close();for(var le=0;le<ue.length;le++){var ge=ue[le];ge._dbInfo.db=null}var Se=new x(function(Ue,$e){var Ze=u.deleteDatabase(b.name);Ze.onerror=function(){var Xe=Ze.result;Xe&&Xe.close(),$e(Ze.error)},Ze.onblocked=function(){console.warn('dropInstance blocked for database "'+b.name+'" until all open connections are closed')},Ze.onsuccess=function(){var Xe=Ze.result;Xe&&Xe.close(),Ue(Xe)}});return Se.then(function(Ue){ce.db=Ue;for(var $e=0;$e<ue.length;$e++){var Ze=ue[$e];P(Ze._dbInfo)}}).catch(function(Ue){throw(k(b,Ue)||x.resolve()).catch(function(){}),Ue})})}return h(q,N),q}var Oe={_driver:"asyncStorage",_initStorage:re,_support:c(),iterate:Ae,getItem:J,setItem:we,removeItem:Me,clear:ye,length:_e,key:Pe,keys:Ge,dropInstance:Ve};function je(){return typeof openDatabase=="function"}var Ke="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",F="~~local_forage_type~",l=/^~~local_forage_type~([^~]+)~/,d="__lfsc__:",y=d.length,T="arbf",W="blob",K="si08",pe="ui08",Ce="uic8",be="si16",Be="si32",Le="ur16",mt="ui32",Ht="fl32",zt="fl64",Rt=y+T.length,qt=Object.prototype.toString;function zr(b){var N=b.length*.75,S=b.length,M,q=0,U,te,ae,ce;b[b.length-1]==="="&&(N--,b[b.length-2]==="="&&N--);var ue=new ArrayBuffer(N),le=new Uint8Array(ue);for(M=0;M<S;M+=4)U=Ke.indexOf(b[M]),te=Ke.indexOf(b[M+1]),ae=Ke.indexOf(b[M+2]),ce=Ke.indexOf(b[M+3]),le[q++]=U<<2|te>>4,le[q++]=(te&15)<<4|ae>>2,le[q++]=(ae&3)<<6|ce&63;return ue}function Wt(b){var N=new Uint8Array(b),S="",M;for(M=0;M<N.length;M+=3)S+=Ke[N[M]>>2],S+=Ke[(N[M]&3)<<4|N[M+1]>>4],S+=Ke[(N[M+1]&15)<<2|N[M+2]>>6],S+=Ke[N[M+2]&63];return N.length%3===2?S=S.substring(0,S.length-1)+"=":N.length%3===1&&(S=S.substring(0,S.length-2)+"=="),S}function qr(b,N){var S="";if(b&&(S=qt.call(b)),b&&(S==="[object ArrayBuffer]"||b.buffer&&qt.call(b.buffer)==="[object ArrayBuffer]")){var M,q=d;b instanceof ArrayBuffer?(M=b,q+=T):(M=b.buffer,S==="[object Int8Array]"?q+=K:S==="[object Uint8Array]"?q+=pe:S==="[object Uint8ClampedArray]"?q+=Ce:S==="[object Int16Array]"?q+=be:S==="[object Uint16Array]"?q+=Le:S==="[object Int32Array]"?q+=Be:S==="[object Uint32Array]"?q+=mt:S==="[object Float32Array]"?q+=Ht:S==="[object Float64Array]"?q+=zt:N(new Error("Failed to get type for BinaryArray"))),N(q+Wt(M))}else if(S==="[object Blob]"){var U=new FileReader;U.onload=function(){var te=F+b.type+"~"+Wt(this.result);N(d+W+te)},U.readAsArrayBuffer(b)}else try{N(JSON.stringify(b))}catch(te){console.error("Couldn't convert value into a JSON string: ",b),N(null,te)}}function Wr(b){if(b.substring(0,y)!==d)return JSON.parse(b);var N=b.substring(Rt),S=b.substring(y,Rt),M;if(S===W&&l.test(N)){var q=N.match(l);M=q[1],N=N.substring(q[0].length)}var U=zr(N);switch(S){case T:return U;case W:return f([U],{type:M});case K:return new Int8Array(U);case pe:return new Uint8Array(U);case Ce:return new Uint8ClampedArray(U);case be:return new Int16Array(U);case Le:return new Uint16Array(U);case Be:return new Int32Array(U);case mt:return new Uint32Array(U);case Ht:return new Float32Array(U);case zt:return new Float64Array(U);default:throw new Error("Unkown type: "+S)}}var gr={serialize:qr,deserialize:Wr,stringToBuffer:zr,bufferToString:Wt};function nr(b,N,S,M){b.executeSql("CREATE TABLE IF NOT EXISTS "+N.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],S,M)}function bn(b){var N=this,S={db:null};if(b)for(var M in b)S[M]=typeof b[M]!="string"?b[M].toString():b[M];var q=new x(function(U,te){try{S.db=openDatabase(S.name,String(S.version),S.description,S.size)}catch(ae){return te(ae)}S.db.transaction(function(ae){nr(ae,S,function(){N._dbInfo=S,U()},function(ce,ue){te(ue)})},te)});return S.serializer=gr,q}function Et(b,N,S,M,q,U){b.executeSql(S,M,q,function(te,ae){ae.code===ae.SYNTAX_ERR?te.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[N.storeName],function(ce,ue){ue.rows.length?U(ce,ae):nr(ce,N,function(){ce.executeSql(S,M,q,U)},U)},U):U(te,ae)},U)}function Cn(b,N){var S=this;b=m(b);var M=new x(function(q,U){S.ready().then(function(){var te=S._dbInfo;te.db.transaction(function(ae){Et(ae,te,"SELECT * FROM "+te.storeName+" WHERE key = ? LIMIT 1",[b],function(ce,ue){var le=ue.rows.length?ue.rows.item(0).value:null;le&&(le=te.serializer.deserialize(le)),q(le)},function(ce,ue){U(ue)})})}).catch(U)});return h(M,N),M}function Vr(b,N){var S=this,M=new x(function(q,U){S.ready().then(function(){var te=S._dbInfo;te.db.transaction(function(ae){Et(ae,te,"SELECT * FROM "+te.storeName,[],function(ce,ue){for(var le=ue.rows,ge=le.length,Se=0;Se<ge;Se++){var Ue=le.item(Se),$e=Ue.value;if($e&&($e=te.serializer.deserialize($e)),$e=b($e,Ue.key,Se+1),$e!==void 0){q($e);return}}q()},function(ce,ue){U(ue)})})}).catch(U)});return h(M,N),M}function Gr(b,N,S,M){var q=this;b=m(b);var U=new x(function(te,ae){q.ready().then(function(){N===void 0&&(N=null);var ce=N,ue=q._dbInfo;ue.serializer.serialize(N,function(le,ge){ge?ae(ge):ue.db.transaction(function(Se){Et(Se,ue,"INSERT OR REPLACE INTO "+ue.storeName+" (key, value) VALUES (?, ?)",[b,le],function(){te(ce)},function(Ue,$e){ae($e)})},function(Se){if(Se.code===Se.QUOTA_ERR){if(M>0){te(Gr.apply(q,[b,ce,S,M-1]));return}ae(Se)}})})}).catch(ae)});return h(U,S),U}function Bn(b,N,S){return Gr.apply(this,[b,N,S,1])}function Dn(b,N){var S=this;b=m(b);var M=new x(function(q,U){S.ready().then(function(){var te=S._dbInfo;te.db.transaction(function(ae){Et(ae,te,"DELETE FROM "+te.storeName+" WHERE key = ?",[b],function(){q()},function(ce,ue){U(ue)})})}).catch(U)});return h(M,N),M}function jr(b){var N=this,S=new x(function(M,q){N.ready().then(function(){var U=N._dbInfo;U.db.transaction(function(te){Et(te,U,"DELETE FROM "+U.storeName,[],function(){M()},function(ae,ce){q(ce)})})}).catch(q)});return h(S,b),S}function Sn(b){var N=this,S=new x(function(M,q){N.ready().then(function(){var U=N._dbInfo;U.db.transaction(function(te){Et(te,U,"SELECT COUNT(key) as c FROM "+U.storeName,[],function(ae,ce){var ue=ce.rows.item(0).c;M(ue)},function(ae,ce){q(ce)})})}).catch(q)});return h(S,b),S}function Fn(b,N){var S=this,M=new x(function(q,U){S.ready().then(function(){var te=S._dbInfo;te.db.transaction(function(ae){Et(ae,te,"SELECT key FROM "+te.storeName+" WHERE id = ? LIMIT 1",[b+1],function(ce,ue){var le=ue.rows.length?ue.rows.item(0).key:null;q(le)},function(ce,ue){U(ue)})})}).catch(U)});return h(M,N),M}function Kr(b){var N=this,S=new x(function(M,q){N.ready().then(function(){var U=N._dbInfo;U.db.transaction(function(te){Et(te,U,"SELECT key FROM "+U.storeName,[],function(ae,ce){for(var ue=[],le=0;le<ce.rows.length;le++)ue.push(ce.rows.item(le).key);M(ue)},function(ae,ce){q(ce)})})}).catch(q)});return h(S,b),S}function Rn(b){return new x(function(N,S){b.transaction(function(M){M.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(q,U){for(var te=[],ae=0;ae<U.rows.length;ae++)te.push(U.rows.item(ae).name);N({db:b,storeNames:te})},function(q,U){S(U)})},function(M){S(M)})})}function Yr(b,N){N=E.apply(this,arguments);var S=this.config();b=typeof b!="function"&&b||{},b.name||(b.name=b.name||S.name,b.storeName=b.storeName||S.storeName);var M=this,q;return b.name?q=new x(function(U){var te;b.name===S.name?te=M._dbInfo.db:te=openDatabase(b.name,"","",0),b.storeName?U({db:te,storeNames:[b.storeName]}):U(Rn(te))}).then(function(U){return new x(function(te,ae){U.db.transaction(function(ce){function ue(Ue){return new x(function($e,Ze){ce.executeSql("DROP TABLE IF EXISTS "+Ue,[],function(){$e()},function(Xe,p){Ze(p)})})}for(var le=[],ge=0,Se=U.storeNames.length;ge<Se;ge++)le.push(ue(U.storeNames[ge]));x.all(le).then(function(){te()}).catch(function(Ue){ae(Ue)})},function(ce){ae(ce)})})}):q=x.reject("Invalid arguments"),h(q,N),q}var ft={_driver:"webSQLStorage",_initStorage:bn,_support:je(),iterate:Vr,getItem:Cn,setItem:Bn,removeItem:Dn,clear:jr,length:Sn,key:Fn,keys:Kr,dropInstance:Yr};function bt(){try{return typeof localStorage!="undefined"&&"setItem"in localStorage&&!!localStorage.setItem}catch(b){return!1}}function Er(b,N){var S=b.name+"/";return b.storeName!==N.storeName&&(S+=b.storeName+"/"),S}function In(){var b="_localforage_support_test";try{return localStorage.setItem(b,!0),localStorage.removeItem(b),!1}catch(N){return!0}}function P0(){return!In()||localStorage.length>0}function N0(b){var N=this,S={};if(b)for(var M in b)S[M]=b[M];return S.keyPrefix=Er(b,N._defaultConfig),P0()?(N._dbInfo=S,S.serializer=gr,x.resolve()):x.reject()}function L0(b){var N=this,S=N.ready().then(function(){for(var M=N._dbInfo.keyPrefix,q=localStorage.length-1;q>=0;q--){var U=localStorage.key(q);U.indexOf(M)===0&&localStorage.removeItem(U)}});return h(S,b),S}function k0(b,N){var S=this;b=m(b);var M=S.ready().then(function(){var q=S._dbInfo,U=localStorage.getItem(q.keyPrefix+b);return U&&(U=q.serializer.deserialize(U)),U});return h(M,N),M}function M0(b,N){var S=this,M=S.ready().then(function(){for(var q=S._dbInfo,U=q.keyPrefix,te=U.length,ae=localStorage.length,ce=1,ue=0;ue<ae;ue++){var le=localStorage.key(ue);if(le.indexOf(U)===0){var ge=localStorage.getItem(le);if(ge&&(ge=q.serializer.deserialize(ge)),ge=b(ge,le.substring(te),ce++),ge!==void 0)return ge}}});return h(M,N),M}function U0(b,N){var S=this,M=S.ready().then(function(){var q=S._dbInfo,U;try{U=localStorage.key(b)}catch(te){U=null}return U&&(U=U.substring(q.keyPrefix.length)),U});return h(M,N),M}function Ar(b){var N=this,S=N.ready().then(function(){for(var M=N._dbInfo,q=localStorage.length,U=[],te=0;te<q;te++){var ae=localStorage.key(te);ae.indexOf(M.keyPrefix)===0&&U.push(ae.substring(M.keyPrefix.length))}return U});return h(S,b),S}function _i(b){var N=this,S=N.keys().then(function(M){return M.length});return h(S,b),S}function $0(b,N){var S=this;b=m(b);var M=S.ready().then(function(){var q=S._dbInfo;localStorage.removeItem(q.keyPrefix+b)});return h(M,N),M}function H0(b,N,S){var M=this;b=m(b);var q=M.ready().then(function(){N===void 0&&(N=null);var U=N;return new x(function(te,ae){var ce=M._dbInfo;ce.serializer.serialize(N,function(ue,le){if(le)ae(le);else try{localStorage.setItem(ce.keyPrefix+b,ue),te(U)}catch(ge){(ge.name==="QuotaExceededError"||ge.name==="NS_ERROR_DOM_QUOTA_REACHED")&&ae(ge),ae(ge)}})})});return h(q,S),q}function z0(b,N){if(N=E.apply(this,arguments),b=typeof b!="function"&&b||{},!b.name){var S=this.config();b.name=b.name||S.name,b.storeName=b.storeName||S.storeName}var M=this,q;return b.name?q=new x(function(U){b.storeName?U(Er(b,M._defaultConfig)):U(b.name+"/")}).then(function(U){for(var te=localStorage.length-1;te>=0;te--){var ae=localStorage.key(te);ae.indexOf(U)===0&&localStorage.removeItem(ae)}}):q=x.reject("Invalid arguments"),h(q,N),q}var q0={_driver:"localStorageWrapper",_initStorage:N0,_support:bt(),iterate:M0,getItem:k0,setItem:H0,removeItem:$0,clear:L0,length:_i,key:U0,keys:Ar,dropInstance:z0},W0=function(N,S){return N===S||typeof N=="number"&&typeof S=="number"&&isNaN(N)&&isNaN(S)},Yt=function(N,S){for(var M=N.length,q=0;q<M;){if(W0(N[q],S))return!0;q++}return!1},bi=Array.isArray||function(b){return Object.prototype.toString.call(b)==="[object Array]"},wr={},Ci={},ir={INDEXEDDB:Oe,WEBSQL:ft,LOCALSTORAGE:q0},V0=[ir.INDEXEDDB._driver,ir.WEBSQL._driver,ir.LOCALSTORAGE._driver],Xr=["dropInstance"],Tn=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(Xr),G0={description:"",driver:V0.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function j0(b,N){b[N]=function(){var S=arguments;return b.ready().then(function(){return b[N].apply(b,S)})}}function nt(){for(var b=1;b<arguments.length;b++){var N=arguments[b];if(N)for(var S in N)N.hasOwnProperty(S)&&(bi(N[S])?arguments[0][S]=N[S].slice():arguments[0][S]=N[S])}return arguments[0]}var K0=function(){function b(N){s(this,b);for(var S in ir)if(ir.hasOwnProperty(S)){var M=ir[S],q=M._driver;this[S]=q,wr[q]||this.defineDriver(M)}this._defaultConfig=nt({},G0),this._config=nt({},this._defaultConfig,N),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return b.prototype.config=function(S){if((typeof S=="undefined"?"undefined":o(S))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var M in S){if(M==="storeName"&&(S[M]=S[M].replace(/\W/g,"_")),M==="version"&&typeof S[M]!="number")return new Error("Database version must be a number.");this._config[M]=S[M]}return"driver"in S&&S.driver?this.setDriver(this._config.driver):!0}else return typeof S=="string"?this._config[S]:this._config},b.prototype.defineDriver=function(S,M,q){var U=new x(function(te,ae){try{var ce=S._driver,ue=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!S._driver){ae(ue);return}for(var le=Tn.concat("_initStorage"),ge=0,Se=le.length;ge<Se;ge++){var Ue=le[ge],$e=!Yt(Xr,Ue);if(($e||S[Ue])&&typeof S[Ue]!="function"){ae(ue);return}}var Ze=function(){for(var g=function(de){return function(){var xe=new Error("Method "+de+" is not implemented by the current driver"),qe=x.reject(xe);return h(qe,arguments[arguments.length-1]),qe}},C=0,$=Xr.length;C<$;C++){var ne=Xr[C];S[ne]||(S[ne]=g(ne))}};Ze();var Xe=function(g){wr[ce]&&console.info("Redefining LocalForage driver: "+ce),wr[ce]=S,Ci[ce]=g,te()};"_support"in S?S._support&&typeof S._support=="function"?S._support().then(Xe,ae):Xe(!!S._support):Xe(!0)}catch(p){ae(p)}});return v(U,M,q),U},b.prototype.driver=function(){return this._driver||null},b.prototype.getDriver=function(S,M,q){var U=wr[S]?x.resolve(wr[S]):x.reject(new Error("Driver not found."));return v(U,M,q),U},b.prototype.getSerializer=function(S){var M=x.resolve(gr);return v(M,S),M},b.prototype.ready=function(S){var M=this,q=M._driverSet.then(function(){return M._ready===null&&(M._ready=M._initDriver()),M._ready});return v(q,S,S),q},b.prototype.setDriver=function(S,M,q){var U=this;bi(S)||(S=[S]);var te=this._getSupportedDrivers(S);function ae(){U._config.driver=U.driver()}function ce(ge){return U._extend(ge),ae(),U._ready=U._initStorage(U._config),U._ready}function ue(ge){return function(){var Se=0;function Ue(){for(;Se<ge.length;){var $e=ge[Se];return Se++,U._dbInfo=null,U._ready=null,U.getDriver($e).then(ce).catch(Ue)}ae();var Ze=new Error("No available storage method found.");return U._driverSet=x.reject(Ze),U._driverSet}return Ue()}}var le=this._driverSet!==null?this._driverSet.catch(function(){return x.resolve()}):x.resolve();return this._driverSet=le.then(function(){var ge=te[0];return U._dbInfo=null,U._ready=null,U.getDriver(ge).then(function(Se){U._driver=Se._driver,ae(),U._wrapLibraryMethodsWithReady(),U._initDriver=ue(te)})}).catch(function(){ae();var ge=new Error("No available storage method found.");return U._driverSet=x.reject(ge),U._driverSet}),v(this._driverSet,M,q),this._driverSet},b.prototype.supports=function(S){return!!Ci[S]},b.prototype._extend=function(S){nt(this,S)},b.prototype._getSupportedDrivers=function(S){for(var M=[],q=0,U=S.length;q<U;q++){var te=S[q];this.supports(te)&&M.push(te)}return M},b.prototype._wrapLibraryMethodsWithReady=function(){for(var S=0,M=Tn.length;S<M;S++)j0(this,Tn[S])},b.prototype.createInstance=function(S){return new b(S)},b}(),Y0=new K0;n.exports=Y0},{3:3}]},{},[4])(4)})})(gf);var Ry=gf.exports;const ct=Je(Ry);ct.config(We({driver:[ct.INDEXEDDB,ct.LOCALSTORAGE],name:"SGP7000",size:4980736,storeName:"keyvaluepairs",version:1,description:"SGP7000"},((Vf=window.meta.storage)==null?void 0:Vf.config)||{}));function Iy(){return{getKey:m=>De(this,null,function*(){return yield ct.key(m)}),getKeys:()=>De(this,null,function*(){return yield ct.keys()}),getItem:m=>De(this,null,function*(){if(m)return yield ct.getItem(m)}),setItem:(m,E)=>De(this,null,function*(){if(m)return yield ct.setItem(m,E)}),removeItem:m=>De(this,null,function*(){if(m)return yield ct.removeItem(m)}),clearItems:()=>De(this,null,function*(){return yield ct.clear()}),iterateItems:(m,E)=>De(this,null,function*(){if(m)return yield ct.iterate(m,E)}),getReady:()=>De(this,null,function*(){return yield ct.ready()}),getLength:()=>De(this,null,function*(){return yield ct.length()}),getDriver:()=>De(this,null,function*(){return yield ct.driver()}),setDriver:m=>De(this,null,function*(){if(m)return yield ct.setDriver(m)}),setConfig:m=>De(this,null,function*(){if(m)return yield ct.config(m)}),dropInstance:m=>De(this,null,function*(){if(m)return yield ct.dropInstance(m)}),createInstance:m=>De(this,null,function*(){if(m)return yield ct.createInstance(m)})}}const Ty="THREED_LOG_BUFFER",Oy="THREED_CURRSCENE",Py="THREED_ACTIVE_MENU",Ny="THREED_PIXEL_RATIO",Ei="THREED_MODEL_DBNAME",_0="THREED_MODEL_DBSTORE",Ly="THREED_SCENE_PREVIEW",b0="THREED_MODEL_LOAD_KEY",En="THREED_PREVIEW_URL_KEY",ky="THREED_ADDON_EDITOR_JSON",My="THREED_SCENE_STORAGE_SUFFIX",C0={step:.1},Uy=80,Ef=30,$y=1e3,Hy=1200,zy=3e5,qy="三维测试",Wy="灯光",Vy=1,Gy=["环境光","平行光","点光源","聚光灯","半球光","平面光"],Af=new Set(["syncStatus","disposeTargets","statusMaterials","syncPanelPlacement"]),jy=["AxesHelper","GridHelper","Box3Helper","PerspectiveCamera"],wf=new Set(["GridHelper","AxesHelper","CameraHelper","SpotLightHelper","PointLightHelper","TransformControls","HemisphereLightHelper","DirectionalLightHelper","TransformControlsPlane"]),_f=new Set(["CSS2DObject","CSS3DObject"]),Ky=Object.assign({"/src/views/threed/models/pd-sensor.js":Fy}),Yy=Object.assign({}),Xy={环境光:()=>new ke.THREE.AmbientLight(16777215,1),平行光:()=>new ke.THREE.DirectionalLight(16777215,1),点光源:()=>new ke.THREE.PointLight(16777215,1,0,0),聚光灯:()=>new ke.THREE.SpotLight(16777215,1,0,Math.PI/6,0,0),半球光:()=>new ke.THREE.HemisphereLight(16777215,0,1),平面光:()=>new ke.THREE.RectAreaLight(16777215,1,100,100)},Jy=[{name:"荧光流动",commonUniforms:!0,vertex:"vUv-material",fragment:`
|
|
54
54
|
vec4 o = gl_FragColor.rgba;
|
|
55
55
|
vec2 u = gl_FragCoord.xy;
|
|
56
56
|
vec2 v = iResolution.xy;
|
|
@@ -88,4 +88,4 @@ usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:n,curr
|
|
|
88
88
|
uv *= 2.0 * ( cos(iTime * 2.0) -2.5);
|
|
89
89
|
float anim = sin(iTime * 12.0) * 0.1 + 1.0;
|
|
90
90
|
vec3 col = cheap_star(uv, anim) * vec3(0.35,0.2,0.15);
|
|
91
|
-
`,key:"col",commonFinish:!0,render:"iTime+speed"}];let An=null,St=null;const Cf=t=>(t==null?void 0:t.name)||(t==null?void 0:t.label)||"",Bf=(t={})=>Object.values(t).filter(e=>e&&(e.label||e.name)),Qy=Bf(Ky),Zy=Bf(Yy),ev=()=>({THREED_GUI_PARAMS:C0,THREED_LOG_BUFFER:Ty,THREED_CURRSCENE:Oy,THREED_ACTIVE_MENU:Py,THREED_PIXEL_RATIO:Ny,THREED_IMPORT_SIZE:Uy,THREED_LIGHT_TYPES:Gy,THREED_EXPORT_BATCH:Af,THREED_RELOAD_DELAY:$y,THREED_MODEL_DBNAME:Ai,THREED_MODEL_DBSTORE:_0,THREED_SCENE_PREVIEW:Ly,THREED_USER_DATA_KEYS:wf,THREED_MODEL_LOAD_KEY:b0,THREED_PREVIEW_URL_KEY:En,THREED_ADDON_EDITOR_JSON:ky,THREED_EXPORT_NODE_COUNT:Hy,THREED_DEFAULT_SCENE_NAME:qy,THREED_DEFAULT_ACTIVE_MENU:Wy,THREED_DEFAULT_PIXEL_RATIO:Vy,THREED_EXPORT_VERTEX_COUNT:zy,THREED_SCENE_EXCLUDE_TYPES:jy,THREED_EXPORT_EXCLUDE_TYPES:_f,THREED_EXPORT_RUNTIME_TYPES:bf,THREED_SCENE_STORAGE_SUFFIX:My});function tv(){const{createInstance:t,dropInstance:e}=Iy(),r="/";let n=[];const i=y=>{let T=URL.createObjectURL(y);return n.push(T),T},o=()=>{n.forEach(y=>URL.revokeObjectURL(y)),n=[]},s=()=>De(this,null,function*(){return yield c(),{clearRequest:a,getAllRequest:v,getRequest:m,status:!0,message:"数据库打开成功",DATABASE:St}}),a=y=>De(this,null,function*(){if(!y)return{status:!1,message:"删除失败"};yield c(),yield St.removeItem(y);const T=l();return T.list=T.list.filter(W=>W.name!==y),{status:!0,message:"删除成功"}}),h=(...T)=>De(this,[...T],function*(y=Ai){St=null,An=null,yield e({name:y,storeName:_0})}),c=()=>De(this,null,function*(){return St||(An||(An=t({name:Ai,storeName:_0}).then(y=>(St=y,y))),yield An)}),f=y=>{if(!y)return!1;const T=String(y.message||"");return y.name==="DataError"||T.includes("in-line keys")},x=()=>De(this,null,function*(){St=null,An=null,yield e({name:Ai}),yield c()}),l=()=>(window.threeEditorDB||(window.threeEditorDB={db:null,list:[]}),window.threeEditorDB),m=y=>De(this,null,function*(){if(!y)return{status:!1,message:"获取失败"};yield c();const T=yield St.getItem(y);if(T!=null&&T.blob&&!y)return{status:!0,message:"获取成功",url:i(T.blob)};if(!y)return{status:!1,message:"获取失败"};const W=yield fetch(y).then(Be=>Be.blob()),K={blob:W};try{yield St.setItem(y,K)}catch(Be){if(!f(Be))throw Be;yield x(),yield St.setItem(y,K)}const pe=l(),Ce=We({name:y},K),be=pe.list.findIndex(Be=>Be.name===y);return be>-1?pe.list.splice(be,1,Ce):pe.list.push(Ce),{status:!0,message:"文件缓存成功",url:i(W)}}),v=()=>De(this,null,function*(){const y=l();yield c();const T=[];return yield St.iterate((W,K)=>{T.push(Wt(We({},W||{}),{name:K}))}),y.list=T,{status:!0,message:"获取成功",data:T}}),E=()=>De(this,null,function*(){const y=yield Lt.getApi("/filehandle/scan",{path:Ls.threeModelPath,extension:"glb,gltf"}),{children:T}=y.res,W=[];if(T!=null&&T.length)for(const K of T)W.push({name:K.name,path:"/"+K.path});return W}),A=()=>window.GUI_PARAMS||C0,R=()=>window.threeEditor||null,w=()=>window.editorJsons||[],_=()=>({width:window.innerWidth||0,height:window.innerHeight||0}),D=()=>Qy,C=()=>l(),O=()=>Xy||{},L=()=>window[En]||"",H=()=>Zy,Z=()=>window.devicePixelRatio||1,P=()=>window[En]||"",k=()=>{const y=D(),T=H();return{modelDesigns:y,componentDesigns:T,modelList:y.map(W=>W.label),componentList:T.map(W=>W.label)}},V=(y,T)=>{var W;return(W=y==null?void 0:y.__DESIGNS__)==null?void 0:W.find(K=>K.label===T)},X=(y=0)=>!Number.isFinite(y)||y<=0?"0 B":y<1024?`${y} B`:y<1024*1024?`${(y/1024).toFixed(1)} KB`:y<1024*1024*1024?`${(y/1024/1024).toFixed(1)} MB`:`${(y/1024/1024/1024).toFixed(2)} GB`,te=y=>{const T=window[b0];typeof T=="function"&&T(y)},Y=y=>!!y&&Number.isFinite(y.x)&&Number.isFinite(y.y)&&Number.isFinite(y.z),Q=y=>{var T,W;return!y||!y.visible||(T=y.userData)!=null&&T.excludeFromExport||y.isTransformControls||y.isHelper||y.isLight||y.isPoints||(W=y.type)!=null&&W.includes("Helper")||_f.has(y.type)||bf.has(y.type)||y.isCSS2DObject||y.isCSS3DObject?!1:y.isMesh||y.isGroup||y.isObject3D||y.isLine},oe=(y,T)=>y&&Number.isFinite(y.x)&&Number.isFinite(y.y)&&Number.isFinite(y.z)?y:T,ie=y=>y&&Number.isFinite(y.x)&&Number.isFinite(y.y)&&Number.isFinite(y.z)&&Number.isFinite(y.w)?y:{x:0,y:0,z:0,w:1},he=y=>{if(!(y!=null&&y.isObject3D))return;const T=oe(y.position,{x:0,y:0,z:0});y.position.set(T.x,T.y,T.z);const W=oe(y.scale,{x:1,y:1,z:1});y.scale.set(W.x===0?1:W.x,W.y===0?1:W.y,W.z===0?1:W.z);const K=oe(y.up,{x:0,y:1,z:0});y.up.set(K.x,K.y,K.z);const pe=ie(y.quaternion);y.quaternion.set(pe.x,pe.y,pe.z,pe.w),y.pivot&&!Y(y.pivot)&&delete y.pivot,y.updateMatrix(),y.updateMatrixWorld(!1)},fe=(y,T="_blank")=>window.open(y,T),z=(y,T="")=>window.prompt(y,T),j=()=>window.location.reload(),re=()=>document.documentElement.classList.remove("dark"),J=y=>{if(!Array.isArray(y==null?void 0:y.__DESIGNS__))return k();const T=[...D(),...H()],W=new Set(y.__DESIGNS__.map(K=>Cf(K)));return T.forEach(K=>{const pe=Cf(K);!pe||W.has(pe)||(W.add(pe),y.__DESIGNS__.unshift(K))}),k()},Ee=y=>{if(!Array.isArray(y==null?void 0:y.__GLSLLIB__))return;const T=new Set(y.__GLSLLIB__.map(W=>W==null?void 0:W.name));Jy.forEach(W=>{T.has(W.name)||(T.add(W.name),y.__GLSLLIB__.push(W))})},we=(y={})=>{const T={};return Object.entries(y||{}).forEach(([W,K])=>{if(!(wf.has(W)||typeof K=="function")){if(!K||["string","number","boolean"].includes(typeof K)){T[W]=K;return}if(Array.isArray(K)){try{T[W]=structuredClone(K)}catch(pe){return}return}if(!(K.isObject3D||K.isMaterial||K.isTexture||K.nodeType))try{T[W]=structuredClone(K)}catch(pe){return}}}),T},Me=(y=C0)=>{window.GUI_PARAMS=y},ve=y=>{window.threeEditor=y},_e=y=>{window.threeEditorDB=y},Pe=y=>{window[b0]=y},Ge=(y="")=>{window[En]=y},Ve=(y="")=>{window[En]=y},Oe=y=>{var W;const T=[];return(W=y==null?void 0:y.children)==null||W.forEach(K=>{Q(K)&&T.push(K)}),T},je=(y=[])=>{const T={rootCount:y.length,nodeCount:0,meshCount:0,vertexCount:0,skippedCount:0};return y.forEach(W=>{W.traverse(K=>{var pe,Ce,be;if(Q(K)){T.nodeCount+=1,K.isMesh&&(T.meshCount+=1,T.vertexCount+=((be=(Ce=(pe=K.geometry)==null?void 0:pe.attributes)==null?void 0:Ce.position)==null?void 0:be.count)||0);return}K!==W&&(T.skippedCount+=1)})}),T},Ke=()=>new Promise(y=>requestAnimationFrame(()=>setTimeout(y,0))),F=()=>new Promise(y=>{if(typeof window.requestIdleCallback=="function"){window.requestIdleCallback(()=>y(),{timeout:80});return}setTimeout(y,0)}),u=(y,T)=>De(this,null,function*(){var pe;if(!Q(y))return null;const W=y.clone(!1);W.userData=we(y.userData),Y(y.pivot)?W.pivot=new Ne.THREE.Vector3(y.pivot.x,y.pivot.y,y.pivot.z):"pivot"in W&&delete W.pivot,he(W);const K=[{source:y,clone:W}];for(;K.length;){const Ce=K.shift();for(const be of Ce.source.children){if(!Q(be)){T.skippedCount+=1;continue}const Be=be.clone(!1);Be.userData=we(be.userData),Y(be.pivot)?Be.pivot=new Ne.THREE.Vector3(be.pivot.x,be.pivot.y,be.pivot.z):"pivot"in Be&&delete Be.pivot,he(Be),Ce.clone.add(Be),K.push({source:be,clone:Be}),T.processedCount+=1,T.processedCount%Af===0&&(yield(pe=T.onProgress)==null?void 0:pe.call(T,{processedCount:T.processedCount,totalCount:T.totalCount,skippedCount:T.skippedCount,progress:18+Math.min(T.processedCount/Math.max(T.totalCount,1)*54,54)}),yield Ke())}}return W});return{baseUrl:r,getModels:E,getRequest:m,reloadPage:j,promptInput:z,waitForIdle:F,waitForPaint:Ke,clearRequest:a,getGuiParams:A,setGuiParams:Me,getAllRequest:v,getEditorJsons:w,getThreeEditor:R,formatFileSize:X,setThreeEditor:ve,removeDarkClass:re,openExternalUrl:fe,getThreedModels:D,getViewportSize:_,buildExportScene:(W,...K)=>De(this,[W,...K],function*(y,T={}){const pe=Oe(y),Ce=je(pe),be=new Ne.THREE.Scene,Be={totalCount:Ce.nodeCount,processedCount:0,skippedCount:0,onProgress:T.onProgress};for(const ke of pe){const gt=yield u(ke,Be);gt&&be.add(gt),yield F()}return be.updateMatrixWorld(!0),Ce.skippedCount+=Be.skippedCount,{exportScene:be,exportObjects:pe,stats:Ce}}),createModelDbApi:s,getEditorPreviewSceneUrl:P,getThreeEditorDB:C,sanitizeUserData:we,setThreeEditorDB:_e,findThreedDesign:V,getThreedLightMap:O,collectExportStats:je,getPreviewSceneUrl:L,setEditorPreviewSceneUrl:Ve,setPreviewSceneUrl:Ge,setModelLoadHander:Pe,isExportableObject:Q,deleteThreeEditorDB:h,ensureThreeEditorDB:l,getDevicePixelRatio:Z,getThreedComponents:H,collectExportObjects:Oe,resetModelDbInstance:x,ensureModelDbInstance:c,getLocalDesignMenuData:k,invokeModelLoadHandler:te,isLegacyInlineKeyError:f,ensureThreedShaderLibrary:Ee,ensureThreedDesignRegistry:J,createBlobUrl:i,revokeModelObjectUrls:o}}const{THREED_LOG_BUFFER:B0,THREED_CURRSCENE:wi,THREED_ACTIVE_MENU:D0,THREED_PIXEL_RATIO:S0,THREED_SCENE_PREVIEW:F0,THREED_ADDON_EDITOR_JSON:_i,THREED_DEFAULT_SCENE_NAME:rv,THREED_DEFAULT_ACTIVE_MENU:R0,THREED_DEFAULT_PIXEL_RATIO:I0,THREED_SCENE_STORAGE_SUFFIX:Df}=ev(),nv=[B0,wi,D0,S0,F0,_i],tr=(t,e)=>{const r=w0.getLocal(t);return r==null?e:r},rr=(t,e)=>{t&&w0.setLocal(t,e)},T0=t=>{t&&w0.removeLocal(t)},iv=(t,e)=>{var n,i;const r=(n=t==null?void 0:t.trim)==null?void 0:n.call(t);return r&&e.some(o=>o.name===r)?r:((i=e[0])==null?void 0:i.name)||rv},O0=(t=[])=>Array.isArray(t)?t.filter(e=>typeof e=="string"&&e):[],Sf=()=>{const t=[],e=tr(wi,{name:"",path:""}),r=Number.parseFloat(tr(S0,I0));return{taskState:{busy:!1,type:"",title:"",message:"",description:"",progress:0},currScene:e,sceneList:t,previewScene:!!tr(F0,!1),activeMenuTitle:tr(D0,R0)||R0,pixelRatio:Number.isFinite(r)&&r>0?r:I0,logarithmicDepthBuffer:tr(B0,!0)!==!1,addonEditorJson:O0(tr(_i,[]))}},Ff=Ie.defineStore("threed",{state:()=>Sf(),actions:{getSceneList(){return De(this,null,function*(){var e;const t=yield Lt.getCommonApi("threedfloorplan",{limit:1e4,ordering:"-create_time"});(e=t==null?void 0:t.data)!=null&&e.length?(this.sceneList=t.data,this.currScene.path?this.sceneList.find(n=>n.id===this.currScene.id)||this.setCurrScene({name:"",path:""}):this.setCurrScene(this.sceneList[0])):(this.sceneList=[],this.setCurrScene({name:"",path:""}))})},setSceneList(t){this.sceneList=t},setSceneName(t){this.sceneName=iv(t,this.sceneList),rr(wi,this.sceneName)},createScene(t,e=""){return De(this,null,function*(){var a,h;const r=(a=t==null?void 0:t.trim)==null?void 0:a.call(t);if(!r||this.sceneList.some(c=>c.name===r))return!1;const n=Ls.threeSavePath+"/"+Co()+".json",i=Co();if(!(yield Lt.postCommonApi("query/threedfloorplan/create",{data:[{name:r,path:n,guid:i}]})).success)return!1;if(yield a1(n,e)){const c=yield Lt.postCommonApi("threedfloorplan",{guid:i});if((h=c==null?void 0:c.data)!=null&&h.length)return this.sceneList=[...this.sceneList,c.data[0]],c.data[0]}return!0})},deleteScene(t){return De(this,null,function*(){var n;if(!t)return;if(!(yield Lt.postCommonApi("query/threedfloorplan/delete",{data:[t]})).success)return!1;const r=this.sceneList.findIndex(i=>i.id===t);return r===-1?!1:(this.sceneList.splice(r,1),((n=this.currScene)==null?void 0:n.id)===t&&this.setCurrScene(this.sceneList[0]||{name:"",path:""}),!0)})},setCurrScene(t){return De(this,null,function*(){this.currScene=t,rr(wi,this.currScene)})},setPreviewMode(t){this.previewScene=!!t,rr(F0,this.previewScene)},setActiveMenuTitle(t){this.activeMenuTitle=t||R0,rr(D0,this.activeMenuTitle)},setPixelRatio(t){const e=Number.parseFloat(t);this.pixelRatio=Number.isFinite(e)&&e>0?e:I0,rr(S0,this.pixelRatio)},setLogarithmicDepthBuffer(t){this.logarithmicDepthBuffer=!!t,rr(B0,this.logarithmicDepthBuffer)},getSceneStorageKey(t){return`${t||this.sceneName}${Df}`},getSceneStorageParams(t,e=null){return tr(this.getSceneStorageKey(t),e)},setSceneStorageParams(t,e){t&&rr(this.getSceneStorageKey(t),e)},removeSceneStorageParams(t){t&&T0(this.getSceneStorageKey(t))},resetTaskState(){return De(this,null,function*(){yield new Promise(t=>setTimeout(t,120)),this.taskState={busy:!1,type:"",title:"",message:"",description:"",progress:0}})},getAddonEditorJson(){return this.addonEditorJson=O0(tr(_i,this.addonEditorJson)),this.addonEditorJson},setAddonEditorJson(t){this.addonEditorJson=O0(t),rr(_i,this.addonEditorJson)},clearThreedStorage(){nv.forEach(e=>T0(e)),Object.keys(window.localStorage).filter(e=>e.endsWith(Df)).forEach(e=>T0(e));const t=Sf();this.currScene=t.currScene,this.sceneList=t.sceneList,this.previewScene=t.previewScene,this.activeMenuTitle=t.activeMenuTitle,this.pixelRatio=t.pixelRatio,this.logarithmicDepthBuffer=t.logarithmicDepthBuffer,this.addonEditorJson=t.addonEditorJson}}}),wn=t=>{const{onClose:e,customClass:r}=t;return er(Wt(We({},t),{center:!0,customClass:`sy-message ${r||""}`,onClose:i=>{e&&e(i)}}))};["success","warning","info","error"].forEach(t=>{wn[t]=e=>wn(typeof e=="string"?{type:t,message:e}:Wt(We({},e),{type:t}))});const ov={scene:{backgroundBlurriness:0,backgroundIntensity:1,backgroundUrls:null,environmentEnabled:!1},perspectiveCamera:{fov:50,near:.1,far:1e5,zoom:1,layers:{mask:1},filmOffset:0,filmGauge:35,position:{x:247.72931803058157,y:715.3890430349733,z:789.6794984861216}},webglRenderer:{outputColorSpace:"srgb",toneMapping:0,toneMappingExposure:1,shadowMap:{enabled:!1,type:1},color:0,opacity:0,sortObjects:!0,localClippingEnabled:!1,autoClear:!0,autoClearColor:!0,renderListCompare:[{name:"stats",enabled:!0},{name:"controls",enabled:!0},{name:"scene",enabled:!0},{name:"css3DRender",enabled:!0},{name:"css2DRender",enabled:!0}]},orbitControls:{autoRotate:!1,autoRotateSpeed:2,enableDamping:!0,dampingFactor:.05,minDistance:.01,maxDistance:1e6,maxAzimuthAngle:null,minAzimuthAngle:null,maxPolarAngle:3.141592653589793,minPolarAngle:0,maxTargetRadius:null,minTargetRadius:0,enablePan:!0,panSpeed:1,enableRotate:!0,rotateSpeed:1,enableZoom:!0,zoomSpeed:1,zoomToCursor:!1,target:{x:-38.59603927643809,y:-48.97202695679889,z:-49.19814250541991}},transformControls:{mode:"translate",space:"world",size:1,showX:!0,showY:!0,showZ:!0,translationSnap:null,rotationSnap:null,scaleSnap:null},effectComposer:{renderWay:"effectComposer",fxaaPass:{enabled:!0,order:60,multPixel:1},outlinePass:{enabled:!0,order:40,edgeStrength:3,edgeGlow:0,edgeThickness:1,pulsePeriod:0,usePatternTexture:!1,visibleEdgeColor:16449071,hiddenEdgeColor:16449071,overlayMaterial:{blending:5,blendEquation:100,blendSrc:201,blendDst:205}},outputPass:{enabled:!0,order:50},saoPass:{enabled:!1,order:10,saoBias:.5,saoIntensity:.01,saoScale:100,saoKernelRadius:100,saoMinResolution:0,saoBlur:!0,saoBlurRadius:8,saoBlurStdDev:4,saoBlurDepthCutoff:.01},screenMaskPass:{enabled:!1,order:70,intensity:1,maskColor:16777215,R:.2,sr:1.2},ssrPass:{enabled:!1,order:30,maxDistance:.01,distanceAttenuation:!0,opacity:.5,thickness:.018,fresnel:!0,infiniteThick:!1,bouncing:!1},unrealBloomPass:{enabled:!1,order:20,strength:1.5,radius:.4,threshold:.85}},handler:{mode:"transform",openKeyEnable:!0,rightClickMenusEnable:!0,selectChildEnabled:!1,selectChildLevel:1,stats:{showStats:!1,statsMode:0},helpers:{axes:{showAxes:!0,axesLength:1e3},grid:{showGrid:!0,size:1e3,divisions:15,colorCenterLine:4473924,colorGrid:8947848},box3:{useBox3:!0,color:16776960}}},lightCores:[],innerCores:[],modelCores:[],drawCores:[],textCores:[],particleCores:[],geoCores:{},designCores:[],other:{viewAngleList:[],clipping:{size:20,clipList:[]}}};class av extends Re.Scene{constructor(){super();const e=new Re.BoxGeometry;e.deleteAttribute("uv");const r=new Re.MeshStandardMaterial({side:Re.BackSide}),n=new Re.MeshStandardMaterial,i=new Re.PointLight(16777215,900,28,2);i.position.set(.418,16.199,.3),this.add(i);const o=new Re.Mesh(e,r);o.position.set(-.757,13.219,.717),o.scale.set(31.713,28.305,28.591),this.add(o);const s=new Re.InstancedMesh(e,n,6),a=new Re.Object3D;a.position.set(-10.906,2.009,1.846),a.rotation.set(0,-.195,0),a.scale.set(2.328,7.905,4.651),a.updateMatrix(),s.setMatrixAt(0,a.matrix),a.position.set(-5.607,-.754,-.758),a.rotation.set(0,.994,0),a.scale.set(1.97,1.534,3.955),a.updateMatrix(),s.setMatrixAt(1,a.matrix),a.position.set(6.167,.857,7.803),a.rotation.set(0,.561,0),a.scale.set(3.927,6.285,3.687),a.updateMatrix(),s.setMatrixAt(2,a.matrix),a.position.set(-2.017,.018,6.124),a.rotation.set(0,.333,0),a.scale.set(2.002,4.566,2.064),a.updateMatrix(),s.setMatrixAt(3,a.matrix),a.position.set(2.291,-.756,-2.621),a.rotation.set(0,-.286,0),a.scale.set(1.546,1.552,1.496),a.updateMatrix(),s.setMatrixAt(4,a.matrix),a.position.set(-2.193,-.369,-5.547),a.rotation.set(0,.516,0),a.scale.set(3.875,3.487,2.986),a.updateMatrix(),s.setMatrixAt(5,a.matrix),this.add(s);const h=new Re.Mesh(e,Hr(50));h.position.set(-16.116,14.37,8.208),h.scale.set(.1,2.428,2.739),this.add(h);const c=new Re.Mesh(e,Hr(50));c.position.set(-16.109,18.021,-8.207),c.scale.set(.1,2.425,2.751),this.add(c);const f=new Re.Mesh(e,Hr(17));f.position.set(14.904,12.198,-1.832),f.scale.set(.15,4.265,6.331),this.add(f);const x=new Re.Mesh(e,Hr(43));x.position.set(-.462,8.89,14.52),x.scale.set(4.38,5.441,.088),this.add(x);const l=new Re.Mesh(e,Hr(20));l.position.set(3.235,11.486,-12.541),l.scale.set(2.5,2,.1),this.add(l);const m=new Re.Mesh(e,Hr(100));m.position.set(0,20,0),m.scale.set(1,.1,1),this.add(m)}dispose(){const e=new Set;this.traverse(r=>{r.isMesh&&(e.add(r.geometry),e.add(r.material))});for(const r of e)r.dispose()}}function Hr(t){return new Re.MeshLambertMaterial({color:0,emissive:16777215,emissiveIntensity:t})}const Rf=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},sv=Rf(Object.assign({name:"ThreedEditor"},{__name:"editor",props:{data:{type:Object,default:()=>({})},preview:{type:Boolean,default:!1}},emits:["emit-three-editor","graph-event"],setup(t,{expose:e,emit:r}){const n=t,i=Ff(),{currScene:o}=Ie.storeToRefs(i),s=r;try{Ne.ThreeEditor.dracoPath=new URL("./draco/",typeof document=="undefined"&&typeof location=="undefined"?require("url").pathToFileURL(__filename).href:typeof document=="undefined"?location.href:tt&&tt.tagName.toUpperCase()==="SCRIPT"&&tt.src||new URL("sy-threed-graph.umd.js",document.baseURI).href).href}catch(C){console.error("无法获取 draco 路径",C),Ne.ThreeEditor.dracoPath="/draco/"}let a=null,h=null;const c=I.ref(null),{setGuiParams:f,getDevicePixelRatio:x,getThreeEditorDB:l,createBlobUrl:m,revokeModelObjectUrls:v,ensureThreedDesignRegistry:E}=tv();E(Ne.ThreeEditor),f({step:.1});const A=()=>{var C;return(C=a==null?void 0:a.renderSceneResize)==null?void 0:C.call(a)},R=()=>De(this,null,function*(){var O,L;let C=ov;try{if(n.data&&Object.keys(n.data).length)C=n.data;else if((O=o.value)!=null&&O.path){const H=yield Lt.getApi((L=o.value)==null?void 0:L.path).catch(()=>({}));console.log("初始化三维场景:",H),H.res&&(C=H.res)}a?a.resetEditorStorage(C):a=new Ne.ThreeEditor(c.value,{fps:null,pixelRatio:x()*i.pixelRatio,webglRenderParams:{antialias:!0,alpha:!0,logarithmicDepthBuffer:i.logarithmicDepthBuffer},sceneParams:w(C)})}catch(H){console.error("三维图纸初始化失败",H),a==null||a.resetEditorStorage(C)}finally{n.preview&&a&&setTimeout(()=>{a.handler.mode="none",a.handler.helpers.axes.showAxes=!1,a.handler.helpers.box3.useBox3=!1,a.handler.helpers.grid.showGrid=!1},200),_()}s("emit-three-editor",a),window.addEventListener("resize",A)}),w=C=>{v(),C.designCores.forEach(Z=>{Z.preview=n.preview});const O=l(),L=O.list||[],H=structuredClone(C||{});return H.modelCores=(H.modelCores||[]).filter(Z=>{const P=Z.modelInfo.originPath;if(P){const k=L.find(X=>X.name===P);if(!k){const X=O.db.getRequest(P);Z.modelInfo.url=X.url;return}const V=m(k.blob);Z.modelInfo.url=V}return!0}),H},_=()=>{a!=null&&a.renderer&&(h=new Ne.THREE.PMREMGenerator(a.renderer),h.compileEquirectangularShader(),a.scene.environment=h.fromScene(new av).texture)},D=()=>a;return I.watch(()=>o.value.path,()=>De(this,null,function*(){R()})),I.watch(()=>n.data,()=>{R()},{deep:!0}),I.onMounted(()=>{R()}),I.onUnmounted(()=>{window.removeEventListener("resize",A),v(),a==null||a.destroySceneRender(),i.setCurrScene({name:"",path:""})}),e({getEditorInstance:D}),(C,O)=>(I.openBlock(),I.createElementBlock("div",{ref_key:"editorRef",ref:c,class:"threed-editor",onDragover:O[0]||(O[0]=I.withModifiers(()=>{},["prevent"])),onDrop:O[1]||(O[1]=I.withModifiers(()=>{},["prevent"]))},null,544))}}),[["__scopeId","data-v-7c55b0c5"]]),cv={class:"threed-preview"},_n=Rf({__name:"preview",props:{data:{type:Object,default:null},url:{type:String,default:""},id:{type:String,default:""},token:{type:String,default:""},socketUrl:{type:String,default:""}},emits:["loaded","graph-event"],setup(t,{expose:e,emit:r}){const n=t,i=r;let o=I.shallowRef({});const s=I.ref(),a=Ff(),h={};let c=null;const f=R=>{var _,D,C;if(!R)return;if((_=R==null?void 0:R.includes)!=null&&_.call(R,"token 必传"))return wn({message:R,type:"warning"});const w=typeof R=="string"?JSON.parse(R):R;if((w==null?void 0:w.data)==="服务错误"||(C=(D=w==null?void 0:w.data)==null?void 0:D.includes)!=null&&C.call(D,"token is expired"))return wn({message:w.data,type:"warning"});switch(w.action){case Os.ACPOINT.YCVALUE:case Os.ACPOINT.YXVALUE:console.warn("遥测信息");break}},x=()=>{try{c=new o1({socketUrl:n.socketUrl,token:n.token,onMessage:f})}catch(R){console.warn("三维场景消息处理失败",R)}},l=R=>De(this,null,function*(){var _;const w=yield Lt.postCommonApi("queryrealtimepoint",{point_id:R.join(",")});if((_=w==null?void 0:w.data)!=null&&_.length){w.data.forEach(C=>{h[C.guid]=C.value_disp||C.value});const D=A();R.forEach(C=>{const O=D.scene.getObjectByProperty("dataId",C);O&&(O.userData.params.state=h[C],O.userData.params.value=h[C])})}}),m=R=>{console.log("🚀 ~ handleGraphEvent:",R),i("graph-event",R)},v=R=>{var D;if(!R)return;console.log("🚀 ~ handleEditorReady:",R),n.socketUrl&&x();const w=R.saveSceneEdit();let _=[];(D=w==null?void 0:w.designCores)==null||D.forEach(C=>{C.designType==="局放测点"&&C.id&&_.push(C.id)}),_!=null&&_.length&&l(_),i("loaded",R)},E=()=>De(this,null,function*(){if(o.value&&Object.keys(o.value).length)return;const R=n1(),w=n.url||R.url;if(w){const C=yield Lt.getApi(w).catch(()=>({}));C.res&&(o.value=C.res);return}if(!(n.id||R.id)){console.warn("三维场景渲染失败,场景id为空!");return}const D=yield Lt.getCommonApi("threedfloorplan",{guid:n.id});D.data.length?a.setCurrScene(D.data[0]):console.warn("三维场景渲染失败,场景id为:"+n.id+"不存在!")}),A=()=>s.value?s.value.getEditorInstance():null;return I.watch(()=>n.data,R=>{o.value=R,E()},{deep:!0,immediate:!0}),I.watch(()=>n.id,()=>{E()},{deep:!0,immediate:!0}),I.onMounted(()=>{Bo.on("three-event",m)}),I.onUnmounted(()=>{c&&c.destroy(),Bo.off("three-event",m)}),e({getEditorInstance:A}),(R,w)=>(I.openBlock(),I.createElementBlock("div",cv,[I.createVNode(sv,{ref_key:"threedEditorRef",ref:s,data:I.unref(o),preview:"",onGraphEvent:m,onEmitThreeEditor:v},null,8,["data"])]))}},[["__scopeId","data-v-46ac6fc4"]]);_n.name||(_n.name="SyThreedGraph");const fv={install:t=>{t.component(_n.name||"SyThreedGraph",_n)}};Ae.SyThreedGraph=_n,Ae.default=fv,Object.defineProperties(Ae,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
91
|
+
`,key:"col",commonFinish:!0,render:"iTime+speed"}];let An=null,Ft=null;const bf=t=>(t==null?void 0:t.name)||(t==null?void 0:t.label)||"",Cf=(t={})=>Object.values(t).filter(e=>e&&(e.label||e.name)),Qy=Cf(Ky),Zy=Cf(Yy),ev=()=>({THREED_GUI_PARAMS:C0,THREED_LOG_BUFFER:Ty,THREED_CURRSCENE:Oy,THREED_ACTIVE_MENU:Py,THREED_PIXEL_RATIO:Ny,THREED_IMPORT_SIZE:Uy,THREED_LIGHT_TYPES:Gy,THREED_EXPORT_BATCH:Ef,THREED_RELOAD_DELAY:$y,THREED_MODEL_DBNAME:Ei,THREED_MODEL_DBSTORE:_0,THREED_SCENE_PREVIEW:Ly,THREED_USER_DATA_KEYS:Af,THREED_MODEL_LOAD_KEY:b0,THREED_PREVIEW_URL_KEY:En,THREED_ADDON_EDITOR_JSON:ky,THREED_EXPORT_NODE_COUNT:Hy,THREED_DEFAULT_SCENE_NAME:qy,THREED_DEFAULT_ACTIVE_MENU:Wy,THREED_DEFAULT_PIXEL_RATIO:Vy,THREED_EXPORT_VERTEX_COUNT:zy,THREED_SCENE_EXCLUDE_TYPES:jy,THREED_EXPORT_EXCLUDE_TYPES:wf,THREED_EXPORT_RUNTIME_TYPES:_f,THREED_SCENE_STORAGE_SUFFIX:My});function tv(){const{createInstance:t,dropInstance:e}=Iy(),r="/";let n=[];const i=y=>{let T=URL.createObjectURL(y);return n.push(T),T},o=()=>{n.forEach(y=>URL.revokeObjectURL(y)),n=[]},s=()=>De(this,null,function*(){return yield c(),{clearRequest:a,getAllRequest:m,getRequest:v,status:!0,message:"数据库打开成功",DATABASE:Ft}}),a=y=>De(this,null,function*(){if(!y)return{status:!1,message:"删除失败"};yield c(),yield Ft.removeItem(y);const T=h();return T.list=T.list.filter(W=>W.name!==y),{status:!0,message:"删除成功"}}),u=(...T)=>De(this,[...T],function*(y=Ei){Ft=null,An=null,yield e({name:y,storeName:_0})}),c=()=>De(this,null,function*(){return Ft||(An||(An=t({name:Ei,storeName:_0}).then(y=>(Ft=y,y))),yield An)}),f=y=>{if(!y)return!1;const T=String(y.message||"");return y.name==="DataError"||T.includes("in-line keys")},x=()=>De(this,null,function*(){Ft=null,An=null,yield e({name:Ei}),yield c()}),h=()=>(window.threeEditorDB||(window.threeEditorDB={db:null,list:[]}),window.threeEditorDB),v=y=>De(this,null,function*(){if(!y)return{status:!1,message:"获取失败"};yield c();const T=yield Ft.getItem(y);if(T!=null&&T.blob&&!y)return{status:!0,message:"获取成功",url:i(T.blob)};if(!y)return{status:!1,message:"获取失败"};const W=yield fetch(y).then(Be=>Be.blob()),K={blob:W};try{yield Ft.setItem(y,K)}catch(Be){if(!f(Be))throw Be;yield x(),yield Ft.setItem(y,K)}const pe=h(),Ce=We({name:y},K),be=pe.list.findIndex(Be=>Be.name===y);return be>-1?pe.list.splice(be,1,Ce):pe.list.push(Ce),{status:!0,message:"文件缓存成功",url:i(W)}}),m=()=>De(this,null,function*(){const y=h();yield c();const T=[];return yield Ft.iterate((W,K)=>{T.push(Vt(We({},W||{}),{name:K}))}),y.list=T,{status:!0,message:"获取成功",data:T}}),E=()=>De(this,null,function*(){const y=yield kt.getApi("/filehandle/scan",{path:Ns.threeModelPath,extension:"glb,gltf"}),{children:T}=y.res,W=[];if(T!=null&&T.length)for(const K of T)W.push({name:K.name,path:"/"+K.path});return W}),A=()=>window.GUI_PARAMS||C0,R=()=>window.threeEditor||null,w=()=>window.editorJsons||[],_=()=>({width:window.innerWidth||0,height:window.innerHeight||0}),B=()=>Qy,D=()=>h(),O=()=>Xy||{},L=()=>window[En]||"",z=()=>Zy,Q=()=>window.devicePixelRatio||1,P=()=>window[En]||"",k=()=>{const y=B(),T=z();return{modelDesigns:y,componentDesigns:T,modelList:y.map(W=>W.label),componentList:T.map(W=>W.label)}},V=(y,T)=>{var W;return(W=y==null?void 0:y.__DESIGNS__)==null?void 0:W.find(K=>K.label===T)},X=(y=0)=>!Number.isFinite(y)||y<=0?"0 B":y<1024?`${y} B`:y<1024*1024?`${(y/1024).toFixed(1)} KB`:y<1024*1024*1024?`${(y/1024/1024).toFixed(1)} MB`:`${(y/1024/1024/1024).toFixed(2)} GB`,ee=y=>{const T=window[b0];typeof T=="function"&&T(y)},Y=y=>!!y&&Number.isFinite(y.x)&&Number.isFinite(y.y)&&Number.isFinite(y.z),Z=y=>{var T,W;return!y||!y.visible||(T=y.userData)!=null&&T.excludeFromExport||y.isTransformControls||y.isHelper||y.isLight||y.isPoints||(W=y.type)!=null&&W.includes("Helper")||wf.has(y.type)||_f.has(y.type)||y.isCSS2DObject||y.isCSS3DObject?!1:y.isMesh||y.isGroup||y.isObject3D||y.isLine},oe=(y,T)=>y&&Number.isFinite(y.x)&&Number.isFinite(y.y)&&Number.isFinite(y.z)?y:T,ie=y=>y&&Number.isFinite(y.x)&&Number.isFinite(y.y)&&Number.isFinite(y.z)&&Number.isFinite(y.w)?y:{x:0,y:0,z:0,w:1},he=y=>{if(!(y!=null&&y.isObject3D))return;const T=oe(y.position,{x:0,y:0,z:0});y.position.set(T.x,T.y,T.z);const W=oe(y.scale,{x:1,y:1,z:1});y.scale.set(W.x===0?1:W.x,W.y===0?1:W.y,W.z===0?1:W.z);const K=oe(y.up,{x:0,y:1,z:0});y.up.set(K.x,K.y,K.z);const pe=ie(y.quaternion);y.quaternion.set(pe.x,pe.y,pe.z,pe.w),y.pivot&&!Y(y.pivot)&&delete y.pivot,y.updateMatrix(),y.updateMatrixWorld(!1)},fe=(y,T="_blank")=>window.open(y,T),H=(y,T="")=>window.prompt(y,T),j=()=>window.location.reload(),re=()=>document.documentElement.classList.remove("dark"),J=y=>{if(!Array.isArray(y==null?void 0:y.__DESIGNS__))return k();const T=[...B(),...z()],W=new Set(y.__DESIGNS__.map(K=>bf(K)));return T.forEach(K=>{const pe=bf(K);!pe||W.has(pe)||(W.add(pe),y.__DESIGNS__.unshift(K))}),k()},Ae=y=>{if(!Array.isArray(y==null?void 0:y.__GLSLLIB__))return;const T=new Set(y.__GLSLLIB__.map(W=>W==null?void 0:W.name));Jy.forEach(W=>{T.has(W.name)||(T.add(W.name),y.__GLSLLIB__.push(W))})},we=(y={})=>{const T={};return Object.entries(y||{}).forEach(([W,K])=>{if(!(Af.has(W)||typeof K=="function")){if(!K||["string","number","boolean"].includes(typeof K)){T[W]=K;return}if(Array.isArray(K)){try{T[W]=structuredClone(K)}catch(pe){return}return}if(!(K.isObject3D||K.isMaterial||K.isTexture||K.nodeType))try{T[W]=structuredClone(K)}catch(pe){return}}}),T},Me=(y=C0)=>{window.GUI_PARAMS=y},ye=y=>{window.threeEditor=y},_e=y=>{window.threeEditorDB=y},Pe=y=>{window[b0]=y},Ge=(y="")=>{window[En]=y},Ve=(y="")=>{window[En]=y},Oe=y=>{var W;const T=[];return(W=y==null?void 0:y.children)==null||W.forEach(K=>{Z(K)&&T.push(K)}),T},je=(y=[])=>{const T={rootCount:y.length,nodeCount:0,meshCount:0,vertexCount:0,skippedCount:0};return y.forEach(W=>{W.traverse(K=>{var pe,Ce,be;if(Z(K)){T.nodeCount+=1,K.isMesh&&(T.meshCount+=1,T.vertexCount+=((be=(Ce=(pe=K.geometry)==null?void 0:pe.attributes)==null?void 0:Ce.position)==null?void 0:be.count)||0);return}K!==W&&(T.skippedCount+=1)})}),T},Ke=()=>new Promise(y=>requestAnimationFrame(()=>setTimeout(y,0))),F=()=>new Promise(y=>{if(typeof window.requestIdleCallback=="function"){window.requestIdleCallback(()=>y(),{timeout:80});return}setTimeout(y,0)}),l=(y,T)=>De(this,null,function*(){var pe;if(!Z(y))return null;const W=y.clone(!1);W.userData=we(y.userData),Y(y.pivot)?W.pivot=new ke.THREE.Vector3(y.pivot.x,y.pivot.y,y.pivot.z):"pivot"in W&&delete W.pivot,he(W);const K=[{source:y,clone:W}];for(;K.length;){const Ce=K.shift();for(const be of Ce.source.children){if(!Z(be)){T.skippedCount+=1;continue}const Be=be.clone(!1);Be.userData=we(be.userData),Y(be.pivot)?Be.pivot=new ke.THREE.Vector3(be.pivot.x,be.pivot.y,be.pivot.z):"pivot"in Be&&delete Be.pivot,he(Be),Ce.clone.add(Be),K.push({source:be,clone:Be}),T.processedCount+=1,T.processedCount%Ef===0&&(yield(pe=T.onProgress)==null?void 0:pe.call(T,{processedCount:T.processedCount,totalCount:T.totalCount,skippedCount:T.skippedCount,progress:18+Math.min(T.processedCount/Math.max(T.totalCount,1)*54,54)}),yield Ke())}}return W});return{baseUrl:r,getModels:E,getRequest:v,reloadPage:j,promptInput:H,waitForIdle:F,waitForPaint:Ke,clearRequest:a,getGuiParams:A,setGuiParams:Me,getAllRequest:m,getEditorJsons:w,getThreeEditor:R,formatFileSize:X,setThreeEditor:ye,removeDarkClass:re,openExternalUrl:fe,getThreedModels:B,getViewportSize:_,buildExportScene:(W,...K)=>De(this,[W,...K],function*(y,T={}){const pe=Oe(y),Ce=je(pe),be=new ke.THREE.Scene,Be={totalCount:Ce.nodeCount,processedCount:0,skippedCount:0,onProgress:T.onProgress};for(const Le of pe){const mt=yield l(Le,Be);mt&&be.add(mt),yield F()}return be.updateMatrixWorld(!0),Ce.skippedCount+=Be.skippedCount,{exportScene:be,exportObjects:pe,stats:Ce}}),createModelDbApi:s,getEditorPreviewSceneUrl:P,getThreeEditorDB:D,sanitizeUserData:we,setThreeEditorDB:_e,findThreedDesign:V,getThreedLightMap:O,collectExportStats:je,getPreviewSceneUrl:L,setEditorPreviewSceneUrl:Ve,setPreviewSceneUrl:Ge,setModelLoadHander:Pe,isExportableObject:Z,deleteThreeEditorDB:u,ensureThreeEditorDB:h,getDevicePixelRatio:Q,getThreedComponents:z,collectExportObjects:Oe,resetModelDbInstance:x,ensureModelDbInstance:c,getLocalDesignMenuData:k,invokeModelLoadHandler:ee,isLegacyInlineKeyError:f,ensureThreedShaderLibrary:Ae,ensureThreedDesignRegistry:J,createBlobUrl:i,revokeModelObjectUrls:o}}const{THREED_LOG_BUFFER:B0,THREED_CURRSCENE:Ai,THREED_ACTIVE_MENU:D0,THREED_PIXEL_RATIO:S0,THREED_SCENE_PREVIEW:F0,THREED_ADDON_EDITOR_JSON:wi,THREED_DEFAULT_SCENE_NAME:rv,THREED_DEFAULT_ACTIVE_MENU:R0,THREED_DEFAULT_PIXEL_RATIO:I0,THREED_SCENE_STORAGE_SUFFIX:Bf}=ev(),nv=[B0,Ai,D0,S0,F0,wi],tr=(t,e)=>{const r=w0.getLocal(t);return r==null?e:r},rr=(t,e)=>{t&&w0.setLocal(t,e)},T0=t=>{t&&w0.removeLocal(t)},iv=(t,e)=>{var n,i;const r=(n=t==null?void 0:t.trim)==null?void 0:n.call(t);return r&&e.some(o=>o.name===r)?r:((i=e[0])==null?void 0:i.name)||rv},O0=(t=[])=>Array.isArray(t)?t.filter(e=>typeof e=="string"&&e):[],Df=()=>{const t=[],e=tr(Ai,{name:"",path:""}),r=Number.parseFloat(tr(S0,I0));return{taskState:{busy:!1,type:"",title:"",message:"",description:"",progress:0},currScene:e,sceneList:t,previewScene:!!tr(F0,!1),activeMenuTitle:tr(D0,R0)||R0,pixelRatio:Number.isFinite(r)&&r>0?r:I0,logarithmicDepthBuffer:tr(B0,!0)!==!1,addonEditorJson:O0(tr(wi,[]))}},Sf=Ie.defineStore("threed",{state:()=>Df(),actions:{getSceneList(){return De(this,null,function*(){var e;const t=yield kt.getCommonApi("threedfloorplan",{limit:1e4,ordering:"-create_time"});(e=t==null?void 0:t.data)!=null&&e.length?(this.sceneList=t.data,this.currScene.path?this.sceneList.find(n=>n.id===this.currScene.id)||this.setCurrScene({name:"",path:""}):this.setCurrScene(this.sceneList[0])):(this.sceneList=[],this.setCurrScene({name:"",path:""}))})},setSceneList(t){this.sceneList=t},setSceneName(t){this.sceneName=iv(t,this.sceneList),rr(Ai,this.sceneName)},createScene(t,e=""){return De(this,null,function*(){var a,u;const r=(a=t==null?void 0:t.trim)==null?void 0:a.call(t);if(!r||this.sceneList.some(c=>c.name===r))return!1;const n=Ns.threeSavePath+"/"+Co()+".json",i=Co();if(!(yield kt.postCommonApi("query/threedfloorplan/create",{data:[{name:r,path:n,guid:i}]})).success)return!1;if(yield a1(n,e)){const c=yield kt.postCommonApi("threedfloorplan",{guid:i});if((u=c==null?void 0:c.data)!=null&&u.length)return this.sceneList=[...this.sceneList,c.data[0]],c.data[0]}return!0})},deleteScene(t){return De(this,null,function*(){var n;if(!t)return;if(!(yield kt.postCommonApi("query/threedfloorplan/delete",{data:[t]})).success)return!1;const r=this.sceneList.findIndex(i=>i.id===t);return r===-1?!1:(this.sceneList.splice(r,1),((n=this.currScene)==null?void 0:n.id)===t&&this.setCurrScene(this.sceneList[0]||{name:"",path:""}),!0)})},setCurrScene(t){return De(this,null,function*(){this.currScene=t,rr(Ai,this.currScene)})},setPreviewMode(t){this.previewScene=!!t,rr(F0,this.previewScene)},setActiveMenuTitle(t){this.activeMenuTitle=t||R0,rr(D0,this.activeMenuTitle)},setPixelRatio(t){const e=Number.parseFloat(t);this.pixelRatio=Number.isFinite(e)&&e>0?e:I0,rr(S0,this.pixelRatio)},setLogarithmicDepthBuffer(t){this.logarithmicDepthBuffer=!!t,rr(B0,this.logarithmicDepthBuffer)},getSceneStorageKey(t){return`${t||this.sceneName}${Bf}`},getSceneStorageParams(t,e=null){return tr(this.getSceneStorageKey(t),e)},setSceneStorageParams(t,e){t&&rr(this.getSceneStorageKey(t),e)},removeSceneStorageParams(t){t&&T0(this.getSceneStorageKey(t))},resetTaskState(){return De(this,null,function*(){yield new Promise(t=>setTimeout(t,120)),this.taskState={busy:!1,type:"",title:"",message:"",description:"",progress:0}})},getAddonEditorJson(){return this.addonEditorJson=O0(tr(wi,this.addonEditorJson)),this.addonEditorJson},setAddonEditorJson(t){this.addonEditorJson=O0(t),rr(wi,this.addonEditorJson)},clearThreedStorage(){nv.forEach(e=>T0(e)),Object.keys(window.localStorage).filter(e=>e.endsWith(Bf)).forEach(e=>T0(e));const t=Df();this.currScene=t.currScene,this.sceneList=t.sceneList,this.previewScene=t.previewScene,this.activeMenuTitle=t.activeMenuTitle,this.pixelRatio=t.pixelRatio,this.logarithmicDepthBuffer=t.logarithmicDepthBuffer,this.addonEditorJson=t.addonEditorJson}}}),wn=t=>{const{onClose:e,customClass:r}=t;return er(Vt(We({},t),{center:!0,customClass:`sy-message ${r||""}`,onClose:i=>{e&&e(i)}}))};["success","warning","info","error"].forEach(t=>{wn[t]=e=>wn(typeof e=="string"?{type:t,message:e}:Vt(We({},e),{type:t}))});const ov={scene:{backgroundBlurriness:0,backgroundIntensity:1,backgroundUrls:null,environmentEnabled:!1},perspectiveCamera:{fov:50,near:.1,far:1e5,zoom:1,layers:{mask:1},filmOffset:0,filmGauge:35,position:{x:247.72931803058157,y:715.3890430349733,z:789.6794984861216}},webglRenderer:{outputColorSpace:"srgb",toneMapping:0,toneMappingExposure:1,shadowMap:{enabled:!1,type:1},color:0,opacity:0,sortObjects:!0,localClippingEnabled:!1,autoClear:!0,autoClearColor:!0,renderListCompare:[{name:"stats",enabled:!0},{name:"controls",enabled:!0},{name:"scene",enabled:!0},{name:"css3DRender",enabled:!0},{name:"css2DRender",enabled:!0}]},orbitControls:{autoRotate:!1,autoRotateSpeed:2,enableDamping:!0,dampingFactor:.05,minDistance:.01,maxDistance:1e6,maxAzimuthAngle:null,minAzimuthAngle:null,maxPolarAngle:3.141592653589793,minPolarAngle:0,maxTargetRadius:null,minTargetRadius:0,enablePan:!0,panSpeed:1,enableRotate:!0,rotateSpeed:1,enableZoom:!0,zoomSpeed:1,zoomToCursor:!1,target:{x:-38.59603927643809,y:-48.97202695679889,z:-49.19814250541991}},transformControls:{mode:"translate",space:"world",size:1,showX:!0,showY:!0,showZ:!0,translationSnap:null,rotationSnap:null,scaleSnap:null},effectComposer:{renderWay:"effectComposer",fxaaPass:{enabled:!0,order:60,multPixel:1},outlinePass:{enabled:!0,order:40,edgeStrength:3,edgeGlow:0,edgeThickness:1,pulsePeriod:0,usePatternTexture:!1,visibleEdgeColor:16449071,hiddenEdgeColor:16449071,overlayMaterial:{blending:5,blendEquation:100,blendSrc:201,blendDst:205}},outputPass:{enabled:!0,order:50},saoPass:{enabled:!1,order:10,saoBias:.5,saoIntensity:.01,saoScale:100,saoKernelRadius:100,saoMinResolution:0,saoBlur:!0,saoBlurRadius:8,saoBlurStdDev:4,saoBlurDepthCutoff:.01},screenMaskPass:{enabled:!1,order:70,intensity:1,maskColor:16777215,R:.2,sr:1.2},ssrPass:{enabled:!1,order:30,maxDistance:.01,distanceAttenuation:!0,opacity:.5,thickness:.018,fresnel:!0,infiniteThick:!1,bouncing:!1},unrealBloomPass:{enabled:!1,order:20,strength:1.5,radius:.4,threshold:.85}},handler:{mode:"transform",openKeyEnable:!0,rightClickMenusEnable:!0,selectChildEnabled:!1,selectChildLevel:1,stats:{showStats:!1,statsMode:0},helpers:{axes:{showAxes:!0,axesLength:1e3},grid:{showGrid:!0,size:1e3,divisions:15,colorCenterLine:4473924,colorGrid:8947848},box3:{useBox3:!0,color:16776960}}},lightCores:[],innerCores:[],modelCores:[],drawCores:[],textCores:[],particleCores:[],geoCores:{},designCores:[],other:{viewAngleList:[],clipping:{size:20,clipList:[]}}};class av extends Re.Scene{constructor(){super();const e=new Re.BoxGeometry;e.deleteAttribute("uv");const r=new Re.MeshStandardMaterial({side:Re.BackSide}),n=new Re.MeshStandardMaterial,i=new Re.PointLight(16777215,900,28,2);i.position.set(.418,16.199,.3),this.add(i);const o=new Re.Mesh(e,r);o.position.set(-.757,13.219,.717),o.scale.set(31.713,28.305,28.591),this.add(o);const s=new Re.InstancedMesh(e,n,6),a=new Re.Object3D;a.position.set(-10.906,2.009,1.846),a.rotation.set(0,-.195,0),a.scale.set(2.328,7.905,4.651),a.updateMatrix(),s.setMatrixAt(0,a.matrix),a.position.set(-5.607,-.754,-.758),a.rotation.set(0,.994,0),a.scale.set(1.97,1.534,3.955),a.updateMatrix(),s.setMatrixAt(1,a.matrix),a.position.set(6.167,.857,7.803),a.rotation.set(0,.561,0),a.scale.set(3.927,6.285,3.687),a.updateMatrix(),s.setMatrixAt(2,a.matrix),a.position.set(-2.017,.018,6.124),a.rotation.set(0,.333,0),a.scale.set(2.002,4.566,2.064),a.updateMatrix(),s.setMatrixAt(3,a.matrix),a.position.set(2.291,-.756,-2.621),a.rotation.set(0,-.286,0),a.scale.set(1.546,1.552,1.496),a.updateMatrix(),s.setMatrixAt(4,a.matrix),a.position.set(-2.193,-.369,-5.547),a.rotation.set(0,.516,0),a.scale.set(3.875,3.487,2.986),a.updateMatrix(),s.setMatrixAt(5,a.matrix),this.add(s);const u=new Re.Mesh(e,Hr(50));u.position.set(-16.116,14.37,8.208),u.scale.set(.1,2.428,2.739),this.add(u);const c=new Re.Mesh(e,Hr(50));c.position.set(-16.109,18.021,-8.207),c.scale.set(.1,2.425,2.751),this.add(c);const f=new Re.Mesh(e,Hr(17));f.position.set(14.904,12.198,-1.832),f.scale.set(.15,4.265,6.331),this.add(f);const x=new Re.Mesh(e,Hr(43));x.position.set(-.462,8.89,14.52),x.scale.set(4.38,5.441,.088),this.add(x);const h=new Re.Mesh(e,Hr(20));h.position.set(3.235,11.486,-12.541),h.scale.set(2.5,2,.1),this.add(h);const v=new Re.Mesh(e,Hr(100));v.position.set(0,20,0),v.scale.set(1,.1,1),this.add(v)}dispose(){const e=new Set;this.traverse(r=>{r.isMesh&&(e.add(r.geometry),e.add(r.material))});for(const r of e)r.dispose()}}function Hr(t){return new Re.MeshLambertMaterial({color:0,emissive:16777215,emissiveIntensity:t})}const Ff=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},sv=Ff(Object.assign({name:"ThreedEditor"},{__name:"editor",props:{data:{type:Object,default:()=>({})},preview:{type:Boolean,default:!1}},emits:["emit-three-editor","graph-event"],setup(t,{expose:e,emit:r}){const n=t,i=Sf(),{currScene:o}=Ie.storeToRefs(i),s=r,a=window.__SY_THREED_DRACO_PATH__||"/draco/";ke.ThreeEditor.dracoPath=a.endsWith("/")?a:a+"/";let u=null,c=null;const f=I.ref(null),{setGuiParams:x,getDevicePixelRatio:h,getThreeEditorDB:v,createBlobUrl:m,revokeModelObjectUrls:E,ensureThreedDesignRegistry:A}=tv();A(ke.ThreeEditor),x({step:.1});const R=()=>{var O;return(O=u==null?void 0:u.renderSceneResize)==null?void 0:O.call(u)},w=()=>De(this,null,function*(){var L,z;let O=ov;try{if(n.data&&Object.keys(n.data).length)O=n.data;else if((L=o.value)!=null&&L.path){const Q=yield kt.getApi((z=o.value)==null?void 0:z.path).catch(()=>({}));console.log("初始化三维场景:",Q),Q.res&&(O=Q.res)}u?u.resetEditorStorage(O):u=new ke.ThreeEditor(f.value,{fps:null,pixelRatio:h()*i.pixelRatio,webglRenderParams:{antialias:!0,alpha:!0,logarithmicDepthBuffer:i.logarithmicDepthBuffer},sceneParams:_(O)})}catch(Q){console.error("三维图纸初始化失败",Q),u==null||u.resetEditorStorage(O)}finally{n.preview&&u&&setTimeout(()=>{u.handler.mode="none",u.handler.helpers.axes.showAxes=!1,u.handler.helpers.box3.useBox3=!1,u.handler.helpers.grid.showGrid=!1},200),B()}s("emit-three-editor",u),window.addEventListener("resize",R)}),_=O=>{E(),O.designCores.forEach(P=>{P.preview=n.preview});const L=v(),z=L.list||[],Q=structuredClone(O||{});return Q.modelCores=(Q.modelCores||[]).filter(P=>{const k=P.modelInfo.originPath;if(k){const V=z.find(ee=>ee.name===k);if(!V){const ee=L.db.getRequest(k);P.modelInfo.url=ee.url;return}const X=m(V.blob);P.modelInfo.url=X}return!0}),Q},B=()=>{u!=null&&u.renderer&&(c=new ke.THREE.PMREMGenerator(u.renderer),c.compileEquirectangularShader(),u.scene.environment=c.fromScene(new av).texture)},D=()=>u;return I.watch(()=>o.value.path,()=>De(this,null,function*(){w()})),I.watch(()=>n.data,()=>{w()},{deep:!0}),I.onMounted(()=>{w()}),I.onUnmounted(()=>{window.removeEventListener("resize",R),E(),u==null||u.destroySceneRender(),i.setCurrScene({name:"",path:""})}),e({getEditorInstance:D}),(O,L)=>(I.openBlock(),I.createElementBlock("div",{ref_key:"editorRef",ref:f,class:"threed-editor",onDragover:L[0]||(L[0]=I.withModifiers(()=>{},["prevent"])),onDrop:L[1]||(L[1]=I.withModifiers(()=>{},["prevent"]))},null,544))}}),[["__scopeId","data-v-cebfdbf8"]]),cv={class:"threed-preview"},_n=Ff({__name:"preview",props:{data:{type:Object,default:null},url:{type:String,default:""},id:{type:String,default:""},token:{type:String,default:""},socketUrl:{type:String,default:""}},emits:["loaded","graph-event"],setup(t,{expose:e,emit:r}){const n=t,i=r;let o=I.shallowRef({});const s=I.ref(),a=Sf(),u={};let c=null;const f=R=>{var _,B,D;if(!R)return;if((_=R==null?void 0:R.includes)!=null&&_.call(R,"token 必传"))return wn({message:R,type:"warning"});const w=typeof R=="string"?JSON.parse(R):R;if((w==null?void 0:w.data)==="服务错误"||(D=(B=w==null?void 0:w.data)==null?void 0:B.includes)!=null&&D.call(B,"token is expired"))return wn({message:w.data,type:"warning"});switch(w.action){case Ts.ACPOINT.YCVALUE:case Ts.ACPOINT.YXVALUE:console.warn("遥测信息");break}},x=()=>{try{c=new o1({socketUrl:n.socketUrl,token:n.token,onMessage:f})}catch(R){console.warn("三维场景消息处理失败",R)}},h=R=>De(this,null,function*(){var _;const w=yield kt.postCommonApi("queryrealtimepoint",{point_id:R.join(",")});if((_=w==null?void 0:w.data)!=null&&_.length){w.data.forEach(D=>{u[D.guid]=D.value_disp||D.value});const B=A();R.forEach(D=>{const O=B.scene.getObjectByProperty("dataId",D);O&&(O.userData.params.state=u[D],O.userData.params.value=u[D])})}}),v=R=>{console.log("🚀 ~ handleGraphEvent:",R),i("graph-event",R)},m=R=>{var B;if(!R)return;console.log("🚀 ~ handleEditorReady:",R),n.socketUrl&&x();const w=R.saveSceneEdit();let _=[];(B=w==null?void 0:w.designCores)==null||B.forEach(D=>{D.designType==="局放测点"&&D.id&&_.push(D.id)}),_!=null&&_.length&&h(_),i("loaded",R)},E=()=>De(this,null,function*(){if(o.value&&Object.keys(o.value).length)return;const R=n1(),w=n.url||R.url;if(w){const D=yield kt.getApi(w).catch(()=>({}));D.res&&(o.value=D.res);return}if(!(n.id||R.id)){console.warn("三维场景渲染失败,场景id为空!");return}const B=yield kt.getCommonApi("threedfloorplan",{guid:n.id});B.data.length?a.setCurrScene(B.data[0]):console.warn("三维场景渲染失败,场景id为:"+n.id+"不存在!")}),A=()=>s.value?s.value.getEditorInstance():null;return I.watch(()=>n.data,R=>{o.value=R,E()},{deep:!0,immediate:!0}),I.watch(()=>n.id,()=>{E()},{deep:!0,immediate:!0}),I.onMounted(()=>{Bo.on("three-event",v)}),I.onUnmounted(()=>{c&&c.destroy(),Bo.off("three-event",v)}),e({getEditorInstance:A}),(R,w)=>(I.openBlock(),I.createElementBlock("div",cv,[I.createVNode(sv,{ref_key:"threedEditorRef",ref:s,data:I.unref(o),preview:"",onGraphEvent:v,onEmitThreeEditor:m},null,8,["data"])]))}},[["__scopeId","data-v-46ac6fc4"]]);_n.name||(_n.name="SyThreedGraph");const Rf=t=>{t&&(window.__SY_THREED_DRACO_PATH__=t.endsWith("/")?t:t+"/")},fv={install:t=>{t.component(_n.name||"SyThreedGraph",_n)},setDracoPath:Rf};Ee.SyThreedGraph=_n,Ee.default=fv,Ee.setDracoPath=Rf,Object.defineProperties(Ee,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|