@syhr/sy-graph 1.0.0
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/README.md +173 -0
- package/lib/style.css +1 -0
- package/lib/sy-graph.cjs +28 -0
- package/lib/sy-graph.es.js +12815 -0
- package/lib/sy-graph.umd.js +28 -0
- package/package.json +168 -0
package/lib/sy-graph.cjs
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";var ff=Object.defineProperty,cf=Object.defineProperties;var uf=Object.getOwnPropertyDescriptors;var di=Object.getOwnPropertySymbols;var lf=Object.prototype.hasOwnProperty,hf=Object.prototype.propertyIsEnumerable;var Nt=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),xf=t=>{throw TypeError(t)};var w0=(t,e,r)=>e in t?ff(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r,te=(t,e)=>{for(var r in e||(e={}))lf.call(e,r)&&w0(t,r,e[r]);if(di)for(var r of di(e))hf.call(e,r)&&w0(t,r,e[r]);return t},Te=(t,e)=>cf(t,uf(e));var gt=(t,e,r)=>w0(t,typeof e!="symbol"?e+"":e,r);var We=(t,e,r)=>new Promise((n,i)=>{var o=x=>{try{s(r.next(x))}catch(f){i(f)}},a=x=>{try{s(r.throw(x))}catch(f){i(f)}},s=x=>x.done?n(x.value):Promise.resolve(x.value).then(o,a);s((r=r.apply(t,e)).next())}),_t=function(t,e){this[0]=t,this[1]=e},C0=(t,e,r)=>{var n=(a,s,x,f)=>{try{var l=r[a](s),v=(s=l.value)instanceof _t,d=l.done;Promise.resolve(v?s[0]:s).then(g=>v?n(a==="return"?a:"next",s[1]?{done:g.done,value:g.value}:g,x,f):x({value:g,done:d})).catch(g=>n("throw",g,x,f))}catch(g){f(g)}},i=a=>o[a]=s=>new Promise((x,f)=>n(a,s,x,f)),o={};return r=r.apply(t,e),o[Nt("asyncIterator")]=()=>o,i("next"),i("throw"),i("return"),o},b0=t=>{var e=t[Nt("asyncIterator")],r=!1,n,i={};return e==null?(e=t[Nt("iterator")](),n=o=>i[o]=a=>e[o](a)):(e=e.call(t),n=o=>i[o]=a=>{if(r){if(r=!1,o==="throw")throw a;return a}return r=!0,{done:!1,value:new _t(new Promise(s=>{var x=e[o](a);x instanceof Object||xf("Object expected"),s(x)}),1)}}),i[Nt("iterator")]=()=>i,n("next"),"throw"in e?n("throw"):i.throw=o=>{throw o},"return"in e&&n("return"),i},pi=(t,e,r)=>(e=t[Nt("asyncIterator")])?e.call(t):(t=t[Nt("iterator")](),e={},r=(n,i)=>(i=t[n])&&(e[n]=o=>new Promise((a,s,x)=>(o=i.call(t,o),x=o.done,Promise.resolve(o.value).then(f=>a({value:f,done:x}),s)))),r("next"),r("return"),e);Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const pe=require("vue"),df=require("lodash-es"),Ze=require("element-plus"),va=require("@meta2d/utils"),Ie=require("@meta2d/core"),pf=require("@meta2d/plugin-mind-core"),vf=require("@meta2d/plugin-mind-collapse"),yf=require("@meta2d/form-diagram"),mf=require("@meta2d/class-diagram"),gf=require("@meta2d/le5le-charts"),vi=require("@meta2d/flow-diagram"),F0=require("@meta2d/fta-diagram"),yi=require("@meta2d/sequence-diagram"),mi=require("@meta2d/activity-diagram");var ce=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function Xn(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Af(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 Xt=TypeError;const Ef={},Bf=Object.freeze(Object.defineProperty({__proto__:null,default:Ef},Symbol.toStringTag,{value:"Module"})),ya=Af(Bf);var Yn=typeof Map=="function"&&Map.prototype,D0=Object.getOwnPropertyDescriptor&&Yn?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gr=Yn&&D0&&typeof D0.get=="function"?D0.get:null,gi=Yn&&Map.prototype.forEach,Zn=typeof Set=="function"&&Set.prototype,_0=Object.getOwnPropertyDescriptor&&Zn?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Kr=Zn&&_0&&typeof _0.get=="function"?_0.get:null,Ai=Zn&&Set.prototype.forEach,wf=typeof WeakMap=="function"&&WeakMap.prototype,nr=wf?WeakMap.prototype.has:null,Cf=typeof WeakSet=="function"&&WeakSet.prototype,ir=Cf?WeakSet.prototype.has:null,bf=typeof WeakRef=="function"&&WeakRef.prototype,Ei=bf?WeakRef.prototype.deref:null,Ff=Boolean.prototype.valueOf,Df=Object.prototype.toString,_f=Function.prototype.toString,Sf=String.prototype.match,Qn=String.prototype.slice,Et=String.prototype.replace,Tf=String.prototype.toUpperCase,Bi=String.prototype.toLowerCase,ma=RegExp.prototype.test,wi=Array.prototype.concat,lt=Array.prototype.join,If=Array.prototype.slice,Ci=Math.floor,kn=typeof BigInt=="function"?BigInt.prototype.valueOf:null,S0=Object.getOwnPropertySymbols,Pn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,Kt=typeof Symbol=="function"&&typeof Symbol.iterator=="object",or=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===Kt||!0)?Symbol.toStringTag:null,ga=Object.prototype.propertyIsEnumerable,bi=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Fi(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||ma.call(/e/,e))return e;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var n=t<0?-Ci(-t):Ci(t);if(n!==t){var i=String(n),o=Qn.call(e,i.length+1);return Et.call(i,r,"$&_")+"."+Et.call(Et.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Et.call(e,r,"$&_")}var Mn=ya,Di=Mn.custom,_i=Ba(Di)?Di:null,Aa={__proto__:null,double:'"',single:"'"},Rf={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Zr=function t(e,r,n,i){var o=r||{};if(dt(o,"quoteStyle")&&!dt(Aa,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(dt(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 a=dt(o,"customInspect")?o.customInspect:!0;if(typeof a!="boolean"&&a!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(dt(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(dt(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=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 Ca(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var x=String(e);return s?Fi(e,x):x}if(typeof e=="bigint"){var f=String(e)+"n";return s?Fi(e,f):f}var l=typeof o.depth=="undefined"?5:o.depth;if(typeof n=="undefined"&&(n=0),n>=l&&l>0&&typeof e=="object")return Ln(e)?"[Array]":"[Object]";var v=Yf(o,n);if(typeof i=="undefined")i=[];else if(wa(i,e)>=0)return"[Circular]";function d(S,N,M){if(N&&(i=If.call(i),i.push(N)),M){var H={depth:o.depth};return dt(o,"quoteStyle")&&(H.quoteStyle=o.quoteStyle),t(S,H,n+1,i)}return t(S,o,n+1,i)}if(typeof e=="function"&&!Si(e)){var g=$f(e),y=Sr(e,d);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(y.length>0?" { "+lt.call(y,", ")+" }":"")}if(Ba(e)){var m=Kt?Et.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Pn.call(e);return typeof e=="object"&&!Kt?er(m):m}if(Vf(e)){for(var A="<"+Bi.call(String(e.nodeName)),D=e.attributes||[],C=0;C<D.length;C++)A+=" "+D[C].name+"="+Ea(Of(D[C].value),"double",o);return A+=">",e.childNodes&&e.childNodes.length&&(A+="..."),A+="</"+Bi.call(String(e.nodeName))+">",A}if(Ln(e)){if(e.length===0)return"[]";var B=Sr(e,d);return v&&!Xf(B)?"["+Un(B,v)+"]":"[ "+lt.call(B,", ")+" ]"}if(Pf(e)){var b=Sr(e,d);return!("cause"in Error.prototype)&&"cause"in e&&!ga.call(e,"cause")?"{ ["+String(e)+"] "+lt.call(wi.call("[cause]: "+d(e.cause),b),", ")+" }":b.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+lt.call(b,", ")+" }"}if(typeof e=="object"&&a){if(_i&&typeof e[_i]=="function"&&Mn)return Mn(e,{depth:l-n});if(a!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(qf(e)){var _=[];return gi&&gi.call(e,function(S,N){_.push(d(N,e,!0)+" => "+d(S,e))}),Ti("Map",Gr.call(e),_,v)}if(Gf(e)){var T=[];return Ai&&Ai.call(e,function(S){T.push(d(S,e))}),Ti("Set",Kr.call(e),T,v)}if(zf(e))return T0("WeakMap");if(Kf(e))return T0("WeakSet");if(Wf(e))return T0("WeakRef");if(Lf(e))return er(d(Number(e)));if(Nf(e))return er(d(kn.call(e)));if(Uf(e))return er(Ff.call(e));if(Mf(e))return er(d(String(e)));if(typeof window!="undefined"&&e===window)return"{ [object Window] }";if(typeof globalThis!="undefined"&&e===globalThis||typeof ce!="undefined"&&e===ce)return"{ [object globalThis] }";if(!kf(e)&&!Si(e)){var k=Sr(e,d),$=bi?bi(e)===Object.prototype:e instanceof Object||e.constructor===Object,X=e instanceof Object?"":"null prototype",I=!$&&or&&Object(e)===e&&or in e?Qn.call(Bt(e),8,-1):X?"Object":"",P=$||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",G=P+(I||X?"["+lt.call(wi.call([],I||[],X||[]),": ")+"] ":"");return k.length===0?G+"{}":v?G+"{"+Un(k,v)+"}":G+"{ "+lt.call(k,", ")+" }"}return String(e)};function Ea(t,e,r){var n=r.quoteStyle||e,i=Aa[n];return i+t+i}function Of(t){return Et.call(String(t),/"/g,""")}function Pt(t){return!or||!(typeof t=="object"&&(or in t||typeof t[or]!="undefined"))}function Ln(t){return Bt(t)==="[object Array]"&&Pt(t)}function kf(t){return Bt(t)==="[object Date]"&&Pt(t)}function Si(t){return Bt(t)==="[object RegExp]"&&Pt(t)}function Pf(t){return Bt(t)==="[object Error]"&&Pt(t)}function Mf(t){return Bt(t)==="[object String]"&&Pt(t)}function Lf(t){return Bt(t)==="[object Number]"&&Pt(t)}function Uf(t){return Bt(t)==="[object Boolean]"&&Pt(t)}function Ba(t){if(Kt)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Pn)return!1;try{return Pn.call(t),!0}catch(e){}return!1}function Nf(t){if(!t||typeof t!="object"||!kn)return!1;try{return kn.call(t),!0}catch(e){}return!1}var Hf=Object.prototype.hasOwnProperty||function(t){return t in this};function dt(t,e){return Hf.call(t,e)}function Bt(t){return Df.call(t)}function $f(t){if(t.name)return t.name;var e=Sf.call(_f.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function wa(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 qf(t){if(!Gr||!t||typeof t!="object")return!1;try{Gr.call(t);try{Kr.call(t)}catch(e){return!0}return t instanceof Map}catch(e){}return!1}function zf(t){if(!nr||!t||typeof t!="object")return!1;try{nr.call(t,nr);try{ir.call(t,ir)}catch(e){return!0}return t instanceof WeakMap}catch(e){}return!1}function Wf(t){if(!Ei||!t||typeof t!="object")return!1;try{return Ei.call(t),!0}catch(e){}return!1}function Gf(t){if(!Kr||!t||typeof t!="object")return!1;try{Kr.call(t);try{Gr.call(t)}catch(e){return!0}return t instanceof Set}catch(e){}return!1}function Kf(t){if(!ir||!t||typeof t!="object")return!1;try{ir.call(t,ir);try{nr.call(t,nr)}catch(e){return!0}return t instanceof WeakSet}catch(e){}return!1}function Vf(t){return!t||typeof t!="object"?!1:typeof HTMLElement!="undefined"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function Ca(t,e){if(t.length>e.maxStringLength){var r=t.length-e.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return Ca(Qn.call(t,0,e.maxStringLength),e)+n}var i=Rf[e.quoteStyle||"single"];i.lastIndex=0;var o=Et.call(Et.call(t,i,"\\$1"),/[\x00-\x1f]/g,jf);return Ea(o,"single",e)}function jf(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":"")+Tf.call(e.toString(16))}function er(t){return"Object("+t+")"}function T0(t){return t+" { ? }"}function Ti(t,e,r,n){var i=n?Un(r,n):lt.call(r,", ");return t+" ("+e+") {"+i+"}"}function Xf(t){for(var e=0;e<t.length;e++)if(wa(t[e],`
|
|
2
|
+
`)>=0)return!1;return!0}function Yf(t,e){var r;if(t.indent===" ")r=" ";else if(typeof t.indent=="number"&&t.indent>0)r=lt.call(Array(t.indent+1)," ");else return null;return{base:r,prev:lt.call(Array(e+1),r)}}function Un(t,e){if(t.length===0)return"";var r=`
|
|
3
|
+
`+e.prev+e.base;return r+lt.call(t,","+r)+`
|
|
4
|
+
`+e.prev}function Sr(t,e){var r=Ln(t),n=[];if(r){n.length=t.length;for(var i=0;i<t.length;i++)n[i]=dt(t,i)?e(t[i],t):""}var o=typeof S0=="function"?S0(t):[],a;if(Kt){a={};for(var s=0;s<o.length;s++)a["$"+o[s]]=o[s]}for(var x in t)dt(t,x)&&(r&&String(Number(x))===x&&x<t.length||Kt&&a["$"+x]instanceof Symbol||(ma.call(/[^\w$]/,x)?n.push(e(x,t)+": "+e(t[x],t)):n.push(x+": "+e(t[x],t))));if(typeof S0=="function")for(var f=0;f<o.length;f++)ga.call(t,o[f])&&n.push("["+e(o[f])+"]: "+e(t[o[f]],t));return n}var Zf=Zr,Qf=Xt,Qr=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},Jf=function(t,e){if(t){var r=Qr(t,e);return r&&r.value}},ec=function(t,e,r){var n=Qr(t,e);n?n.value=r:t.next={key:e,next:t.next,value:r}},tc=function(t,e){return t?!!Qr(t,e):!1},rc=function(t,e){if(t)return Qr(t,e,!0)},nc=function(){var e,r={assert:function(n){if(!r.has(n))throw new Qf("Side channel does not contain "+Zf(n))},delete:function(n){var i=e&&e.next,o=rc(e,n);return o&&i&&i===o&&(e=void 0),!!o},get:function(n){return Jf(e,n)},has:function(n){return tc(e,n)},set:function(n,i){e||(e={next:void 0}),ec(e,n,i)}};return r},ba=Object,ic=Error,oc=EvalError,ac=RangeError,sc=ReferenceError,fc=SyntaxError,cc=URIError,uc=Math.abs,lc=Math.floor,hc=Math.max,xc=Math.min,dc=Math.pow,pc=Math.round,vc=Number.isNaN||function(e){return e!==e},yc=vc,mc=function(e){return yc(e)||e===0?e:e<0?-1:1},gc=Object.getOwnPropertyDescriptor,Nr=gc;if(Nr)try{Nr([],"length")}catch(t){Nr=null}var Fa=Nr,Hr=Object.defineProperty||!1;if(Hr)try{Hr({},"a",{value:1})}catch(t){Hr=!1}var Ac=Hr,I0,Ii;function Ec(){return Ii||(Ii=1,I0=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 a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var s=Object.getOwnPropertyDescriptor(e,r);if(s.value!==i||s.enumerable!==!0)return!1}return!0}),I0}var R0,Ri;function Bc(){if(Ri)return R0;Ri=1;var t=typeof Symbol!="undefined"&&Symbol,e=Ec();return R0=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},R0}var O0,Oi;function Da(){return Oi||(Oi=1,O0=typeof Reflect!="undefined"&&Reflect.getPrototypeOf||null),O0}var k0,ki;function _a(){if(ki)return k0;ki=1;var t=ba;return k0=t.getPrototypeOf||null,k0}var P0,Pi;function wc(){if(Pi)return P0;Pi=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(x,f){for(var l=[],v=0;v<x.length;v+=1)l[v]=x[v];for(var d=0;d<f.length;d+=1)l[d+x.length]=f[d];return l},o=function(x,f){for(var l=[],v=f,d=0;v<x.length;v+=1,d+=1)l[d]=x[v];return l},a=function(s,x){for(var f="",l=0;l<s.length;l+=1)f+=s[l],l+1<s.length&&(f+=x);return f};return P0=function(x){var f=this;if(typeof f!="function"||e.apply(f)!==n)throw new TypeError(t+f);for(var l=o(arguments,1),v,d=function(){if(this instanceof v){var D=f.apply(this,i(l,arguments));return Object(D)===D?D:this}return f.apply(x,i(l,arguments))},g=r(0,f.length-l.length),y=[],m=0;m<g;m++)y[m]="$"+m;if(v=Function("binder","return function ("+a(y,",")+"){ return binder.apply(this,arguments); }")(d),f.prototype){var A=function(){};A.prototype=f.prototype,v.prototype=new A,A.prototype=null}return v},P0}var M0,Mi;function Jr(){if(Mi)return M0;Mi=1;var t=wc();return M0=Function.prototype.bind||t,M0}var L0,Li;function Jn(){return Li||(Li=1,L0=Function.prototype.call),L0}var U0,Ui;function Sa(){return Ui||(Ui=1,U0=Function.prototype.apply),U0}var Cc=typeof Reflect!="undefined"&&Reflect&&Reflect.apply,bc=Jr(),Fc=Sa(),Dc=Jn(),_c=Cc,Sc=_c||bc.call(Dc,Fc),Tc=Jr(),Ic=Xt,Rc=Jn(),Oc=Sc,Ta=function(e){if(e.length<1||typeof e[0]!="function")throw new Ic("a function is required");return Oc(Tc,Rc,e)},N0,Ni;function kc(){if(Ni)return N0;Ni=1;var t=Ta,e=Fa,r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&e&&e(Object.prototype,"__proto__"),i=Object,o=i.getPrototypeOf;return N0=n&&typeof n.get=="function"?t([n.get]):typeof o=="function"?function(s){return o(s==null?s:i(s))}:!1,N0}var H0,Hi;function Pc(){if(Hi)return H0;Hi=1;var t=Da(),e=_a(),r=kc();return H0=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,H0}var $0,$i;function Mc(){if($i)return $0;$i=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Jr();return $0=r.call(t,e),$0}var he,Lc=ba,Uc=ic,Nc=oc,Hc=ac,$c=sc,Vt=fc,Wt=Xt,qc=cc,zc=uc,Wc=lc,Gc=hc,Kc=xc,Vc=dc,jc=pc,Xc=mc,Ia=Function,q0=function(t){try{return Ia('"use strict"; return ('+t+").constructor;")()}catch(e){}},sr=Fa,Yc=Ac,z0=function(){throw new Wt},Zc=sr?function(){try{return arguments.callee,z0}catch(t){try{return sr(arguments,"callee").get}catch(e){return z0}}}():z0,Ht=Bc()(),Ue=Pc(),Qc=_a(),Jc=Da(),Ra=Sa(),lr=Jn(),zt={},eu=typeof Uint8Array=="undefined"||!Ue?he:Ue(Uint8Array),It={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?he:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?he:ArrayBuffer,"%ArrayIteratorPrototype%":Ht&&Ue?Ue([][Symbol.iterator]()):he,"%AsyncFromSyncIteratorPrototype%":he,"%AsyncFunction%":zt,"%AsyncGenerator%":zt,"%AsyncGeneratorFunction%":zt,"%AsyncIteratorPrototype%":zt,"%Atomics%":typeof Atomics=="undefined"?he:Atomics,"%BigInt%":typeof BigInt=="undefined"?he:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?he:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?he:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?he:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Uc,"%eval%":eval,"%EvalError%":Nc,"%Float16Array%":typeof Float16Array=="undefined"?he:Float16Array,"%Float32Array%":typeof Float32Array=="undefined"?he:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?he:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?he:FinalizationRegistry,"%Function%":Ia,"%GeneratorFunction%":zt,"%Int8Array%":typeof Int8Array=="undefined"?he:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?he:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?he:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Ht&&Ue?Ue(Ue([][Symbol.iterator]())):he,"%JSON%":typeof JSON=="object"?JSON:he,"%Map%":typeof Map=="undefined"?he:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Ht||!Ue?he:Ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Lc,"%Object.getOwnPropertyDescriptor%":sr,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?he:Promise,"%Proxy%":typeof Proxy=="undefined"?he:Proxy,"%RangeError%":Hc,"%ReferenceError%":$c,"%Reflect%":typeof Reflect=="undefined"?he:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?he:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Ht||!Ue?he:Ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?he:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Ht&&Ue?Ue(""[Symbol.iterator]()):he,"%Symbol%":Ht?Symbol:he,"%SyntaxError%":Vt,"%ThrowTypeError%":Zc,"%TypedArray%":eu,"%TypeError%":Wt,"%Uint8Array%":typeof Uint8Array=="undefined"?he:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?he:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?he:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?he:Uint32Array,"%URIError%":qc,"%WeakMap%":typeof WeakMap=="undefined"?he:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?he:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?he:WeakSet,"%Function.prototype.call%":lr,"%Function.prototype.apply%":Ra,"%Object.defineProperty%":Yc,"%Object.getPrototypeOf%":Qc,"%Math.abs%":zc,"%Math.floor%":Wc,"%Math.max%":Gc,"%Math.min%":Kc,"%Math.pow%":Vc,"%Math.round%":jc,"%Math.sign%":Xc,"%Reflect.getPrototypeOf%":Jc};if(Ue)try{null.error}catch(t){var tu=Ue(Ue(t));It["%Error.prototype%"]=tu}var ru=function t(e){var r;if(e==="%AsyncFunction%")r=q0("async function () {}");else if(e==="%GeneratorFunction%")r=q0("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=q0("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var i=t("%AsyncGenerator%");i&&Ue&&(r=Ue(i.prototype))}return It[e]=r,r},qi={__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"]},hr=Jr(),Vr=Mc(),nu=hr.call(lr,Array.prototype.concat),iu=hr.call(Ra,Array.prototype.splice),zi=hr.call(lr,String.prototype.replace),jr=hr.call(lr,String.prototype.slice),ou=hr.call(lr,RegExp.prototype.exec),au=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,su=/\\(\\)?/g,fu=function(e){var r=jr(e,0,1),n=jr(e,-1);if(r==="%"&&n!=="%")throw new Vt("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new Vt("invalid intrinsic syntax, expected opening `%`");var i=[];return zi(e,au,function(o,a,s,x){i[i.length]=s?zi(x,su,"$1"):a||o}),i},cu=function(e,r){var n=e,i;if(Vr(qi,n)&&(i=qi[n],n="%"+i[0]+"%"),Vr(It,n)){var o=It[n];if(o===zt&&(o=ru(n)),typeof o=="undefined"&&!r)throw new Wt("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:i,name:n,value:o}}throw new Vt("intrinsic "+e+" does not exist!")},ei=function(e,r){if(typeof e!="string"||e.length===0)throw new Wt("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new Wt('"allowMissing" argument must be a boolean');if(ou(/^%?[^%]*%?$/,e)===null)throw new Vt("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=fu(e),i=n.length>0?n[0]:"",o=cu("%"+i+"%",r),a=o.name,s=o.value,x=!1,f=o.alias;f&&(i=f[0],iu(n,nu([0,1],f)));for(var l=1,v=!0;l<n.length;l+=1){var d=n[l],g=jr(d,0,1),y=jr(d,-1);if((g==='"'||g==="'"||g==="`"||y==='"'||y==="'"||y==="`")&&g!==y)throw new Vt("property names with quotes must have matching quotes");if((d==="constructor"||!v)&&(x=!0),i+="."+d,a="%"+i+"%",Vr(It,a))s=It[a];else if(s!=null){if(!(d in s)){if(!r)throw new Wt("base intrinsic for "+e+" exists, but the property is not available.");return}if(sr&&l+1>=n.length){var m=sr(s,d);v=!!m,v&&"get"in m&&!("originalValue"in m.get)?s=m.get:s=s[d]}else v=Vr(s,d),s=s[d];v&&!x&&(It[a]=s)}}return s},Oa=ei,ka=Ta,uu=ka([Oa("%String.prototype.indexOf%")]),Pa=function(e,r){var n=Oa(e,!!r);return typeof n=="function"&&uu(e,".prototype.")>-1?ka([n]):n},lu=ei,xr=Pa,hu=Zr,xu=Xt,Wi=lu("%Map%",!0),du=xr("Map.prototype.get",!0),pu=xr("Map.prototype.set",!0),vu=xr("Map.prototype.has",!0),yu=xr("Map.prototype.delete",!0),mu=xr("Map.prototype.size",!0),Ma=!!Wi&&function(){var e,r={assert:function(n){if(!r.has(n))throw new xu("Side channel does not contain "+hu(n))},delete:function(n){if(e){var i=yu(e,n);return mu(e)===0&&(e=void 0),i}return!1},get:function(n){if(e)return du(e,n)},has:function(n){return e?vu(e,n):!1},set:function(n,i){e||(e=new Wi),pu(e,n,i)}};return r},gu=ei,e0=Pa,Au=Zr,Tr=Ma,Eu=Xt,__$t__=gu("%WeakMap%",!0),Bu=e0("WeakMap.prototype.get",!0),wu=e0("WeakMap.prototype.set",!0),Cu=e0("WeakMap.prototype.has",!0),bu=e0("WeakMap.prototype.delete",!0),Fu=__$t__?function(){var e,r,n={assert:function(i){if(!n.has(i))throw new Eu("Side channel does not contain "+Au(i))},delete:function(i){if(__$t__&&i&&(typeof i=="object"||typeof i=="function")){if(e)return bu(e,i)}else if(Tr&&r)return r.delete(i);return!1},get:function(i){return __$t__&&i&&(typeof i=="object"||typeof i=="function")&&e?Bu(e,i):r&&r.get(i)},has:function(i){return __$t__&&i&&(typeof i=="object"||typeof i=="function")&&e?Cu(e,i):!!r&&r.has(i)},set:function(i,o){__$t__&&i&&(typeof i=="object"||typeof i=="function")?(e||(e=new __$t__),wu(e,i,o)):Tr&&(r||(r=Tr()),r.set(i,o))}};return n}:Tr,Du=Xt,_u=Zr,Su=nc,Tu=Ma,Iu=Fu,Ru=Iu||Tu||Su,Ou=function(){var e,r={assert:function(n){if(!r.has(n))throw new Du("Side channel does not contain "+_u(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=Ru()),e.set(n,i)}};return r},ku=String.prototype.replace,Pu=/%20/g,W0={RFC1738:"RFC1738",RFC3986:"RFC3986"},ti={default:W0.RFC3986,formatters:{RFC1738:function(t){return ku.call(t,Pu,"+")},RFC3986:function(t){return String(t)}},RFC1738:W0.RFC1738,RFC3986:W0.RFC3986},Mu=ti,G0=Object.prototype.hasOwnProperty,St=Array.isArray,at=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),Lu=function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(St(n)){for(var i=[],o=0;o<n.length;++o)typeof n[o]!="undefined"&&i.push(n[o]);r.obj[r.prop]=i}}},La=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},Uu=function t(e,r,n){if(!r)return e;if(typeof r!="object"&&typeof r!="function"){if(St(e))e.push(r);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!G0.call(Object.prototype,r))&&(e[r]=!0);else return[e,r];return e}if(!e||typeof e!="object")return[e].concat(r);var i=e;return St(e)&&!St(r)&&(i=La(e,n)),St(e)&&St(r)?(r.forEach(function(o,a){if(G0.call(e,a)){var s=e[a];s&&typeof s=="object"&&o&&typeof o=="object"?e[a]=t(s,o,n):e.push(o)}else e[a]=o}),e):Object.keys(r).reduce(function(o,a){var s=r[a];return G0.call(o,a)?o[a]=t(o[a],s,n):o[a]=s,o},i)},Nu=function(e,r){return Object.keys(r).reduce(function(n,i){return n[i]=r[i],n},e)},Hu=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}},K0=1024,$u=function(e,r,n,i,o){if(e.length===0)return e;var a=e;if(typeof e=="symbol"?a=Symbol.prototype.toString.call(e):typeof e!="string"&&(a=String(e)),n==="iso-8859-1")return escape(a).replace(/%u[0-9a-f]{4}/gi,function(g){return"%26%23"+parseInt(g.slice(2),16)+"%3B"});for(var s="",x=0;x<a.length;x+=K0){for(var f=a.length>=K0?a.slice(x,x+K0):a,l=[],v=0;v<f.length;++v){var d=f.charCodeAt(v);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===Mu.RFC1738&&(d===40||d===41)){l[l.length]=f.charAt(v);continue}if(d<128){l[l.length]=at[d];continue}if(d<2048){l[l.length]=at[192|d>>6]+at[128|d&63];continue}if(d<55296||d>=57344){l[l.length]=at[224|d>>12]+at[128|d>>6&63]+at[128|d&63];continue}v+=1,d=65536+((d&1023)<<10|f.charCodeAt(v)&1023),l[l.length]=at[240|d>>18]+at[128|d>>12&63]+at[128|d>>6&63]+at[128|d&63]}s+=l.join("")}return s},qu=function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],a=o.obj[o.prop],s=Object.keys(a),x=0;x<s.length;++x){var f=s[x],l=a[f];typeof l=="object"&&l!==null&&n.indexOf(l)===-1&&(r.push({obj:a,prop:f}),n.push(l))}return Lu(r),e},zu=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Wu=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Gu=function(e,r){return[].concat(e,r)},Ku=function(e,r){if(St(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(r(e[i]));return n}return r(e)},Ua={arrayToObject:La,assign:Nu,combine:Gu,compact:qu,decode:Hu,encode:$u,isBuffer:Wu,isRegExp:zu,maybeMap:Ku,merge:Uu},Na=Ou,$r=Ua,ar=ti,Vu=Object.prototype.hasOwnProperty,Ha={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},ut=Array.isArray,ju=Array.prototype.push,$a=function(t,e){ju.apply(t,ut(e)?e:[e])},Xu=Date.prototype.toISOString,Gi=ar.default,Re={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:$r.encode,encodeValuesOnly:!1,filter:void 0,format:Gi,formatter:ar.formatters[Gi],indices:!1,serializeDate:function(e){return Xu.call(e)},skipNulls:!1,strictNullHandling:!1},Yu=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},V0={},Zu=function t(e,r,n,i,o,a,s,x,f,l,v,d,g,y,m,A,D,C){for(var B=e,b=C,_=0,T=!1;(b=b.get(V0))!==void 0&&!T;){var k=b.get(e);if(_+=1,typeof k!="undefined"){if(k===_)throw new RangeError("Cyclic object value");T=!0}typeof b.get(V0)=="undefined"&&(_=0)}if(typeof l=="function"?B=l(r,B):B instanceof Date?B=g(B):n==="comma"&&ut(B)&&(B=$r.maybeMap(B,function(J){return J instanceof Date?g(J):J})),B===null){if(a)return f&&!A?f(r,Re.encoder,D,"key",y):r;B=""}if(Yu(B)||$r.isBuffer(B)){if(f){var $=A?r:f(r,Re.encoder,D,"key",y);return[m($)+"="+m(f(B,Re.encoder,D,"value",y))]}return[m(r)+"="+m(String(B))]}var X=[];if(typeof B=="undefined")return X;var I;if(n==="comma"&&ut(B))A&&f&&(B=$r.maybeMap(B,f)),I=[{value:B.length>0?B.join(",")||null:void 0}];else if(ut(l))I=l;else{var P=Object.keys(B);I=v?P.sort(v):P}var G=x?String(r).replace(/\./g,"%2E"):String(r),S=i&&ut(B)&&B.length===1?G+"[]":G;if(o&&ut(B)&&B.length===0)return S+"[]";for(var N=0;N<I.length;++N){var M=I[N],H=typeof M=="object"&&M&&typeof M.value!="undefined"?M.value:B[M];if(!(s&&H===null)){var Y=d&&x?String(M).replace(/\./g,"%2E"):String(M),W=ut(B)?typeof n=="function"?n(S,Y):S:S+(d?"."+Y:"["+Y+"]");C.set(e,_);var ee=Na();ee.set(V0,C),$a(X,t(H,W,n,i,o,a,s,x,n==="comma"&&A&&ut(B)?null:f,l,v,d,g,y,m,A,D,ee))}}return X},Qu=function(e){if(!e)return Re;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||Re.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=ar.default;if(typeof e.format!="undefined"){if(!Vu.call(ar.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var i=ar.formatters[n],o=Re.filter;(typeof e.filter=="function"||ut(e.filter))&&(o=e.filter);var a;if(e.arrayFormat in Ha?a=e.arrayFormat:"indices"in e?a=e.indices?"indices":"repeat":a=Re.arrayFormat,"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var s=typeof e.allowDots=="undefined"?e.encodeDotInKeys===!0?!0:Re.allowDots:!!e.allowDots;return{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:Re.addQueryPrefix,allowDots:s,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Re.allowEmptyArrays,arrayFormat:a,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Re.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:typeof e.delimiter=="undefined"?Re.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:Re.encode,encodeDotInKeys:typeof e.encodeDotInKeys=="boolean"?e.encodeDotInKeys:Re.encodeDotInKeys,encoder:typeof e.encoder=="function"?e.encoder:Re.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:Re.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:Re.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:Re.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Re.strictNullHandling}},Ju=function(t,e){var r=t,n=Qu(e),i,o;typeof n.filter=="function"?(o=n.filter,r=o("",r)):ut(n.filter)&&(o=n.filter,i=o);var a=[];if(typeof r!="object"||r===null)return"";var s=Ha[n.arrayFormat],x=s==="comma"&&n.commaRoundTrip;i||(i=Object.keys(r)),n.sort&&i.sort(n.sort);for(var f=Na(),l=0;l<i.length;++l){var v=i[l],d=r[v];n.skipNulls&&d===null||$a(a,Zu(d,v,s,x,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,f))}var g=a.join(n.delimiter),y=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),g.length>0?y+g:""},Ot=Ua,Nn=Object.prototype.hasOwnProperty,Ki=Array.isArray,Fe={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Ot.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},el=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},tl="utf8=%26%2310003%3B",rl="utf8=%E2%9C%93",nl=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,a=i.split(r.delimiter,r.throwOnLimitExceeded?o+1:o);if(r.throwOnLimitExceeded&&a.length>o)throw new RangeError("Parameter limit exceeded. Only "+o+" parameter"+(o===1?"":"s")+" allowed.");var s=-1,x,f=r.charset;if(r.charsetSentinel)for(x=0;x<a.length;++x)a[x].indexOf("utf8=")===0&&(a[x]===rl?f="utf-8":a[x]===tl&&(f="iso-8859-1"),s=x,x=a.length);for(x=0;x<a.length;++x)if(x!==s){var l=a[x],v=l.indexOf("]="),d=v===-1?l.indexOf("="):v+1,g,y;d===-1?(g=r.decoder(l,Fe.decoder,f,"key"),y=r.strictNullHandling?null:""):(g=r.decoder(l.slice(0,d),Fe.decoder,f,"key"),y=Ot.maybeMap(qa(l.slice(d+1),r,Ki(n[g])?n[g].length:0),function(A){return r.decoder(A,Fe.decoder,f,"value")})),y&&r.interpretNumericEntities&&f==="iso-8859-1"&&(y=el(String(y))),l.indexOf("[]=")>-1&&(y=Ki(y)?[y]:y);var m=Nn.call(n,g);m&&r.duplicates==="combine"?n[g]=Ot.combine(n[g],y):(!m||r.duplicates==="last")&&(n[g]=y)}return n},il=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 a=n?e:qa(e,r,i),s=t.length-1;s>=0;--s){var x,f=t[s];if(f==="[]"&&r.parseArrays)x=r.allowEmptyArrays&&(a===""||r.strictNullHandling&&a===null)?[]:Ot.combine([],a);else{x=r.plainObjects?{__proto__:null}:{};var l=f.charAt(0)==="["&&f.charAt(f.length-1)==="]"?f.slice(1,-1):f,v=r.decodeDotInKeys?l.replace(/%2E/g,"."):l,d=parseInt(v,10);!r.parseArrays&&v===""?x={0:a}:!isNaN(d)&&f!==v&&String(d)===v&&d>=0&&r.parseArrays&&d<=r.arrayLimit?(x=[],x[d]=a):v!=="__proto__"&&(x[v]=a)}a=x}return a},ol=function(e,r,n,i){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/,s=/(\[[^[\]]*])/g,x=n.depth>0&&a.exec(o),f=x?o.slice(0,x.index):o,l=[];if(f){if(!n.plainObjects&&Nn.call(Object.prototype,f)&&!n.allowPrototypes)return;l.push(f)}for(var v=0;n.depth>0&&(x=s.exec(o))!==null&&v<n.depth;){if(v+=1,!n.plainObjects&&Nn.call(Object.prototype,x[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(x[1])}if(x){if(n.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+n.depth+" and strictDepth is true");l.push("["+o.slice(x.index)+"]")}return il(l,r,n,i)}},al=function(e){if(!e)return Fe;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"?Fe.charset:e.charset,n=typeof e.duplicates=="undefined"?Fe.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:Fe.allowDots:!!e.allowDots;return{allowDots:i,allowEmptyArrays:typeof e.allowEmptyArrays=="boolean"?!!e.allowEmptyArrays:Fe.allowEmptyArrays,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:Fe.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:Fe.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:Fe.arrayLimit,charset:r,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:Fe.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:Fe.comma,decodeDotInKeys:typeof e.decodeDotInKeys=="boolean"?e.decodeDotInKeys:Fe.decodeDotInKeys,decoder:typeof e.decoder=="function"?e.decoder:Fe.decoder,delimiter:typeof e.delimiter=="string"||Ot.isRegExp(e.delimiter)?e.delimiter:Fe.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:Fe.depth,duplicates:n,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:Fe.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:Fe.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:Fe.plainObjects,strictDepth:typeof e.strictDepth=="boolean"?!!e.strictDepth:Fe.strictDepth,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:Fe.strictNullHandling,throwOnLimitExceeded:typeof e.throwOnLimitExceeded=="boolean"?e.throwOnLimitExceeded:!1}},sl=function(t,e){var r=al(e);if(t===""||t===null||typeof t=="undefined")return r.plainObjects?{__proto__:null}:{};for(var n=typeof t=="string"?nl(t,r):t,i=r.plainObjects?{__proto__:null}:{},o=Object.keys(n),a=0;a<o.length;++a){var s=o[a],x=ol(s,n[s],r,typeof t=="string");i=Ot.merge(i,x,r)}return r.allowSparse===!0?i:Ot.compact(i)},fl=Ju,cl=sl,ul=ti,ll={formats:ul,parse:cl,stringify:fl};const hl=Xn(ll);function za(t,e){return function(){return t.apply(e,arguments)}}const{toString:xl}=Object.prototype,{getPrototypeOf:ri}=Object,{iterator:t0,toStringTag:Wa}=Symbol,r0=(t=>e=>{const r=xl.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),it=t=>(t=t.toLowerCase(),e=>r0(e)===t),n0=t=>e=>typeof e===t,{isArray:Yt}=Array,fr=n0("undefined");function dr(t){return t!==null&&!fr(t)&&t.constructor!==null&&!fr(t.constructor)&&Ve(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Ga=it("ArrayBuffer");function dl(t){let e;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Ga(t.buffer),e}const pl=n0("string"),Ve=n0("function"),Ka=n0("number"),pr=t=>t!==null&&typeof t=="object",vl=t=>t===!0||t===!1,qr=t=>{if(r0(t)!=="object")return!1;const e=ri(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Wa in t)&&!(t0 in t)},yl=t=>{if(!pr(t)||dr(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch(e){return!1}},ml=it("Date"),gl=it("File"),Al=it("Blob"),El=it("FileList"),Bl=t=>pr(t)&&Ve(t.pipe),wl=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||Ve(t.append)&&((e=r0(t))==="formdata"||e==="object"&&Ve(t.toString)&&t.toString()==="[object FormData]"))},Cl=it("URLSearchParams"),[bl,Fl,Dl,_l]=["ReadableStream","Request","Response","Headers"].map(it),Sl=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function vr(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t=="undefined")return;let n,i;if(typeof t!="object"&&(t=[t]),Yt(t))for(n=0,i=t.length;n<i;n++)e.call(null,t[n],n,t);else{if(dr(t))return;const o=r?Object.getOwnPropertyNames(t):Object.keys(t),a=o.length;let s;for(n=0;n<a;n++)s=o[n],e.call(null,t[s],s,t)}}function Va(t,e){if(dr(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 Tt=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:global,ja=t=>!fr(t)&&t!==Tt;function Hn(){const{caseless:t}=ja(this)&&this||{},e={},r=(n,i)=>{const o=t&&Va(e,i)||i;qr(e[o])&&qr(n)?e[o]=Hn(e[o],n):qr(n)?e[o]=Hn({},n):Yt(n)?e[o]=n.slice():e[o]=n};for(let n=0,i=arguments.length;n<i;n++)arguments[n]&&vr(arguments[n],r);return e}const Tl=(t,e,r,{allOwnKeys:n}={})=>(vr(e,(i,o)=>{r&&Ve(i)?t[o]=za(i,r):t[o]=i},{allOwnKeys:n}),t),Il=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Rl=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},Ol=(t,e,r,n)=>{let i,o,a;const s={};if(e=e||{},t==null)return e;do{for(i=Object.getOwnPropertyNames(t),o=i.length;o-- >0;)a=i[o],(!n||n(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=r!==!1&&ri(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},kl=(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},Pl=t=>{if(!t)return null;if(Yt(t))return t;let e=t.length;if(!Ka(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},Ml=(t=>e=>t&&e instanceof t)(typeof Uint8Array!="undefined"&&ri(Uint8Array)),Ll=(t,e)=>{const n=(t&&t[t0]).call(t);let i;for(;(i=n.next())&&!i.done;){const o=i.value;e.call(t,o[0],o[1])}},Ul=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},Nl=it("HTMLFormElement"),Hl=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,i){return n.toUpperCase()+i}),Vi=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),$l=it("RegExp"),Xa=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};vr(r,(i,o)=>{let a;(a=e(i,o,t))!==!1&&(n[o]=a||i)}),Object.defineProperties(t,n)},ql=t=>{Xa(t,(e,r)=>{if(Ve(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Ve(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+"'")})}})},zl=(t,e)=>{const r={},n=i=>{i.forEach(o=>{r[o]=!0})};return Yt(t)?n(t):n(String(t).split(e)),r},Wl=()=>{},Gl=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Kl(t){return!!(t&&Ve(t.append)&&t[Wa]==="FormData"&&t[t0])}const Vl=t=>{const e=new Array(10),r=(n,i)=>{if(pr(n)){if(e.indexOf(n)>=0)return;if(dr(n))return n;if(!("toJSON"in n)){e[i]=n;const o=Yt(n)?[]:{};return vr(n,(a,s)=>{const x=r(a,i+1);!fr(x)&&(o[s]=x)}),e[i]=void 0,o}}return n};return r(t,0)},jl=it("AsyncFunction"),Xl=t=>t&&(pr(t)||Ve(t))&&Ve(t.then)&&Ve(t.catch),Ya=((t,e)=>t?setImmediate:e?((r,n)=>(Tt.addEventListener("message",({source:i,data:o})=>{i===Tt&&o===r&&n.length&&n.shift()()},!1),i=>{n.push(i),Tt.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ve(Tt.postMessage)),Yl=typeof queueMicrotask!="undefined"?queueMicrotask.bind(Tt):typeof process!="undefined"&&process.nextTick||Ya,Zl=t=>t!=null&&Ve(t[t0]),q={isArray:Yt,isArrayBuffer:Ga,isBuffer:dr,isFormData:wl,isArrayBufferView:dl,isString:pl,isNumber:Ka,isBoolean:vl,isObject:pr,isPlainObject:qr,isEmptyObject:yl,isReadableStream:bl,isRequest:Fl,isResponse:Dl,isHeaders:_l,isUndefined:fr,isDate:ml,isFile:gl,isBlob:Al,isRegExp:$l,isFunction:Ve,isStream:Bl,isURLSearchParams:Cl,isTypedArray:Ml,isFileList:El,forEach:vr,merge:Hn,extend:Tl,trim:Sl,stripBOM:Il,inherits:Rl,toFlatObject:Ol,kindOf:r0,kindOfTest:it,endsWith:kl,toArray:Pl,forEachEntry:Ll,matchAll:Ul,isHTMLForm:Nl,hasOwnProperty:Vi,hasOwnProp:Vi,reduceDescriptors:Xa,freezeMethods:ql,toObjectSet:zl,toCamelCase:Hl,noop:Wl,toFiniteNumber:Gl,findKey:Va,global:Tt,isContextDefined:ja,isSpecCompliantForm:Kl,toJSONObject:Vl,isAsyncFn:jl,isThenable:Xl,setImmediate:Ya,asap:Yl,isIterable:Zl};function ue(t,e,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}q.inherits(ue,Error,{toJSON:function(){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:q.toJSONObject(this.config),code:this.code,status:this.status}}});const Za=ue.prototype,Qa={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{Qa[t]={value:t}});Object.defineProperties(ue,Qa);Object.defineProperty(Za,"isAxiosError",{value:!0});ue.from=(t,e,r,n,i,o)=>{const a=Object.create(Za);return q.toFlatObject(t,a,function(x){return x!==Error.prototype},s=>s!=="isAxiosError"),ue.call(a,t.message,e,r,n,i),a.cause=t,a.name=t.name,o&&Object.assign(a,o),a};const Ql=null;function $n(t){return q.isPlainObject(t)||q.isArray(t)}function Ja(t){return q.endsWith(t,"[]")?t.slice(0,-2):t}function ji(t,e,r){return t?t.concat(e).map(function(i,o){return i=Ja(i),!r&&o?"["+i+"]":i}).join(r?".":""):e}function Jl(t){return q.isArray(t)&&!t.some($n)}const e1=q.toFlatObject(q,{},null,function(e){return/^is[A-Z]/.test(e)});function i0(t,e,r){if(!q.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=q.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,A){return!q.isUndefined(A[m])});const n=r.metaTokens,i=r.visitor||l,o=r.dots,a=r.indexes,x=(r.Blob||typeof Blob!="undefined"&&Blob)&&q.isSpecCompliantForm(e);if(!q.isFunction(i))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(q.isDate(y))return y.toISOString();if(q.isBoolean(y))return y.toString();if(!x&&q.isBlob(y))throw new ue("Blob is not supported. Use a Buffer instead.");return q.isArrayBuffer(y)||q.isTypedArray(y)?x&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function l(y,m,A){let D=y;if(y&&!A&&typeof y=="object"){if(q.endsWith(m,"{}"))m=n?m:m.slice(0,-2),y=JSON.stringify(y);else if(q.isArray(y)&&Jl(y)||(q.isFileList(y)||q.endsWith(m,"[]"))&&(D=q.toArray(y)))return m=Ja(m),D.forEach(function(B,b){!(q.isUndefined(B)||B===null)&&e.append(a===!0?ji([m],b,o):a===null?m:m+"[]",f(B))}),!1}return $n(y)?!0:(e.append(ji(A,m,o),f(y)),!1)}const v=[],d=Object.assign(e1,{defaultVisitor:l,convertValue:f,isVisitable:$n});function g(y,m){if(!q.isUndefined(y)){if(v.indexOf(y)!==-1)throw Error("Circular reference detected in "+m.join("."));v.push(y),q.forEach(y,function(D,C){(!(q.isUndefined(D)||D===null)&&i.call(e,D,q.isString(C)?C.trim():C,m,d))===!0&&g(D,m?m.concat(C):[C])}),v.pop()}}if(!q.isObject(t))throw new TypeError("data must be an object");return g(t),e}function Xi(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function ni(t,e){this._pairs=[],t&&i0(t,this,e)}const es=ni.prototype;es.append=function(e,r){this._pairs.push([e,r])};es.toString=function(e){const r=e?function(n){return e.call(this,n,Xi)}:Xi;return this._pairs.map(function(i){return r(i[0])+"="+r(i[1])},"").join("&")};function t1(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ts(t,e,r){if(!e)return t;const n=r&&r.encode||t1;q.isFunction(r)&&(r={serialize:r});const i=r&&r.serialize;let o;if(i?o=i(e,r):o=q.isURLSearchParams(e)?e.toString():new ni(e,r).toString(n),o){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+o}return t}class Yi{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){q.forEach(this.handlers,function(n){n!==null&&e(n)})}}const rs={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},r1=typeof URLSearchParams!="undefined"?URLSearchParams:ni,n1=typeof FormData!="undefined"?FormData:null,i1=typeof Blob!="undefined"?Blob:null,o1={isBrowser:!0,classes:{URLSearchParams:r1,FormData:n1,Blob:i1},protocols:["http","https","file","blob","url","data"]},ii=typeof window!="undefined"&&typeof document!="undefined",qn=typeof navigator=="object"&&navigator||void 0,a1=ii&&(!qn||["ReactNative","NativeScript","NS"].indexOf(qn.product)<0),s1=typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",f1=ii&&window.location.href||"http://localhost",c1=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:ii,hasStandardBrowserEnv:a1,hasStandardBrowserWebWorkerEnv:s1,navigator:qn,origin:f1},Symbol.toStringTag,{value:"Module"})),$e=te(te({},c1),o1);function u1(t,e){return i0(t,new $e.classes.URLSearchParams,te({visitor:function(r,n,i,o){return $e.isNode&&q.isBuffer(r)?(this.append(n,r.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},e))}function l1(t){return q.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function h1(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 ns(t){function e(r,n,i,o){let a=r[o++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),x=o>=r.length;return a=!a&&q.isArray(i)?i.length:a,x?(q.hasOwnProp(i,a)?i[a]=[i[a],n]:i[a]=n,!s):((!i[a]||!q.isObject(i[a]))&&(i[a]=[]),e(r,n,i[a],o)&&q.isArray(i[a])&&(i[a]=h1(i[a])),!s)}if(q.isFormData(t)&&q.isFunction(t.entries)){const r={};return q.forEachEntry(t,(n,i)=>{e(l1(n),i,r,0)}),r}return null}function x1(t,e,r){if(q.isString(t))try{return(e||JSON.parse)(t),q.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const yr={transitional:rs,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",i=n.indexOf("application/json")>-1,o=q.isObject(e);if(o&&q.isHTMLForm(e)&&(e=new FormData(e)),q.isFormData(e))return i?JSON.stringify(ns(e)):e;if(q.isArrayBuffer(e)||q.isBuffer(e)||q.isStream(e)||q.isFile(e)||q.isBlob(e)||q.isReadableStream(e))return e;if(q.isArrayBufferView(e))return e.buffer;if(q.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return u1(e,this.formSerializer).toString();if((s=q.isFileList(e))||n.indexOf("multipart/form-data")>-1){const x=this.env&&this.env.FormData;return i0(s?{"files[]":e}:e,x&&new x,this.formSerializer)}}return o||i?(r.setContentType("application/json",!1),x1(e)):e}],transformResponse:[function(e){const r=this.transitional||yr.transitional,n=r&&r.forcedJSONParsing,i=this.responseType==="json";if(q.isResponse(e)||q.isReadableStream(e))return e;if(e&&q.isString(e)&&(n&&!this.responseType||i)){const a=!(r&&r.silentJSONParsing)&&i;try{return JSON.parse(e)}catch(s){if(a)throw s.name==="SyntaxError"?ue.from(s,ue.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:$e.classes.FormData,Blob:$e.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};q.forEach(["delete","get","head","post","put","patch"],t=>{yr.headers[t]={}});const d1=q.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"]),p1=t=>{const e={};let r,n,i;return t&&t.split(`
|
|
5
|
+
`).forEach(function(a){i=a.indexOf(":"),r=a.substring(0,i).trim().toLowerCase(),n=a.substring(i+1).trim(),!(!r||e[r]&&d1[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Zi=Symbol("internals");function tr(t){return t&&String(t).trim().toLowerCase()}function zr(t){return t===!1||t==null?t:q.isArray(t)?t.map(zr):String(t)}function v1(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 y1=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function j0(t,e,r,n,i){if(q.isFunction(n))return n.call(this,e,r);if(i&&(e=r),!!q.isString(e)){if(q.isString(n))return e.indexOf(n)!==-1;if(q.isRegExp(n))return n.test(e)}}function m1(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function g1(t,e){const r=q.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(i,o,a){return this[n].call(this,e,i,o,a)},configurable:!0})})}let je=class{constructor(e){e&&this.set(e)}set(e,r,n){const i=this;function o(s,x,f){const l=tr(x);if(!l)throw new Error("header name must be a non-empty string");const v=q.findKey(i,l);(!v||i[v]===void 0||f===!0||f===void 0&&i[v]!==!1)&&(i[v||x]=zr(s))}const a=(s,x)=>q.forEach(s,(f,l)=>o(f,l,x));if(q.isPlainObject(e)||e instanceof this.constructor)a(e,r);else if(q.isString(e)&&(e=e.trim())&&!y1(e))a(p1(e),r);else if(q.isObject(e)&&q.isIterable(e)){let s={},x,f;for(const l of e){if(!q.isArray(l))throw TypeError("Object iterator must return a key-value pair");s[f=l[0]]=(x=s[f])?q.isArray(x)?[...x,l[1]]:[x,l[1]]:l[1]}a(s,r)}else e!=null&&o(r,e,n);return this}get(e,r){if(e=tr(e),e){const n=q.findKey(this,e);if(n){const i=this[n];if(!r)return i;if(r===!0)return v1(i);if(q.isFunction(r))return r.call(this,i,n);if(q.isRegExp(r))return r.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=tr(e),e){const n=q.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||j0(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let i=!1;function o(a){if(a=tr(a),a){const s=q.findKey(n,a);s&&(!r||j0(n,n[s],s,r))&&(delete n[s],i=!0)}}return q.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||j0(this,this[o],o,e,!0))&&(delete this[o],i=!0)}return i}normalize(e){const r=this,n={};return q.forEach(this,(i,o)=>{const a=q.findKey(n,o);if(a){r[a]=zr(i),delete r[o];return}const s=e?m1(o):String(o).trim();s!==o&&delete r[o],r[s]=zr(i),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return q.forEach(this,(n,i)=>{n!=null&&n!==!1&&(r[i]=e&&q.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(`
|
|
6
|
+
`)}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[Zi]=this[Zi]={accessors:{}}).accessors,i=this.prototype;function o(a){const s=tr(a);n[s]||(g1(i,a),n[s]=!0)}return q.isArray(e)?e.forEach(o):o(e),this}};je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);q.reduceDescriptors(je.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});q.freezeMethods(je);function X0(t,e){const r=this||yr,n=e||r,i=je.from(n.headers);let o=n.data;return q.forEach(t,function(s){o=s.call(r,o,i.normalize(),e?e.status:void 0)}),i.normalize(),o}function is(t){return!!(t&&t.__CANCEL__)}function Zt(t,e,r){ue.call(this,t==null?"canceled":t,ue.ERR_CANCELED,e,r),this.name="CanceledError"}q.inherits(Zt,ue,{__CANCEL__:!0});function os(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new ue("Request failed with status code "+r.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function A1(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function E1(t,e){t=t||10;const r=new Array(t),n=new Array(t);let i=0,o=0,a;return e=e!==void 0?e:1e3,function(x){const f=Date.now(),l=n[o];a||(a=f),r[i]=x,n[i]=f;let v=o,d=0;for(;v!==i;)d+=r[v++],v=v%t;if(i=(i+1)%t,i===o&&(o=(o+1)%t),f-a<e)return;const g=l&&f-l;return g?Math.round(d*1e3/g):void 0}}function B1(t,e){let r=0,n=1e3/e,i,o;const a=(f,l=Date.now())=>{r=l,i=null,o&&(clearTimeout(o),o=null),t(...f)};return[(...f)=>{const l=Date.now(),v=l-r;v>=n?a(f,l):(i=f,o||(o=setTimeout(()=>{o=null,a(i)},n-v)))},()=>i&&a(i)]}const Xr=(t,e,r=3)=>{let n=0;const i=E1(50,250);return B1(o=>{const a=o.loaded,s=o.lengthComputable?o.total:void 0,x=a-n,f=i(x),l=a<=s;n=a;const v={loaded:a,total:s,progress:s?a/s:void 0,bytes:x,rate:f||void 0,estimated:f&&s&&l?(s-a)/f:void 0,event:o,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(v)},r)},Qi=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},Ji=t=>(...e)=>q.asap(()=>t(...e)),w1=$e.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,$e.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL($e.origin),$e.navigator&&/(msie|trident)/i.test($e.navigator.userAgent)):()=>!0,C1=$e.hasStandardBrowserEnv?{write(t,e,r,n,i,o){const a=[t+"="+encodeURIComponent(e)];q.isNumber(r)&&a.push("expires="+new Date(r).toGMTString()),q.isString(n)&&a.push("path="+n),q.isString(i)&&a.push("domain="+i),o===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function b1(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function F1(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function as(t,e,r){let n=!b1(e);return t&&(n||r==!1)?F1(t,e):e}const eo=t=>t instanceof je?te({},t):t;function kt(t,e){e=e||{};const r={};function n(f,l,v,d){return q.isPlainObject(f)&&q.isPlainObject(l)?q.merge.call({caseless:d},f,l):q.isPlainObject(l)?q.merge({},l):q.isArray(l)?l.slice():l}function i(f,l,v,d){if(q.isUndefined(l)){if(!q.isUndefined(f))return n(void 0,f,v,d)}else return n(f,l,v,d)}function o(f,l){if(!q.isUndefined(l))return n(void 0,l)}function a(f,l){if(q.isUndefined(l)){if(!q.isUndefined(f))return n(void 0,f)}else return n(void 0,l)}function s(f,l,v){if(v in e)return n(f,l);if(v in t)return n(void 0,f)}const x={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(f,l,v)=>i(eo(f),eo(l),v,!0)};return q.forEach(Object.keys(te(te({},t),e)),function(l){const v=x[l]||i,d=v(t[l],e[l],l);q.isUndefined(d)&&v!==s||(r[l]=d)}),r}const ss=t=>{const e=kt({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:o,headers:a,auth:s}=e;e.headers=a=je.from(a),e.url=ts(as(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let x;if(q.isFormData(r)){if($e.hasStandardBrowserEnv||$e.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if((x=a.getContentType())!==!1){const[f,...l]=x?x.split(";").map(v=>v.trim()).filter(Boolean):[];a.setContentType([f||"multipart/form-data",...l].join("; "))}}if($e.hasStandardBrowserEnv&&(n&&q.isFunction(n)&&(n=n(e)),n||n!==!1&&w1(e.url))){const f=i&&o&&C1.read(o);f&&a.set(i,f)}return e},D1=typeof XMLHttpRequest!="undefined",_1=D1&&function(t){return new Promise(function(r,n){const i=ss(t);let o=i.data;const a=je.from(i.headers).normalize();let{responseType:s,onUploadProgress:x,onDownloadProgress:f}=i,l,v,d,g,y;function m(){g&&g(),y&&y(),i.cancelToken&&i.cancelToken.unsubscribe(l),i.signal&&i.signal.removeEventListener("abort",l)}let A=new XMLHttpRequest;A.open(i.method.toUpperCase(),i.url,!0),A.timeout=i.timeout;function D(){if(!A)return;const B=je.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),_={data:!s||s==="text"||s==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:B,config:t,request:A};os(function(k){r(k),m()},function(k){n(k),m()},_),A=null}"onloadend"in A?A.onloadend=D:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(D)},A.onabort=function(){A&&(n(new ue("Request aborted",ue.ECONNABORTED,t,A)),A=null)},A.onerror=function(){n(new ue("Network Error",ue.ERR_NETWORK,t,A)),A=null},A.ontimeout=function(){let b=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const _=i.transitional||rs;i.timeoutErrorMessage&&(b=i.timeoutErrorMessage),n(new ue(b,_.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,t,A)),A=null},o===void 0&&a.setContentType(null),"setRequestHeader"in A&&q.forEach(a.toJSON(),function(b,_){A.setRequestHeader(_,b)}),q.isUndefined(i.withCredentials)||(A.withCredentials=!!i.withCredentials),s&&s!=="json"&&(A.responseType=i.responseType),f&&([d,y]=Xr(f,!0),A.addEventListener("progress",d)),x&&A.upload&&([v,g]=Xr(x),A.upload.addEventListener("progress",v),A.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(l=B=>{A&&(n(!B||B.type?new Zt(null,t,A):B),A.abort(),A=null)},i.cancelToken&&i.cancelToken.subscribe(l),i.signal&&(i.signal.aborted?l():i.signal.addEventListener("abort",l)));const C=A1(i.url);if(C&&$e.protocols.indexOf(C)===-1){n(new ue("Unsupported protocol "+C+":",ue.ERR_BAD_REQUEST,t));return}A.send(o||null)})},S1=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,i;const o=function(f){if(!i){i=!0,s();const l=f instanceof Error?f:this.reason;n.abort(l instanceof ue?l:new Zt(l instanceof Error?l.message:l))}};let a=e&&setTimeout(()=>{a=null,o(new ue(`timeout ${e} of ms exceeded`,ue.ETIMEDOUT))},e);const s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(f=>{f.unsubscribe?f.unsubscribe(o):f.removeEventListener("abort",o)}),t=null)};t.forEach(f=>f.addEventListener("abort",o));const{signal:x}=n;return x.unsubscribe=()=>q.asap(s),x}},T1=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},I1=function(t,e){return C0(this,null,function*(){try{for(var r=pi(R1(t)),n,i,o;n=!(i=yield new _t(r.next())).done;n=!1){const a=i.value;yield*b0(T1(a,e))}}catch(i){o=[i]}finally{try{n&&(i=r.return)&&(yield new _t(i.call(r)))}finally{if(o)throw o[0]}}})},R1=function(t){return C0(this,null,function*(){if(t[Symbol.asyncIterator]){yield*b0(t);return}const e=t.getReader();try{for(;;){const{done:r,value:n}=yield new _t(e.read());if(r)break;yield n}}finally{yield new _t(e.cancel())}})},to=(t,e,r,n)=>{const i=I1(t,e);let o=0,a,s=f=>{a||(a=!0,n&&n(f))};return new ReadableStream({pull(f){return We(this,null,function*(){try{const{done:l,value:v}=yield i.next();if(l){s(),f.close();return}let d=v.byteLength;if(r){let g=o+=d;r(g)}f.enqueue(new Uint8Array(v))}catch(l){throw s(l),l}})},cancel(f){return s(f),i.return()}},{highWaterMark:2})},o0=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",fs=o0&&typeof ReadableStream=="function",O1=o0&&(typeof TextEncoder=="function"?(t=>e=>t.encode(e))(new TextEncoder):t=>We(exports,null,function*(){return new Uint8Array(yield new Response(t).arrayBuffer())})),cs=(t,...e)=>{try{return!!t(...e)}catch(r){return!1}},k1=fs&&cs(()=>{let t=!1;const e=new Request($e.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!e}),ro=64*1024,zn=fs&&cs(()=>q.isReadableStream(new Response("").body)),Yr={stream:zn&&(t=>t.body)};o0&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Yr[e]&&(Yr[e]=q.isFunction(t[e])?r=>r[e]():(r,n)=>{throw new ue(`Response type '${e}' is not supported`,ue.ERR_NOT_SUPPORT,n)})})})(new Response);const P1=t=>We(exports,null,function*(){if(t==null)return 0;if(q.isBlob(t))return t.size;if(q.isSpecCompliantForm(t))return(yield new Request($e.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(q.isArrayBufferView(t)||q.isArrayBuffer(t))return t.byteLength;if(q.isURLSearchParams(t)&&(t=t+""),q.isString(t))return(yield O1(t)).byteLength}),M1=(t,e)=>We(exports,null,function*(){const r=q.toFiniteNumber(t.getContentLength());return r==null?P1(e):r}),L1=o0&&(t=>We(exports,null,function*(){let{url:e,method:r,data:n,signal:i,cancelToken:o,timeout:a,onDownloadProgress:s,onUploadProgress:x,responseType:f,headers:l,withCredentials:v="same-origin",fetchOptions:d}=ss(t);f=f?(f+"").toLowerCase():"text";let g=S1([i,o&&o.toAbortSignal()],a),y;const m=g&&g.unsubscribe&&(()=>{g.unsubscribe()});let A;try{if(x&&k1&&r!=="get"&&r!=="head"&&(A=yield M1(l,n))!==0){let _=new Request(e,{method:"POST",body:n,duplex:"half"}),T;if(q.isFormData(n)&&(T=_.headers.get("content-type"))&&l.setContentType(T),_.body){const[k,$]=Qi(A,Xr(Ji(x)));n=to(_.body,ro,k,$)}}q.isString(v)||(v=v?"include":"omit");const D="credentials"in Request.prototype;y=new Request(e,Te(te({},d),{signal:g,method:r.toUpperCase(),headers:l.normalize().toJSON(),body:n,duplex:"half",credentials:D?v:void 0}));let C=yield fetch(y,d);const B=zn&&(f==="stream"||f==="response");if(zn&&(s||B&&m)){const _={};["status","statusText","headers"].forEach(X=>{_[X]=C[X]});const T=q.toFiniteNumber(C.headers.get("content-length")),[k,$]=s&&Qi(T,Xr(Ji(s),!0))||[];C=new Response(to(C.body,ro,k,()=>{$&&$(),m&&m()}),_)}f=f||"text";let b=yield Yr[q.findKey(Yr,f)||"text"](C,t);return!B&&m&&m(),yield new Promise((_,T)=>{os(_,T,{data:b,headers:je.from(C.headers),status:C.status,statusText:C.statusText,config:t,request:y})})}catch(D){throw m&&m(),D&&D.name==="TypeError"&&/Load failed|fetch/i.test(D.message)?Object.assign(new ue("Network Error",ue.ERR_NETWORK,t,y),{cause:D.cause||D}):ue.from(D,D&&D.code,t,y)}})),Wn={http:Ql,xhr:_1,fetch:L1};q.forEach(Wn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(r){}Object.defineProperty(t,"adapterName",{value:e})}});const no=t=>`- ${t}`,U1=t=>q.isFunction(t)||t===null||t===!1,us={getAdapter:t=>{t=q.isArray(t)?t:[t];const{length:e}=t;let r,n;const i={};for(let o=0;o<e;o++){r=t[o];let a;if(n=r,!U1(r)&&(n=Wn[(a=String(r)).toLowerCase()],n===void 0))throw new ue(`Unknown adapter '${a}'`);if(n)break;i[a||"#"+o]=n}if(!n){const o=Object.entries(i).map(([s,x])=>`adapter ${s} `+(x===!1?"is not supported by the environment":"is not available in the build"));let a=e?o.length>1?`since :
|
|
7
|
+
`+o.map(no).join(`
|
|
8
|
+
`):" "+no(o[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+a,"ERR_NOT_SUPPORT")}return n},adapters:Wn};function Y0(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Zt(null,t)}function io(t){return Y0(t),t.headers=je.from(t.headers),t.data=X0.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),us.getAdapter(t.adapter||yr.adapter)(t).then(function(n){return Y0(t),n.data=X0.call(t,t.transformResponse,n),n.headers=je.from(n.headers),n},function(n){return is(n)||(Y0(t),n&&n.response&&(n.response.data=X0.call(t,t.transformResponse,n.response),n.response.headers=je.from(n.response.headers))),Promise.reject(n)})}const ls="1.11.0",a0={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{a0[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const oo={};a0.transitional=function(e,r,n){function i(o,a){return"[Axios v"+ls+"] Transitional option '"+o+"'"+a+(n?". "+n:"")}return(o,a,s)=>{if(e===!1)throw new ue(i(a," has been removed"+(r?" in "+r:"")),ue.ERR_DEPRECATED);return r&&!oo[a]&&(oo[a]=!0,console.warn(i(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(o,a,s):!0}};a0.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function N1(t,e,r){if(typeof t!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let i=n.length;for(;i-- >0;){const o=n[i],a=e[o];if(a){const s=t[o],x=s===void 0||a(s,o,t);if(x!==!0)throw new ue("option "+o+" must be "+x,ue.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new ue("Unknown option "+o,ue.ERR_BAD_OPTION)}}const Wr={assertOptions:N1,validators:a0},st=Wr.validators;let Rt=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Yi,response:new Yi}}request(e,r){return We(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=i.stack?i.stack.replace(/^.+\n/,""):"";try{n.stack?o&&!String(n.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
9
|
+
`+o):n.stack=o}catch(a){}}throw n}})}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=kt(this.defaults,r);const{transitional:n,paramsSerializer:i,headers:o}=r;n!==void 0&&Wr.assertOptions(n,{silentJSONParsing:st.transitional(st.boolean),forcedJSONParsing:st.transitional(st.boolean),clarifyTimeoutError:st.transitional(st.boolean)},!1),i!=null&&(q.isFunction(i)?r.paramsSerializer={serialize:i}:Wr.assertOptions(i,{encode:st.function,serialize:st.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Wr.assertOptions(r,{baseUrl:st.spelling("baseURL"),withXsrfToken:st.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=o&&q.merge(o.common,o[r.method]);o&&q.forEach(["delete","get","head","post","put","patch","common"],y=>{delete o[y]}),r.headers=je.concat(a,o);const s=[];let x=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(r)===!1||(x=x&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const f=[];this.interceptors.response.forEach(function(m){f.push(m.fulfilled,m.rejected)});let l,v=0,d;if(!x){const y=[io.bind(this),void 0];for(y.unshift(...s),y.push(...f),d=y.length,l=Promise.resolve(r);v<d;)l=l.then(y[v++],y[v++]);return l}d=s.length;let g=r;for(v=0;v<d;){const y=s[v++],m=s[v++];try{g=y(g)}catch(A){m.call(this,A);break}}try{l=io.call(this,g)}catch(y){return Promise.reject(y)}for(v=0,d=f.length;v<d;)l=l.then(f[v++],f[v++]);return l}getUri(e){e=kt(this.defaults,e);const r=as(e.baseURL,e.url,e.allowAbsoluteUrls);return ts(r,e.params,e.paramsSerializer)}};q.forEach(["delete","get","head","options"],function(e){Rt.prototype[e]=function(r,n){return this.request(kt(n||{},{method:e,url:r,data:(n||{}).data}))}});q.forEach(["post","put","patch"],function(e){function r(n){return function(o,a,s){return this.request(kt(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:o,data:a}))}}Rt.prototype[e]=r(),Rt.prototype[e+"Form"]=r(!0)});let H1=class hs{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 a=new Promise(s=>{n.subscribe(s),o=s}).then(i);return a.cancel=function(){n.unsubscribe(o)},a},e(function(o,a,s){n.reason||(n.reason=new Zt(o,a,s),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 hs(function(i){e=i}),cancel:e}}};function $1(t){return function(r){return t.apply(null,r)}}function q1(t){return q.isObject(t)&&t.isAxiosError===!0}const Gn={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};Object.entries(Gn).forEach(([t,e])=>{Gn[e]=t});function xs(t){const e=new Rt(t),r=za(Rt.prototype.request,e);return q.extend(r,Rt.prototype,e,{allOwnKeys:!0}),q.extend(r,e,null,{allOwnKeys:!0}),r.create=function(i){return xs(kt(t,i))},r}const De=xs(yr);De.Axios=Rt;De.CanceledError=Zt;De.CancelToken=H1;De.isCancel=is;De.VERSION=ls;De.toFormData=i0;De.AxiosError=ue;De.Cancel=De.CanceledError;De.all=function(e){return Promise.all(e)};De.spread=$1;De.isAxiosError=q1;De.mergeConfig=kt;De.AxiosHeaders=je;De.formToJSON=t=>ns(q.isHTMLForm(t)?new FormData(t):t);De.getAdapter=us.getAdapter;De.HttpStatusCode=Gn;De.default=De;const{Axios:Px,AxiosError:Mx,CanceledError:Lx,isCancel:Ux,CancelToken:Nx,VERSION:Hx,all:$x,Cancel:qx,isAxiosError:zx,spread:Wx,toFormData:Gx,AxiosHeaders:Kx,HttpStatusCode:Vx,formToJSON:jx,getAdapter:Xx,mergeConfig:Yx}=De,Ee={NORMAL:"NORMAL",TEXT:"TEXT",AUDIO:"AUDIO",MP4:"MP4",CAMERA:"CAMERA",VIDEO_STREAM:"VIDEO_STREAM",POINT_VALUE:"POINT_VALUE",LIGHT_PLATE:"LIGHT_PLATE",TABLE:"TABLE",SWITCH:"SWITCH",RADIO:"RADIO",SLIDER:"SLIDER",SELECT:"SELECT",CHECKBOX:"CHECKBOX",TIME:"TIME",BUTTON:"BUTTON",INPUT:"INPUT"},nt={CUSTOM_MSG:"CUSTOM_MSG",OPEN_CAMERA:"OPEN_CAMERA",CLOSE_CAMERA:"CLOSE_CAMERA",OPEN_AUDIO:"OPEN_AUDIO",CLOSE_AUDIO:"CLOSE_AUDIO",CHANGE_GRAPH:"CHANGE_GRAPH"},z1={OFFLINE:0},Ir={Emit:7},W1={STOP:2},G1={1:1,2:2,3:3,4:4,5:5},ao={GRAPH:{SOCKET:"GRAPH_SOCKET"}},K1="/",V1=location.protocol==="https:";var ia,oa;(oa=(ia=window.meta)==null?void 0:ia.app)!=null&&oa.server_ip||location.origin;const j1=V1?"wss:":"ws:",X1=location.origin;var aa,sa,fa,ca;(sa=(aa=window==null?void 0:window.meta)==null?void 0:aa.graph)!=null&&sa.savePath,(ca=(fa=window==null?void 0:window.meta)==null?void 0:fa.graph)!=null&&ca.templatePath;const so=`${j1}//${location.host}/ws`,_e=De.create({baseURL:X1,timeout:window.REQUEST_TIMEOUT||3e4,withCredentials:!1,paramsSerializer:t=>hl.stringify(t)});_e.interceptors.request.use(t=>(t.headers["x-token"]="ewoglCJhbGcilDogpc3",t),t=>Promise.reject(t));_e.interceptors.response.use(t=>{const{data:e}=t;return Promise.resolve(e)},t=>Promise.reject(t));function Y1(t,e={},r={}){return new Promise(n=>{_e.get(t,te({params:e},r)).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function Z1(t,e={},r={}){return new Promise(n=>{_e.post(t,e,r).then(i=>n({res:i,err:null})).catch(i=>n({res:null,err:i}))})}function Q1(t,e={},r={}){return _e.get(t,te({params:e},r))}function J1(t,e={},r={}){return _e.post(t,e,r)}function eh(t,e={}){return _e.get(`/filehandle/${t}`,{params:e})}function th(t,e={},r={}){return _e.post(`/filehandle/${t}`,e,r)}function rh(t,e={}){return _e.get(`/user/${t}`,{params:e})}function nh(t,e={},r={}){return _e.post(`/user/${t}`,e,r)}function ih(t,e={}){return _e.get(`${t}`,e.local?{params:e,baseURL:K1}:{params:e})}function oh(t,e={}){return _e.get(`/media/${t}/`,{params:e})}function ah(t,e={},r={}){return _e.post(`/media/${t}/`,e,r)}function sh(t,e={}){return _e.get(`/common/${t}/`,{params:e})}function fh(t,e={},r={}){return _e.post(`/common/${t}/`,e,r)}function ch(t,e={}){return _e.get(`/history/${t}`,{params:e})}function uh(t,e={},r={}){return _e.post(`/history/${t}`,e,r)}function lh(t,e={}){return _e.get(`/common/factory/${t}`,{params:e})}function hh(t,e={},r={}){return _e.post(`/common/factory/${t}`,e,r)}function xh(t,e={}){return _e.get(`/factory/${t}`,{params:e})}function dh(t,e={},r={}){return _e.post(`/factory/${t}`,e,r)}const Kn={getApi:Y1,postApi:Z1,getFileApi:eh,postFileApi:th,getBaseApi:Q1,postBaseApi:J1,getUserApi:rh,postUserApi:nh,getGraphApi:ih,getMediaApi:oh,postMediaApi:ah,getCommonApi:sh,postCommonApi:fh,getHistoryApi:ch,postHistoryApi:uh,getFactoryApi:xh,postFactoryApi:dh,getCommonFactoryApi:lh,postCommonFactoryApi:hh};function ph(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 Vn=ph();function fo(t){return Object.prototype.toString.call(t).slice(8,-1)}var vh={exports:{}};function yh(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 Z0={exports:{}},co;function xe(){return co||(co=1,function(t,e){(function(r,n){t.exports=n()})(ce,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 ce!="undefined"&&ce.crypto&&(o=ce.crypto),!o&&typeof yh=="function")try{o=ya}catch(C){}var a=function(){if(o){if(typeof o.getRandomValues=="function")try{return o.getRandomValues(new Uint32Array(1))[0]}catch(C){}if(typeof o.randomBytes=="function")try{return o.randomBytes(4).readInt32LE()}catch(C){}}throw new Error("Native crypto module could not be used to get secure random number.")},s=Object.create||function(){function C(){}return function(B){var b;return C.prototype=B,b=new C,C.prototype=null,b}}(),x={},f=x.lib={},l=f.Base=function(){return{extend:function(C){var B=s(this);return C&&B.mixIn(C),(!B.hasOwnProperty("init")||this.init===B.init)&&(B.init=function(){B.$super.init.apply(this,arguments)}),B.init.prototype=B,B.$super=this,B},create:function(){var C=this.extend();return C.init.apply(C,arguments),C},init:function(){},mixIn:function(C){for(var B in C)C.hasOwnProperty(B)&&(this[B]=C[B]);C.hasOwnProperty("toString")&&(this.toString=C.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),v=f.WordArray=l.extend({init:function(C,B){C=this.words=C||[],B!=i?this.sigBytes=B:this.sigBytes=C.length*4},toString:function(C){return(C||g).stringify(this)},concat:function(C){var B=this.words,b=C.words,_=this.sigBytes,T=C.sigBytes;if(this.clamp(),_%4)for(var k=0;k<T;k++){var $=b[k>>>2]>>>24-k%4*8&255;B[_+k>>>2]|=$<<24-(_+k)%4*8}else for(var X=0;X<T;X+=4)B[_+X>>>2]=b[X>>>2];return this.sigBytes+=T,this},clamp:function(){var C=this.words,B=this.sigBytes;C[B>>>2]&=4294967295<<32-B%4*8,C.length=n.ceil(B/4)},clone:function(){var C=l.clone.call(this);return C.words=this.words.slice(0),C},random:function(C){for(var B=[],b=0;b<C;b+=4)B.push(a());return new v.init(B,C)}}),d=x.enc={},g=d.Hex={stringify:function(C){for(var B=C.words,b=C.sigBytes,_=[],T=0;T<b;T++){var k=B[T>>>2]>>>24-T%4*8&255;_.push((k>>>4).toString(16)),_.push((k&15).toString(16))}return _.join("")},parse:function(C){for(var B=C.length,b=[],_=0;_<B;_+=2)b[_>>>3]|=parseInt(C.substr(_,2),16)<<24-_%8*4;return new v.init(b,B/2)}},y=d.Latin1={stringify:function(C){for(var B=C.words,b=C.sigBytes,_=[],T=0;T<b;T++){var k=B[T>>>2]>>>24-T%4*8&255;_.push(String.fromCharCode(k))}return _.join("")},parse:function(C){for(var B=C.length,b=[],_=0;_<B;_++)b[_>>>2]|=(C.charCodeAt(_)&255)<<24-_%4*8;return new v.init(b,B)}},m=d.Utf8={stringify:function(C){try{return decodeURIComponent(escape(y.stringify(C)))}catch(B){throw new Error("Malformed UTF-8 data")}},parse:function(C){return y.parse(unescape(encodeURIComponent(C)))}},A=f.BufferedBlockAlgorithm=l.extend({reset:function(){this._data=new v.init,this._nDataBytes=0},_append:function(C){typeof C=="string"&&(C=m.parse(C)),this._data.concat(C),this._nDataBytes+=C.sigBytes},_process:function(C){var B,b=this._data,_=b.words,T=b.sigBytes,k=this.blockSize,$=k*4,X=T/$;C?X=n.ceil(X):X=n.max((X|0)-this._minBufferSize,0);var I=X*k,P=n.min(I*4,T);if(I){for(var G=0;G<I;G+=k)this._doProcessBlock(_,G);B=_.splice(0,I),b.sigBytes-=P}return new v.init(B,P)},clone:function(){var C=l.clone.call(this);return C._data=this._data.clone(),C},_minBufferSize:0});f.Hasher=A.extend({cfg:l.extend(),init:function(C){this.cfg=this.cfg.extend(C),this.reset()},reset:function(){A.reset.call(this),this._doReset()},update:function(C){return this._append(C),this._process(),this},finalize:function(C){C&&this._append(C);var B=this._doFinalize();return B},blockSize:16,_createHelper:function(C){return function(B,b){return new C.init(b).finalize(B)}},_createHmacHelper:function(C){return function(B,b){return new D.HMAC.init(C,b).finalize(B)}}});var D=x.algo={};return x}(Math);return r})}(Z0)),Z0.exports}var Q0={exports:{}},uo;function s0(){return uo||(uo=1,function(t,e){(function(r,n){t.exports=n(xe())})(ce,function(r){return function(n){var i=r,o=i.lib,a=o.Base,s=o.WordArray,x=i.x64={};x.Word=a.extend({init:function(f,l){this.high=f,this.low=l}}),x.WordArray=a.extend({init:function(f,l){f=this.words=f||[],l!=n?this.sigBytes=l:this.sigBytes=f.length*8},toX32:function(){for(var f=this.words,l=f.length,v=[],d=0;d<l;d++){var g=f[d];v.push(g.high),v.push(g.low)}return s.create(v,this.sigBytes)},clone:function(){for(var f=a.clone.call(this),l=f.words=this.words.slice(0),v=l.length,d=0;d<v;d++)l[d]=l[d].clone();return f}})}(),r})}(Q0)),Q0.exports}var J0={exports:{}},lo;function mh(){return lo||(lo=1,function(t,e){(function(r,n){t.exports=n(xe())})(ce,function(r){return function(){if(typeof ArrayBuffer=="function"){var n=r,i=n.lib,o=i.WordArray,a=o.init,s=o.init=function(x){if(x instanceof ArrayBuffer&&(x=new Uint8Array(x)),(x instanceof Int8Array||typeof Uint8ClampedArray!="undefined"&&x instanceof Uint8ClampedArray||x instanceof Int16Array||x instanceof Uint16Array||x instanceof Int32Array||x instanceof Uint32Array||x instanceof Float32Array||x instanceof Float64Array)&&(x=new Uint8Array(x.buffer,x.byteOffset,x.byteLength)),x instanceof Uint8Array){for(var f=x.byteLength,l=[],v=0;v<f;v++)l[v>>>2]|=x[v]<<24-v%4*8;a.call(this,l,f)}else a.apply(this,arguments)};s.prototype=o}}(),r.lib.WordArray})}(J0)),J0.exports}var en={exports:{}},ho;function gh(){return ho||(ho=1,function(t,e){(function(r,n){t.exports=n(xe())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Utf16=a.Utf16BE={stringify:function(x){for(var f=x.words,l=x.sigBytes,v=[],d=0;d<l;d+=2){var g=f[d>>>2]>>>16-d%4*8&65535;v.push(String.fromCharCode(g))}return v.join("")},parse:function(x){for(var f=x.length,l=[],v=0;v<f;v++)l[v>>>1]|=x.charCodeAt(v)<<16-v%2*16;return o.create(l,f*2)}},a.Utf16LE={stringify:function(x){for(var f=x.words,l=x.sigBytes,v=[],d=0;d<l;d+=2){var g=s(f[d>>>2]>>>16-d%4*8&65535);v.push(String.fromCharCode(g))}return v.join("")},parse:function(x){for(var f=x.length,l=[],v=0;v<f;v++)l[v>>>1]|=s(x.charCodeAt(v)<<16-v%2*16);return o.create(l,f*2)}};function s(x){return x<<8&4278255360|x>>>8&16711935}}(),r.enc.Utf16})}(en)),en.exports}var tn={exports:{}},xo;function Mt(){return xo||(xo=1,function(t,e){(function(r,n){t.exports=n(xe())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Base64={stringify:function(x){var f=x.words,l=x.sigBytes,v=this._map;x.clamp();for(var d=[],g=0;g<l;g+=3)for(var y=f[g>>>2]>>>24-g%4*8&255,m=f[g+1>>>2]>>>24-(g+1)%4*8&255,A=f[g+2>>>2]>>>24-(g+2)%4*8&255,D=y<<16|m<<8|A,C=0;C<4&&g+C*.75<l;C++)d.push(v.charAt(D>>>6*(3-C)&63));var B=v.charAt(64);if(B)for(;d.length%4;)d.push(B);return d.join("")},parse:function(x){var f=x.length,l=this._map,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var d=0;d<l.length;d++)v[l.charCodeAt(d)]=d}var g=l.charAt(64);if(g){var y=x.indexOf(g);y!==-1&&(f=y)}return s(x,f,v)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="};function s(x,f,l){for(var v=[],d=0,g=0;g<f;g++)if(g%4){var y=l[x.charCodeAt(g-1)]<<g%4*2,m=l[x.charCodeAt(g)]>>>6-g%4*2,A=y|m;v[d>>>2]|=A<<24-d%4*8,d++}return o.create(v,d)}}(),r.enc.Base64})}(tn)),tn.exports}var rn={exports:{}},po;function Ah(){return po||(po=1,function(t,e){(function(r,n){t.exports=n(xe())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.enc;a.Base64url={stringify:function(x,f){f===void 0&&(f=!0);var l=x.words,v=x.sigBytes,d=f?this._safe_map:this._map;x.clamp();for(var g=[],y=0;y<v;y+=3)for(var m=l[y>>>2]>>>24-y%4*8&255,A=l[y+1>>>2]>>>24-(y+1)%4*8&255,D=l[y+2>>>2]>>>24-(y+2)%4*8&255,C=m<<16|A<<8|D,B=0;B<4&&y+B*.75<v;B++)g.push(d.charAt(C>>>6*(3-B)&63));var b=d.charAt(64);if(b)for(;g.length%4;)g.push(b);return g.join("")},parse:function(x,f){f===void 0&&(f=!0);var l=x.length,v=f?this._safe_map:this._map,d=this._reverseMap;if(!d){d=this._reverseMap=[];for(var g=0;g<v.length;g++)d[v.charCodeAt(g)]=g}var y=v.charAt(64);if(y){var m=x.indexOf(y);m!==-1&&(l=m)}return s(x,l,d)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",_safe_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_"};function s(x,f,l){for(var v=[],d=0,g=0;g<f;g++)if(g%4){var y=l[x.charCodeAt(g-1)]<<g%4*2,m=l[x.charCodeAt(g)]>>>6-g%4*2,A=y|m;v[d>>>2]|=A<<24-d%4*8,d++}return o.create(v,d)}}(),r.enc.Base64url})}(rn)),rn.exports}var nn={exports:{}},vo;function Lt(){return vo||(vo=1,function(t,e){(function(r,n){t.exports=n(xe())})(ce,function(r){return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,x=i.algo,f=[];(function(){for(var m=0;m<64;m++)f[m]=n.abs(n.sin(m+1))*4294967296|0})();var l=x.MD5=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(m,A){for(var D=0;D<16;D++){var C=A+D,B=m[C];m[C]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360}var b=this._hash.words,_=m[A+0],T=m[A+1],k=m[A+2],$=m[A+3],X=m[A+4],I=m[A+5],P=m[A+6],G=m[A+7],S=m[A+8],N=m[A+9],M=m[A+10],H=m[A+11],Y=m[A+12],W=m[A+13],ee=m[A+14],J=m[A+15],O=b[0],U=b[1],K=b[2],z=b[3];O=v(O,U,K,z,_,7,f[0]),z=v(z,O,U,K,T,12,f[1]),K=v(K,z,O,U,k,17,f[2]),U=v(U,K,z,O,$,22,f[3]),O=v(O,U,K,z,X,7,f[4]),z=v(z,O,U,K,I,12,f[5]),K=v(K,z,O,U,P,17,f[6]),U=v(U,K,z,O,G,22,f[7]),O=v(O,U,K,z,S,7,f[8]),z=v(z,O,U,K,N,12,f[9]),K=v(K,z,O,U,M,17,f[10]),U=v(U,K,z,O,H,22,f[11]),O=v(O,U,K,z,Y,7,f[12]),z=v(z,O,U,K,W,12,f[13]),K=v(K,z,O,U,ee,17,f[14]),U=v(U,K,z,O,J,22,f[15]),O=d(O,U,K,z,T,5,f[16]),z=d(z,O,U,K,P,9,f[17]),K=d(K,z,O,U,H,14,f[18]),U=d(U,K,z,O,_,20,f[19]),O=d(O,U,K,z,I,5,f[20]),z=d(z,O,U,K,M,9,f[21]),K=d(K,z,O,U,J,14,f[22]),U=d(U,K,z,O,X,20,f[23]),O=d(O,U,K,z,N,5,f[24]),z=d(z,O,U,K,ee,9,f[25]),K=d(K,z,O,U,$,14,f[26]),U=d(U,K,z,O,S,20,f[27]),O=d(O,U,K,z,W,5,f[28]),z=d(z,O,U,K,k,9,f[29]),K=d(K,z,O,U,G,14,f[30]),U=d(U,K,z,O,Y,20,f[31]),O=g(O,U,K,z,I,4,f[32]),z=g(z,O,U,K,S,11,f[33]),K=g(K,z,O,U,H,16,f[34]),U=g(U,K,z,O,ee,23,f[35]),O=g(O,U,K,z,T,4,f[36]),z=g(z,O,U,K,X,11,f[37]),K=g(K,z,O,U,G,16,f[38]),U=g(U,K,z,O,M,23,f[39]),O=g(O,U,K,z,W,4,f[40]),z=g(z,O,U,K,_,11,f[41]),K=g(K,z,O,U,$,16,f[42]),U=g(U,K,z,O,P,23,f[43]),O=g(O,U,K,z,N,4,f[44]),z=g(z,O,U,K,Y,11,f[45]),K=g(K,z,O,U,J,16,f[46]),U=g(U,K,z,O,k,23,f[47]),O=y(O,U,K,z,_,6,f[48]),z=y(z,O,U,K,G,10,f[49]),K=y(K,z,O,U,ee,15,f[50]),U=y(U,K,z,O,I,21,f[51]),O=y(O,U,K,z,Y,6,f[52]),z=y(z,O,U,K,$,10,f[53]),K=y(K,z,O,U,M,15,f[54]),U=y(U,K,z,O,T,21,f[55]),O=y(O,U,K,z,S,6,f[56]),z=y(z,O,U,K,J,10,f[57]),K=y(K,z,O,U,P,15,f[58]),U=y(U,K,z,O,W,21,f[59]),O=y(O,U,K,z,X,6,f[60]),z=y(z,O,U,K,H,10,f[61]),K=y(K,z,O,U,k,15,f[62]),U=y(U,K,z,O,N,21,f[63]),b[0]=b[0]+O|0,b[1]=b[1]+U|0,b[2]=b[2]+K|0,b[3]=b[3]+z|0},_doFinalize:function(){var m=this._data,A=m.words,D=this._nDataBytes*8,C=m.sigBytes*8;A[C>>>5]|=128<<24-C%32;var B=n.floor(D/4294967296),b=D;A[(C+64>>>9<<4)+15]=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,A[(C+64>>>9<<4)+14]=(b<<8|b>>>24)&16711935|(b<<24|b>>>8)&4278255360,m.sigBytes=(A.length+1)*4,this._process();for(var _=this._hash,T=_.words,k=0;k<4;k++){var $=T[k];T[k]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360}return _},clone:function(){var m=s.clone.call(this);return m._hash=this._hash.clone(),m}});function v(m,A,D,C,B,b,_){var T=m+(A&D|~A&C)+B+_;return(T<<b|T>>>32-b)+A}function d(m,A,D,C,B,b,_){var T=m+(A&C|D&~C)+B+_;return(T<<b|T>>>32-b)+A}function g(m,A,D,C,B,b,_){var T=m+(A^D^C)+B+_;return(T<<b|T>>>32-b)+A}function y(m,A,D,C,B,b,_){var T=m+(D^(A|~C))+B+_;return(T<<b|T>>>32-b)+A}i.MD5=s._createHelper(l),i.HmacMD5=s._createHmacHelper(l)}(Math),r.MD5})}(nn)),nn.exports}var on={exports:{}},yo;function ds(){return yo||(yo=1,function(t,e){(function(r,n){t.exports=n(xe())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=i.Hasher,s=n.algo,x=[],f=s.SHA1=a.extend({_doReset:function(){this._hash=new o.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(l,v){for(var d=this._hash.words,g=d[0],y=d[1],m=d[2],A=d[3],D=d[4],C=0;C<80;C++){if(C<16)x[C]=l[v+C]|0;else{var B=x[C-3]^x[C-8]^x[C-14]^x[C-16];x[C]=B<<1|B>>>31}var b=(g<<5|g>>>27)+D+x[C];C<20?b+=(y&m|~y&A)+1518500249:C<40?b+=(y^m^A)+1859775393:C<60?b+=(y&m|y&A|m&A)-1894007588:b+=(y^m^A)-899497514,D=A,A=m,m=y<<30|y>>>2,y=g,g=b}d[0]=d[0]+g|0,d[1]=d[1]+y|0,d[2]=d[2]+m|0,d[3]=d[3]+A|0,d[4]=d[4]+D|0},_doFinalize:function(){var l=this._data,v=l.words,d=this._nDataBytes*8,g=l.sigBytes*8;return v[g>>>5]|=128<<24-g%32,v[(g+64>>>9<<4)+14]=Math.floor(d/4294967296),v[(g+64>>>9<<4)+15]=d,l.sigBytes=v.length*4,this._process(),this._hash},clone:function(){var l=a.clone.call(this);return l._hash=this._hash.clone(),l}});n.SHA1=a._createHelper(f),n.HmacSHA1=a._createHmacHelper(f)}(),r.SHA1})}(on)),on.exports}var an={exports:{}},mo;function oi(){return mo||(mo=1,function(t,e){(function(r,n){t.exports=n(xe())})(ce,function(r){return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,x=i.algo,f=[],l=[];(function(){function g(D){for(var C=n.sqrt(D),B=2;B<=C;B++)if(!(D%B))return!1;return!0}function y(D){return(D-(D|0))*4294967296|0}for(var m=2,A=0;A<64;)g(m)&&(A<8&&(f[A]=y(n.pow(m,1/2))),l[A]=y(n.pow(m,1/3)),A++),m++})();var v=[],d=x.SHA256=s.extend({_doReset:function(){this._hash=new a.init(f.slice(0))},_doProcessBlock:function(g,y){for(var m=this._hash.words,A=m[0],D=m[1],C=m[2],B=m[3],b=m[4],_=m[5],T=m[6],k=m[7],$=0;$<64;$++){if($<16)v[$]=g[y+$]|0;else{var X=v[$-15],I=(X<<25|X>>>7)^(X<<14|X>>>18)^X>>>3,P=v[$-2],G=(P<<15|P>>>17)^(P<<13|P>>>19)^P>>>10;v[$]=I+v[$-7]+G+v[$-16]}var S=b&_^~b&T,N=A&D^A&C^D&C,M=(A<<30|A>>>2)^(A<<19|A>>>13)^(A<<10|A>>>22),H=(b<<26|b>>>6)^(b<<21|b>>>11)^(b<<7|b>>>25),Y=k+H+S+l[$]+v[$],W=M+N;k=T,T=_,_=b,b=B+Y|0,B=C,C=D,D=A,A=Y+W|0}m[0]=m[0]+A|0,m[1]=m[1]+D|0,m[2]=m[2]+C|0,m[3]=m[3]+B|0,m[4]=m[4]+b|0,m[5]=m[5]+_|0,m[6]=m[6]+T|0,m[7]=m[7]+k|0},_doFinalize:function(){var g=this._data,y=g.words,m=this._nDataBytes*8,A=g.sigBytes*8;return y[A>>>5]|=128<<24-A%32,y[(A+64>>>9<<4)+14]=n.floor(m/4294967296),y[(A+64>>>9<<4)+15]=m,g.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var g=s.clone.call(this);return g._hash=this._hash.clone(),g}});i.SHA256=s._createHelper(d),i.HmacSHA256=s._createHmacHelper(d)}(Math),r.SHA256})}(an)),an.exports}var sn={exports:{}},go;function Eh(){return go||(go=1,function(t,e){(function(r,n,i){t.exports=n(xe(),oi())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=n.algo,s=a.SHA256,x=a.SHA224=s.extend({_doReset:function(){this._hash=new o.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var f=s._doFinalize.call(this);return f.sigBytes-=4,f}});n.SHA224=s._createHelper(x),n.HmacSHA224=s._createHmacHelper(x)}(),r.SHA224})}(sn)),sn.exports}var fn={exports:{}},Ao;function ps(){return Ao||(Ao=1,function(t,e){(function(r,n,i){t.exports=n(xe(),s0())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.Hasher,a=n.x64,s=a.Word,x=a.WordArray,f=n.algo;function l(){return s.create.apply(s,arguments)}var v=[l(1116352408,3609767458),l(1899447441,602891725),l(3049323471,3964484399),l(3921009573,2173295548),l(961987163,4081628472),l(1508970993,3053834265),l(2453635748,2937671579),l(2870763221,3664609560),l(3624381080,2734883394),l(310598401,1164996542),l(607225278,1323610764),l(1426881987,3590304994),l(1925078388,4068182383),l(2162078206,991336113),l(2614888103,633803317),l(3248222580,3479774868),l(3835390401,2666613458),l(4022224774,944711139),l(264347078,2341262773),l(604807628,2007800933),l(770255983,1495990901),l(1249150122,1856431235),l(1555081692,3175218132),l(1996064986,2198950837),l(2554220882,3999719339),l(2821834349,766784016),l(2952996808,2566594879),l(3210313671,3203337956),l(3336571891,1034457026),l(3584528711,2466948901),l(113926993,3758326383),l(338241895,168717936),l(666307205,1188179964),l(773529912,1546045734),l(1294757372,1522805485),l(1396182291,2643833823),l(1695183700,2343527390),l(1986661051,1014477480),l(2177026350,1206759142),l(2456956037,344077627),l(2730485921,1290863460),l(2820302411,3158454273),l(3259730800,3505952657),l(3345764771,106217008),l(3516065817,3606008344),l(3600352804,1432725776),l(4094571909,1467031594),l(275423344,851169720),l(430227734,3100823752),l(506948616,1363258195),l(659060556,3750685593),l(883997877,3785050280),l(958139571,3318307427),l(1322822218,3812723403),l(1537002063,2003034995),l(1747873779,3602036899),l(1955562222,1575990012),l(2024104815,1125592928),l(2227730452,2716904306),l(2361852424,442776044),l(2428436474,593698344),l(2756734187,3733110249),l(3204031479,2999351573),l(3329325298,3815920427),l(3391569614,3928383900),l(3515267271,566280711),l(3940187606,3454069534),l(4118630271,4000239992),l(116418474,1914138554),l(174292421,2731055270),l(289380356,3203993006),l(460393269,320620315),l(685471733,587496836),l(852142971,1086792851),l(1017036298,365543100),l(1126000580,2618297676),l(1288033470,3409855158),l(1501505948,4234509866),l(1607167915,987167468),l(1816402316,1246189591)],d=[];(function(){for(var y=0;y<80;y++)d[y]=l()})();var g=f.SHA512=o.extend({_doReset:function(){this._hash=new x.init([new s.init(1779033703,4089235720),new s.init(3144134277,2227873595),new s.init(1013904242,4271175723),new s.init(2773480762,1595750129),new s.init(1359893119,2917565137),new s.init(2600822924,725511199),new s.init(528734635,4215389547),new s.init(1541459225,327033209)])},_doProcessBlock:function(y,m){for(var A=this._hash.words,D=A[0],C=A[1],B=A[2],b=A[3],_=A[4],T=A[5],k=A[6],$=A[7],X=D.high,I=D.low,P=C.high,G=C.low,S=B.high,N=B.low,M=b.high,H=b.low,Y=_.high,W=_.low,ee=T.high,J=T.low,O=k.high,U=k.low,K=$.high,z=$.low,oe=X,se=I,Ae=P,ae=G,be=S,Be=N,He=M,Oe=H,me=Y,Se=W,pt=ee,w=J,c=O,u=U,F=K,L=z,V=0;V<80;V++){var Z,fe,de=d[V];if(V<16)fe=de.high=y[m+V*2]|0,Z=de.low=y[m+V*2+1]|0;else{var ge=d[V-15],we=ge.high,ve=ge.low,vt=(we>>>1|ve<<31)^(we>>>8|ve<<24)^we>>>7,Ct=(ve>>>1|we<<31)^(ve>>>8|we<<24)^(ve>>>7|we<<25),bt=d[V-2],yt=bt.high,Ft=bt.low,c0=(yt>>>19|Ft<<13)^(yt<<3|Ft>>>29)^yt>>>6,Ut=(Ft>>>19|yt<<13)^(Ft<<3|yt>>>29)^(Ft>>>6|yt<<26),mr=d[V-7],gr=mr.high,u0=mr.low,Qt=d[V-16],l0=Qt.high,Ar=Qt.low;Z=Ct+u0,fe=vt+gr+(Z>>>0<Ct>>>0?1:0),Z=Z+Ut,fe=fe+c0+(Z>>>0<Ut>>>0?1:0),Z=Z+Ar,fe=fe+l0+(Z>>>0<Ar>>>0?1:0),de.high=fe,de.low=Z}var h0=me&pt^~me&c,Er=Se&w^~Se&u,x0=oe&Ae^oe&be^Ae&be,d0=se&ae^se&Be^ae&Be,p0=(oe>>>28|se<<4)^(oe<<30|se>>>2)^(oe<<25|se>>>7),Br=(se>>>28|oe<<4)^(se<<30|oe>>>2)^(se<<25|oe>>>7),v0=(me>>>14|Se<<18)^(me>>>18|Se<<14)^(me<<23|Se>>>9),y0=(Se>>>14|me<<18)^(Se>>>18|me<<14)^(Se<<23|me>>>9),wr=v[V],m0=wr.high,Cr=wr.low,qe=L+y0,ot=F+v0+(qe>>>0<L>>>0?1:0),qe=qe+Er,ot=ot+h0+(qe>>>0<Er>>>0?1:0),qe=qe+Cr,ot=ot+m0+(qe>>>0<Cr>>>0?1:0),qe=qe+Z,ot=ot+fe+(qe>>>0<Z>>>0?1:0),br=Br+d0,g0=p0+x0+(br>>>0<Br>>>0?1:0);F=c,L=u,c=pt,u=w,pt=me,w=Se,Se=Oe+qe|0,me=He+ot+(Se>>>0<Oe>>>0?1:0)|0,He=be,Oe=Be,be=Ae,Be=ae,Ae=oe,ae=se,se=qe+br|0,oe=ot+g0+(se>>>0<qe>>>0?1:0)|0}I=D.low=I+se,D.high=X+oe+(I>>>0<se>>>0?1:0),G=C.low=G+ae,C.high=P+Ae+(G>>>0<ae>>>0?1:0),N=B.low=N+Be,B.high=S+be+(N>>>0<Be>>>0?1:0),H=b.low=H+Oe,b.high=M+He+(H>>>0<Oe>>>0?1:0),W=_.low=W+Se,_.high=Y+me+(W>>>0<Se>>>0?1:0),J=T.low=J+w,T.high=ee+pt+(J>>>0<w>>>0?1:0),U=k.low=U+u,k.high=O+c+(U>>>0<u>>>0?1:0),z=$.low=z+L,$.high=K+F+(z>>>0<L>>>0?1:0)},_doFinalize:function(){var y=this._data,m=y.words,A=this._nDataBytes*8,D=y.sigBytes*8;m[D>>>5]|=128<<24-D%32,m[(D+128>>>10<<5)+30]=Math.floor(A/4294967296),m[(D+128>>>10<<5)+31]=A,y.sigBytes=m.length*4,this._process();var C=this._hash.toX32();return C},clone:function(){var y=o.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});n.SHA512=o._createHelper(g),n.HmacSHA512=o._createHmacHelper(g)}(),r.SHA512})}(fn)),fn.exports}var cn={exports:{}},Eo;function Bh(){return Eo||(Eo=1,function(t,e){(function(r,n,i){t.exports=n(xe(),s0(),ps())})(ce,function(r){return function(){var n=r,i=n.x64,o=i.Word,a=i.WordArray,s=n.algo,x=s.SHA512,f=s.SHA384=x.extend({_doReset:function(){this._hash=new a.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 l=x._doFinalize.call(this);return l.sigBytes-=16,l}});n.SHA384=x._createHelper(f),n.HmacSHA384=x._createHmacHelper(f)}(),r.SHA384})}(cn)),cn.exports}var un={exports:{}},Bo;function wh(){return Bo||(Bo=1,function(t,e){(function(r,n,i){t.exports=n(xe(),s0())})(ce,function(r){return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,x=i.x64,f=x.Word,l=i.algo,v=[],d=[],g=[];(function(){for(var A=1,D=0,C=0;C<24;C++){v[A+5*D]=(C+1)*(C+2)/2%64;var B=D%5,b=(2*A+3*D)%5;A=B,D=b}for(var A=0;A<5;A++)for(var D=0;D<5;D++)d[A+5*D]=D+(2*A+3*D)%5*5;for(var _=1,T=0;T<24;T++){for(var k=0,$=0,X=0;X<7;X++){if(_&1){var I=(1<<X)-1;I<32?$^=1<<I:k^=1<<I-32}_&128?_=_<<1^113:_<<=1}g[T]=f.create(k,$)}})();var y=[];(function(){for(var A=0;A<25;A++)y[A]=f.create()})();var m=l.SHA3=s.extend({cfg:s.cfg.extend({outputLength:512}),_doReset:function(){for(var A=this._state=[],D=0;D<25;D++)A[D]=new f.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(A,D){for(var C=this._state,B=this.blockSize/2,b=0;b<B;b++){var _=A[D+2*b],T=A[D+2*b+1];_=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,T=(T<<8|T>>>24)&16711935|(T<<24|T>>>8)&4278255360;var k=C[b];k.high^=T,k.low^=_}for(var $=0;$<24;$++){for(var X=0;X<5;X++){for(var I=0,P=0,G=0;G<5;G++){var k=C[X+5*G];I^=k.high,P^=k.low}var S=y[X];S.high=I,S.low=P}for(var X=0;X<5;X++)for(var N=y[(X+4)%5],M=y[(X+1)%5],H=M.high,Y=M.low,I=N.high^(H<<1|Y>>>31),P=N.low^(Y<<1|H>>>31),G=0;G<5;G++){var k=C[X+5*G];k.high^=I,k.low^=P}for(var W=1;W<25;W++){var I,P,k=C[W],ee=k.high,J=k.low,O=v[W];O<32?(I=ee<<O|J>>>32-O,P=J<<O|ee>>>32-O):(I=J<<O-32|ee>>>64-O,P=ee<<O-32|J>>>64-O);var U=y[d[W]];U.high=I,U.low=P}var K=y[0],z=C[0];K.high=z.high,K.low=z.low;for(var X=0;X<5;X++)for(var G=0;G<5;G++){var W=X+5*G,k=C[W],oe=y[W],se=y[(X+1)%5+5*G],Ae=y[(X+2)%5+5*G];k.high=oe.high^~se.high&Ae.high,k.low=oe.low^~se.low&Ae.low}var k=C[0],ae=g[$];k.high^=ae.high,k.low^=ae.low}},_doFinalize:function(){var A=this._data,D=A.words;this._nDataBytes*8;var C=A.sigBytes*8,B=this.blockSize*32;D[C>>>5]|=1<<24-C%32,D[(n.ceil((C+1)/B)*B>>>5)-1]|=128,A.sigBytes=D.length*4,this._process();for(var b=this._state,_=this.cfg.outputLength/8,T=_/8,k=[],$=0;$<T;$++){var X=b[$],I=X.high,P=X.low;I=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360,P=(P<<8|P>>>24)&16711935|(P<<24|P>>>8)&4278255360,k.push(P),k.push(I)}return new a.init(k,_)},clone:function(){for(var A=s.clone.call(this),D=A._state=this._state.slice(0),C=0;C<25;C++)D[C]=D[C].clone();return A}});i.SHA3=s._createHelper(m),i.HmacSHA3=s._createHmacHelper(m)}(Math),r.SHA3})}(un)),un.exports}var ln={exports:{}},wo;function Ch(){return wo||(wo=1,function(t,e){(function(r,n){t.exports=n(xe())})(ce,function(r){/** @preserve
|
|
10
|
+
(c) 2012 by Cédric Mesnil. All rights reserved.
|
|
11
|
+
|
|
12
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
|
13
|
+
|
|
14
|
+
- Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
|
15
|
+
- 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.
|
|
16
|
+
|
|
17
|
+
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.
|
|
18
|
+
*/return function(n){var i=r,o=i.lib,a=o.WordArray,s=o.Hasher,x=i.algo,f=a.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]),l=a.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]),v=a.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]),d=a.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]),g=a.create([0,1518500249,1859775393,2400959708,2840853838]),y=a.create([1352829926,1548603684,1836072691,2053994217,0]),m=x.RIPEMD160=s.extend({_doReset:function(){this._hash=a.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(T,k){for(var $=0;$<16;$++){var X=k+$,I=T[X];T[X]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var P=this._hash.words,G=g.words,S=y.words,N=f.words,M=l.words,H=v.words,Y=d.words,W,ee,J,O,U,K,z,oe,se,Ae;K=W=P[0],z=ee=P[1],oe=J=P[2],se=O=P[3],Ae=U=P[4];for(var ae,$=0;$<80;$+=1)ae=W+T[k+N[$]]|0,$<16?ae+=A(ee,J,O)+G[0]:$<32?ae+=D(ee,J,O)+G[1]:$<48?ae+=C(ee,J,O)+G[2]:$<64?ae+=B(ee,J,O)+G[3]:ae+=b(ee,J,O)+G[4],ae=ae|0,ae=_(ae,H[$]),ae=ae+U|0,W=U,U=O,O=_(J,10),J=ee,ee=ae,ae=K+T[k+M[$]]|0,$<16?ae+=b(z,oe,se)+S[0]:$<32?ae+=B(z,oe,se)+S[1]:$<48?ae+=C(z,oe,se)+S[2]:$<64?ae+=D(z,oe,se)+S[3]:ae+=A(z,oe,se)+S[4],ae=ae|0,ae=_(ae,Y[$]),ae=ae+Ae|0,K=Ae,Ae=se,se=_(oe,10),oe=z,z=ae;ae=P[1]+J+se|0,P[1]=P[2]+O+Ae|0,P[2]=P[3]+U+K|0,P[3]=P[4]+W+z|0,P[4]=P[0]+ee+oe|0,P[0]=ae},_doFinalize:function(){var T=this._data,k=T.words,$=this._nDataBytes*8,X=T.sigBytes*8;k[X>>>5]|=128<<24-X%32,k[(X+64>>>9<<4)+14]=($<<8|$>>>24)&16711935|($<<24|$>>>8)&4278255360,T.sigBytes=(k.length+1)*4,this._process();for(var I=this._hash,P=I.words,G=0;G<5;G++){var S=P[G];P[G]=(S<<8|S>>>24)&16711935|(S<<24|S>>>8)&4278255360}return I},clone:function(){var T=s.clone.call(this);return T._hash=this._hash.clone(),T}});function A(T,k,$){return T^k^$}function D(T,k,$){return T&k|~T&$}function C(T,k,$){return(T|~k)^$}function B(T,k,$){return T&$|k&~$}function b(T,k,$){return T^(k|~$)}function _(T,k){return T<<k|T>>>32-k}i.RIPEMD160=s._createHelper(m),i.HmacRIPEMD160=s._createHmacHelper(m)}(),r.RIPEMD160})}(ln)),ln.exports}var hn={exports:{}},Co;function ai(){return Co||(Co=1,function(t,e){(function(r,n){t.exports=n(xe())})(ce,function(r){(function(){var n=r,i=n.lib,o=i.Base,a=n.enc,s=a.Utf8,x=n.algo;x.HMAC=o.extend({init:function(f,l){f=this._hasher=new f.init,typeof l=="string"&&(l=s.parse(l));var v=f.blockSize,d=v*4;l.sigBytes>d&&(l=f.finalize(l)),l.clamp();for(var g=this._oKey=l.clone(),y=this._iKey=l.clone(),m=g.words,A=y.words,D=0;D<v;D++)m[D]^=1549556828,A[D]^=909522486;g.sigBytes=y.sigBytes=d,this.reset()},reset:function(){var f=this._hasher;f.reset(),f.update(this._iKey)},update:function(f){return this._hasher.update(f),this},finalize:function(f){var l=this._hasher,v=l.finalize(f);l.reset();var d=l.finalize(this._oKey.clone().concat(v));return d}})})()})}(hn)),hn.exports}var xn={exports:{}},bo;function bh(){return bo||(bo=1,function(t,e){(function(r,n,i){t.exports=n(xe(),oi(),ai())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.Base,a=i.WordArray,s=n.algo,x=s.SHA256,f=s.HMAC,l=s.PBKDF2=o.extend({cfg:o.extend({keySize:128/32,hasher:x,iterations:25e4}),init:function(v){this.cfg=this.cfg.extend(v)},compute:function(v,d){for(var g=this.cfg,y=f.create(g.hasher,v),m=a.create(),A=a.create([1]),D=m.words,C=A.words,B=g.keySize,b=g.iterations;D.length<B;){var _=y.update(d).finalize(A);y.reset();for(var T=_.words,k=T.length,$=_,X=1;X<b;X++){$=y.finalize($),y.reset();for(var I=$.words,P=0;P<k;P++)T[P]^=I[P]}m.concat(_),C[0]++}return m.sigBytes=B*4,m}});n.PBKDF2=function(v,d,g){return l.create(g).compute(v,d)}}(),r.PBKDF2})}(xn)),xn.exports}var dn={exports:{}},Fo;function wt(){return Fo||(Fo=1,function(t,e){(function(r,n,i){t.exports=n(xe(),ds(),ai())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.Base,a=i.WordArray,s=n.algo,x=s.MD5,f=s.EvpKDF=o.extend({cfg:o.extend({keySize:128/32,hasher:x,iterations:1}),init:function(l){this.cfg=this.cfg.extend(l)},compute:function(l,v){for(var d,g=this.cfg,y=g.hasher.create(),m=a.create(),A=m.words,D=g.keySize,C=g.iterations;A.length<D;){d&&y.update(d),d=y.update(l).finalize(v),y.reset();for(var B=1;B<C;B++)d=y.finalize(d),y.reset();m.concat(d)}return m.sigBytes=D*4,m}});n.EvpKDF=function(l,v,d){return f.create(d).compute(l,v)}}(),r.EvpKDF})}(dn)),dn.exports}var pn={exports:{}},Do;function Ne(){return Do||(Do=1,function(t,e){(function(r,n,i){t.exports=n(xe(),wt())})(ce,function(r){r.lib.Cipher||function(n){var i=r,o=i.lib,a=o.Base,s=o.WordArray,x=o.BufferedBlockAlgorithm,f=i.enc;f.Utf8;var l=f.Base64,v=i.algo,d=v.EvpKDF,g=o.Cipher=x.extend({cfg:a.extend(),createEncryptor:function(I,P){return this.create(this._ENC_XFORM_MODE,I,P)},createDecryptor:function(I,P){return this.create(this._DEC_XFORM_MODE,I,P)},init:function(I,P,G){this.cfg=this.cfg.extend(G),this._xformMode=I,this._key=P,this.reset()},reset:function(){x.reset.call(this),this._doReset()},process:function(I){return this._append(I),this._process()},finalize:function(I){I&&this._append(I);var P=this._doFinalize();return P},keySize:128/32,ivSize:128/32,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function I(P){return typeof P=="string"?X:T}return function(P){return{encrypt:function(G,S,N){return I(S).encrypt(P,G,S,N)},decrypt:function(G,S,N){return I(S).decrypt(P,G,S,N)}}}}()});o.StreamCipher=g.extend({_doFinalize:function(){var I=this._process(!0);return I},blockSize:1});var y=i.mode={},m=o.BlockCipherMode=a.extend({createEncryptor:function(I,P){return this.Encryptor.create(I,P)},createDecryptor:function(I,P){return this.Decryptor.create(I,P)},init:function(I,P){this._cipher=I,this._iv=P}}),A=y.CBC=function(){var I=m.extend();I.Encryptor=I.extend({processBlock:function(G,S){var N=this._cipher,M=N.blockSize;P.call(this,G,S,M),N.encryptBlock(G,S),this._prevBlock=G.slice(S,S+M)}}),I.Decryptor=I.extend({processBlock:function(G,S){var N=this._cipher,M=N.blockSize,H=G.slice(S,S+M);N.decryptBlock(G,S),P.call(this,G,S,M),this._prevBlock=H}});function P(G,S,N){var M,H=this._iv;H?(M=H,this._iv=n):M=this._prevBlock;for(var Y=0;Y<N;Y++)G[S+Y]^=M[Y]}return I}(),D=i.pad={},C=D.Pkcs7={pad:function(I,P){for(var G=P*4,S=G-I.sigBytes%G,N=S<<24|S<<16|S<<8|S,M=[],H=0;H<S;H+=4)M.push(N);var Y=s.create(M,S);I.concat(Y)},unpad:function(I){var P=I.words[I.sigBytes-1>>>2]&255;I.sigBytes-=P}};o.BlockCipher=g.extend({cfg:g.cfg.extend({mode:A,padding:C}),reset:function(){var I;g.reset.call(this);var P=this.cfg,G=P.iv,S=P.mode;this._xformMode==this._ENC_XFORM_MODE?I=S.createEncryptor:(I=S.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,G&&G.words):(this._mode=I.call(S,this,G&&G.words),this._mode.__creator=I)},_doProcessBlock:function(I,P){this._mode.processBlock(I,P)},_doFinalize:function(){var I,P=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(P.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),P.unpad(I)),I},blockSize:128/32});var B=o.CipherParams=a.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),b=i.format={},_=b.OpenSSL={stringify:function(I){var P,G=I.ciphertext,S=I.salt;return S?P=s.create([1398893684,1701076831]).concat(S).concat(G):P=G,P.toString(l)},parse:function(I){var P,G=l.parse(I),S=G.words;return S[0]==1398893684&&S[1]==1701076831&&(P=s.create(S.slice(2,4)),S.splice(0,4),G.sigBytes-=16),B.create({ciphertext:G,salt:P})}},T=o.SerializableCipher=a.extend({cfg:a.extend({format:_}),encrypt:function(I,P,G,S){S=this.cfg.extend(S);var N=I.createEncryptor(G,S),M=N.finalize(P),H=N.cfg;return B.create({ciphertext:M,key:G,iv:H.iv,algorithm:I,mode:H.mode,padding:H.padding,blockSize:I.blockSize,formatter:S.format})},decrypt:function(I,P,G,S){S=this.cfg.extend(S),P=this._parse(P,S.format);var N=I.createDecryptor(G,S).finalize(P.ciphertext);return N},_parse:function(I,P){return typeof I=="string"?P.parse(I,this):I}}),k=i.kdf={},$=k.OpenSSL={execute:function(I,P,G,S,N){if(S||(S=s.random(64/8)),N)var M=d.create({keySize:P+G,hasher:N}).compute(I,S);else var M=d.create({keySize:P+G}).compute(I,S);var H=s.create(M.words.slice(P),G*4);return M.sigBytes=P*4,B.create({key:M,iv:H,salt:S})}},X=o.PasswordBasedCipher=T.extend({cfg:T.cfg.extend({kdf:$}),encrypt:function(I,P,G,S){S=this.cfg.extend(S);var N=S.kdf.execute(G,I.keySize,I.ivSize,S.salt,S.hasher);S.iv=N.iv;var M=T.encrypt.call(this,I,P,N.key,S);return M.mixIn(N),M},decrypt:function(I,P,G,S){S=this.cfg.extend(S),P=this._parse(P,S.format);var N=S.kdf.execute(G,I.keySize,I.ivSize,P.salt,S.hasher);S.iv=N.iv;var M=T.decrypt.call(this,I,P,N.key,S);return M}})}()})}(pn)),pn.exports}var vn={exports:{}},_o;function Fh(){return _o||(_o=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Ne())})(ce,function(r){return r.mode.CFB=function(){var n=r.lib.BlockCipherMode.extend();n.Encryptor=n.extend({processBlock:function(o,a){var s=this._cipher,x=s.blockSize;i.call(this,o,a,x,s),this._prevBlock=o.slice(a,a+x)}}),n.Decryptor=n.extend({processBlock:function(o,a){var s=this._cipher,x=s.blockSize,f=o.slice(a,a+x);i.call(this,o,a,x,s),this._prevBlock=f}});function i(o,a,s,x){var f,l=this._iv;l?(f=l.slice(0),this._iv=void 0):f=this._prevBlock,x.encryptBlock(f,0);for(var v=0;v<s;v++)o[a+v]^=f[v]}return n}(),r.mode.CFB})}(vn)),vn.exports}var yn={exports:{}},So;function Dh(){return So||(So=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Ne())})(ce,function(r){return r.mode.CTR=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,a){var s=this._cipher,x=s.blockSize,f=this._iv,l=this._counter;f&&(l=this._counter=f.slice(0),this._iv=void 0);var v=l.slice(0);s.encryptBlock(v,0),l[x-1]=l[x-1]+1|0;for(var d=0;d<x;d++)o[a+d]^=v[d]}});return n.Decryptor=i,n}(),r.mode.CTR})}(yn)),yn.exports}var mn={exports:{}},To;function _h(){return To||(To=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Ne())})(ce,function(r){/** @preserve
|
|
19
|
+
* Counter block mode compatible with Dr Brian Gladman fileenc.c
|
|
20
|
+
* derived from CryptoJS.mode.CTR
|
|
21
|
+
* Jan Hruby jhruby.web@gmail.com
|
|
22
|
+
*/return r.mode.CTRGladman=function(){var n=r.lib.BlockCipherMode.extend();function i(s){if((s>>24&255)===255){var x=s>>16&255,f=s>>8&255,l=s&255;x===255?(x=0,f===255?(f=0,l===255?l=0:++l):++f):++x,s=0,s+=x<<16,s+=f<<8,s+=l}else s+=1<<24;return s}function o(s){return(s[0]=i(s[0]))===0&&(s[1]=i(s[1])),s}var a=n.Encryptor=n.extend({processBlock:function(s,x){var f=this._cipher,l=f.blockSize,v=this._iv,d=this._counter;v&&(d=this._counter=v.slice(0),this._iv=void 0),o(d);var g=d.slice(0);f.encryptBlock(g,0);for(var y=0;y<l;y++)s[x+y]^=g[y]}});return n.Decryptor=a,n}(),r.mode.CTRGladman})}(mn)),mn.exports}var gn={exports:{}},Io;function Sh(){return Io||(Io=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Ne())})(ce,function(r){return r.mode.OFB=function(){var n=r.lib.BlockCipherMode.extend(),i=n.Encryptor=n.extend({processBlock:function(o,a){var s=this._cipher,x=s.blockSize,f=this._iv,l=this._keystream;f&&(l=this._keystream=f.slice(0),this._iv=void 0),s.encryptBlock(l,0);for(var v=0;v<x;v++)o[a+v]^=l[v]}});return n.Decryptor=i,n}(),r.mode.OFB})}(gn)),gn.exports}var An={exports:{}},Ro;function Th(){return Ro||(Ro=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Ne())})(ce,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})}(An)),An.exports}var En={exports:{}},Oo;function Ih(){return Oo||(Oo=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Ne())})(ce,function(r){return r.pad.AnsiX923={pad:function(n,i){var o=n.sigBytes,a=i*4,s=a-o%a,x=o+s-1;n.clamp(),n.words[x>>>2]|=s<<24-x%4*8,n.sigBytes+=s},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Ansix923})}(En)),En.exports}var Bn={exports:{}},ko;function Rh(){return ko||(ko=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Ne())})(ce,function(r){return r.pad.Iso10126={pad:function(n,i){var o=i*4,a=o-n.sigBytes%o;n.concat(r.lib.WordArray.random(a-1)).concat(r.lib.WordArray.create([a<<24],1))},unpad:function(n){var i=n.words[n.sigBytes-1>>>2]&255;n.sigBytes-=i}},r.pad.Iso10126})}(Bn)),Bn.exports}var wn={exports:{}},Po;function Oh(){return Po||(Po=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Ne())})(ce,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})}(wn)),wn.exports}var Cn={exports:{}},Mo;function kh(){return Mo||(Mo=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Ne())})(ce,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})}(Cn)),Cn.exports}var bn={exports:{}},Lo;function Ph(){return Lo||(Lo=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Ne())})(ce,function(r){return r.pad.NoPadding={pad:function(){},unpad:function(){}},r.pad.NoPadding})}(bn)),bn.exports}var Fn={exports:{}},Uo;function Mh(){return Uo||(Uo=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Ne())})(ce,function(r){return function(n){var i=r,o=i.lib,a=o.CipherParams,s=i.enc,x=s.Hex,f=i.format;f.Hex={stringify:function(l){return l.ciphertext.toString(x)},parse:function(l){var v=x.parse(l);return a.create({ciphertext:v})}}}(),r.format.Hex})}(Fn)),Fn.exports}var Dn={exports:{}},No;function Lh(){return No||(No=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Mt(),Lt(),wt(),Ne())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,a=n.algo,s=[],x=[],f=[],l=[],v=[],d=[],g=[],y=[],m=[],A=[];(function(){for(var B=[],b=0;b<256;b++)b<128?B[b]=b<<1:B[b]=b<<1^283;for(var _=0,T=0,b=0;b<256;b++){var k=T^T<<1^T<<2^T<<3^T<<4;k=k>>>8^k&255^99,s[_]=k,x[k]=_;var $=B[_],X=B[$],I=B[X],P=B[k]*257^k*16843008;f[_]=P<<24|P>>>8,l[_]=P<<16|P>>>16,v[_]=P<<8|P>>>24,d[_]=P;var P=I*16843009^X*65537^$*257^_*16843008;g[k]=P<<24|P>>>8,y[k]=P<<16|P>>>16,m[k]=P<<8|P>>>24,A[k]=P,_?(_=$^B[B[B[I^$]]],T^=B[B[T]]):_=T=1}})();var D=[0,1,2,4,8,16,32,64,128,27,54],C=a.AES=o.extend({_doReset:function(){var B;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var b=this._keyPriorReset=this._key,_=b.words,T=b.sigBytes/4,k=this._nRounds=T+6,$=(k+1)*4,X=this._keySchedule=[],I=0;I<$;I++)I<T?X[I]=_[I]:(B=X[I-1],I%T?T>6&&I%T==4&&(B=s[B>>>24]<<24|s[B>>>16&255]<<16|s[B>>>8&255]<<8|s[B&255]):(B=B<<8|B>>>24,B=s[B>>>24]<<24|s[B>>>16&255]<<16|s[B>>>8&255]<<8|s[B&255],B^=D[I/T|0]<<24),X[I]=X[I-T]^B);for(var P=this._invKeySchedule=[],G=0;G<$;G++){var I=$-G;if(G%4)var B=X[I];else var B=X[I-4];G<4||I<=4?P[G]=B:P[G]=g[s[B>>>24]]^y[s[B>>>16&255]]^m[s[B>>>8&255]]^A[s[B&255]]}}},encryptBlock:function(B,b){this._doCryptBlock(B,b,this._keySchedule,f,l,v,d,s)},decryptBlock:function(B,b){var _=B[b+1];B[b+1]=B[b+3],B[b+3]=_,this._doCryptBlock(B,b,this._invKeySchedule,g,y,m,A,x);var _=B[b+1];B[b+1]=B[b+3],B[b+3]=_},_doCryptBlock:function(B,b,_,T,k,$,X,I){for(var P=this._nRounds,G=B[b]^_[0],S=B[b+1]^_[1],N=B[b+2]^_[2],M=B[b+3]^_[3],H=4,Y=1;Y<P;Y++){var W=T[G>>>24]^k[S>>>16&255]^$[N>>>8&255]^X[M&255]^_[H++],ee=T[S>>>24]^k[N>>>16&255]^$[M>>>8&255]^X[G&255]^_[H++],J=T[N>>>24]^k[M>>>16&255]^$[G>>>8&255]^X[S&255]^_[H++],O=T[M>>>24]^k[G>>>16&255]^$[S>>>8&255]^X[N&255]^_[H++];G=W,S=ee,N=J,M=O}var W=(I[G>>>24]<<24|I[S>>>16&255]<<16|I[N>>>8&255]<<8|I[M&255])^_[H++],ee=(I[S>>>24]<<24|I[N>>>16&255]<<16|I[M>>>8&255]<<8|I[G&255])^_[H++],J=(I[N>>>24]<<24|I[M>>>16&255]<<16|I[G>>>8&255]<<8|I[S&255])^_[H++],O=(I[M>>>24]<<24|I[G>>>16&255]<<16|I[S>>>8&255]<<8|I[N&255])^_[H++];B[b]=W,B[b+1]=ee,B[b+2]=J,B[b+3]=O},keySize:256/32});n.AES=o._createHelper(C)}(),r.AES})}(Dn)),Dn.exports}var _n={exports:{}},Ho;function Uh(){return Ho||(Ho=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Mt(),Lt(),wt(),Ne())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.WordArray,a=i.BlockCipher,s=n.algo,x=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],f=[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],l=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],v=[{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}],d=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=s.DES=a.extend({_doReset:function(){for(var D=this._key,C=D.words,B=[],b=0;b<56;b++){var _=x[b]-1;B[b]=C[_>>>5]>>>31-_%32&1}for(var T=this._subKeys=[],k=0;k<16;k++){for(var $=T[k]=[],X=l[k],b=0;b<24;b++)$[b/6|0]|=B[(f[b]-1+X)%28]<<31-b%6,$[4+(b/6|0)]|=B[28+(f[b+24]-1+X)%28]<<31-b%6;$[0]=$[0]<<1|$[0]>>>31;for(var b=1;b<7;b++)$[b]=$[b]>>>(b-1)*4+3;$[7]=$[7]<<5|$[7]>>>27}for(var I=this._invSubKeys=[],b=0;b<16;b++)I[b]=T[15-b]},encryptBlock:function(D,C){this._doCryptBlock(D,C,this._subKeys)},decryptBlock:function(D,C){this._doCryptBlock(D,C,this._invSubKeys)},_doCryptBlock:function(D,C,B){this._lBlock=D[C],this._rBlock=D[C+1],y.call(this,4,252645135),y.call(this,16,65535),m.call(this,2,858993459),m.call(this,8,16711935),y.call(this,1,1431655765);for(var b=0;b<16;b++){for(var _=B[b],T=this._lBlock,k=this._rBlock,$=0,X=0;X<8;X++)$|=v[X][((k^_[X])&d[X])>>>0];this._lBlock=k,this._rBlock=T^$}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,y.call(this,1,1431655765),m.call(this,8,16711935),m.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),D[C]=this._lBlock,D[C+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(D,C){var B=(this._lBlock>>>D^this._rBlock)&C;this._rBlock^=B,this._lBlock^=B<<D}function m(D,C){var B=(this._rBlock>>>D^this._lBlock)&C;this._lBlock^=B,this._rBlock^=B<<D}n.DES=a._createHelper(g);var A=s.TripleDES=a.extend({_doReset:function(){var D=this._key,C=D.words;if(C.length!==2&&C.length!==4&&C.length<6)throw new Error("Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.");var B=C.slice(0,2),b=C.length<4?C.slice(0,2):C.slice(2,4),_=C.length<6?C.slice(0,2):C.slice(4,6);this._des1=g.createEncryptor(o.create(B)),this._des2=g.createEncryptor(o.create(b)),this._des3=g.createEncryptor(o.create(_))},encryptBlock:function(D,C){this._des1.encryptBlock(D,C),this._des2.decryptBlock(D,C),this._des3.encryptBlock(D,C)},decryptBlock:function(D,C){this._des3.decryptBlock(D,C),this._des2.encryptBlock(D,C),this._des1.decryptBlock(D,C)},keySize:192/32,ivSize:64/32,blockSize:64/32});n.TripleDES=a._createHelper(A)}(),r.TripleDES})}(_n)),_n.exports}var Sn={exports:{}},$o;function Nh(){return $o||($o=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Mt(),Lt(),wt(),Ne())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,a=n.algo,s=a.RC4=o.extend({_doReset:function(){for(var l=this._key,v=l.words,d=l.sigBytes,g=this._S=[],y=0;y<256;y++)g[y]=y;for(var y=0,m=0;y<256;y++){var A=y%d,D=v[A>>>2]>>>24-A%4*8&255;m=(m+g[y]+D)%256;var C=g[y];g[y]=g[m],g[m]=C}this._i=this._j=0},_doProcessBlock:function(l,v){l[v]^=x.call(this)},keySize:256/32,ivSize:0});function x(){for(var l=this._S,v=this._i,d=this._j,g=0,y=0;y<4;y++){v=(v+1)%256,d=(d+l[v])%256;var m=l[v];l[v]=l[d],l[d]=m,g|=l[(l[v]+l[d])%256]<<24-y*8}return this._i=v,this._j=d,g}n.RC4=o._createHelper(s);var f=a.RC4Drop=s.extend({cfg:s.cfg.extend({drop:192}),_doReset:function(){s._doReset.call(this);for(var l=this.cfg.drop;l>0;l--)x.call(this)}});n.RC4Drop=o._createHelper(f)}(),r.RC4})}(Sn)),Sn.exports}var Tn={exports:{}},qo;function Hh(){return qo||(qo=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Mt(),Lt(),wt(),Ne())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,a=n.algo,s=[],x=[],f=[],l=a.Rabbit=o.extend({_doReset:function(){for(var d=this._key.words,g=this.cfg.iv,y=0;y<4;y++)d[y]=(d[y]<<8|d[y]>>>24)&16711935|(d[y]<<24|d[y]>>>8)&4278255360;var m=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],A=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var y=0;y<4;y++)v.call(this);for(var y=0;y<8;y++)A[y]^=m[y+4&7];if(g){var D=g.words,C=D[0],B=D[1],b=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,_=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,T=b>>>16|_&4294901760,k=_<<16|b&65535;A[0]^=b,A[1]^=T,A[2]^=_,A[3]^=k,A[4]^=b,A[5]^=T,A[6]^=_,A[7]^=k;for(var y=0;y<4;y++)v.call(this)}},_doProcessBlock:function(d,g){var y=this._X;v.call(this),s[0]=y[0]^y[5]>>>16^y[3]<<16,s[1]=y[2]^y[7]>>>16^y[5]<<16,s[2]=y[4]^y[1]>>>16^y[7]<<16,s[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360,d[g+m]^=s[m]},blockSize:128/32,ivSize:64/32});function v(){for(var d=this._X,g=this._C,y=0;y<8;y++)x[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<x[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<x[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<x[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<x[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<x[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<x[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<x[6]>>>0?1:0)|0,this._b=g[7]>>>0<x[7]>>>0?1:0;for(var y=0;y<8;y++){var m=d[y]+g[y],A=m&65535,D=m>>>16,C=((A*A>>>17)+A*D>>>15)+D*D,B=((m&4294901760)*m|0)+((m&65535)*m|0);f[y]=C^B}d[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,d[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,d[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,d[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,d[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,d[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,d[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,d[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}n.Rabbit=o._createHelper(l)}(),r.Rabbit})}(Tn)),Tn.exports}var In={exports:{}},zo;function $h(){return zo||(zo=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Mt(),Lt(),wt(),Ne())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.StreamCipher,a=n.algo,s=[],x=[],f=[],l=a.RabbitLegacy=o.extend({_doReset:function(){var d=this._key.words,g=this.cfg.iv,y=this._X=[d[0],d[3]<<16|d[2]>>>16,d[1],d[0]<<16|d[3]>>>16,d[2],d[1]<<16|d[0]>>>16,d[3],d[2]<<16|d[1]>>>16],m=this._C=[d[2]<<16|d[2]>>>16,d[0]&4294901760|d[1]&65535,d[3]<<16|d[3]>>>16,d[1]&4294901760|d[2]&65535,d[0]<<16|d[0]>>>16,d[2]&4294901760|d[3]&65535,d[1]<<16|d[1]>>>16,d[3]&4294901760|d[0]&65535];this._b=0;for(var A=0;A<4;A++)v.call(this);for(var A=0;A<8;A++)m[A]^=y[A+4&7];if(g){var D=g.words,C=D[0],B=D[1],b=(C<<8|C>>>24)&16711935|(C<<24|C>>>8)&4278255360,_=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,T=b>>>16|_&4294901760,k=_<<16|b&65535;m[0]^=b,m[1]^=T,m[2]^=_,m[3]^=k,m[4]^=b,m[5]^=T,m[6]^=_,m[7]^=k;for(var A=0;A<4;A++)v.call(this)}},_doProcessBlock:function(d,g){var y=this._X;v.call(this),s[0]=y[0]^y[5]>>>16^y[3]<<16,s[1]=y[2]^y[7]>>>16^y[5]<<16,s[2]=y[4]^y[1]>>>16^y[7]<<16,s[3]=y[6]^y[3]>>>16^y[1]<<16;for(var m=0;m<4;m++)s[m]=(s[m]<<8|s[m]>>>24)&16711935|(s[m]<<24|s[m]>>>8)&4278255360,d[g+m]^=s[m]},blockSize:128/32,ivSize:64/32});function v(){for(var d=this._X,g=this._C,y=0;y<8;y++)x[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0<x[0]>>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0<x[1]>>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0<x[2]>>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0<x[3]>>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0<x[4]>>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0<x[5]>>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0<x[6]>>>0?1:0)|0,this._b=g[7]>>>0<x[7]>>>0?1:0;for(var y=0;y<8;y++){var m=d[y]+g[y],A=m&65535,D=m>>>16,C=((A*A>>>17)+A*D>>>15)+D*D,B=((m&4294901760)*m|0)+((m&65535)*m|0);f[y]=C^B}d[0]=f[0]+(f[7]<<16|f[7]>>>16)+(f[6]<<16|f[6]>>>16)|0,d[1]=f[1]+(f[0]<<8|f[0]>>>24)+f[7]|0,d[2]=f[2]+(f[1]<<16|f[1]>>>16)+(f[0]<<16|f[0]>>>16)|0,d[3]=f[3]+(f[2]<<8|f[2]>>>24)+f[1]|0,d[4]=f[4]+(f[3]<<16|f[3]>>>16)+(f[2]<<16|f[2]>>>16)|0,d[5]=f[5]+(f[4]<<8|f[4]>>>24)+f[3]|0,d[6]=f[6]+(f[5]<<16|f[5]>>>16)+(f[4]<<16|f[4]>>>16)|0,d[7]=f[7]+(f[6]<<8|f[6]>>>24)+f[5]|0}n.RabbitLegacy=o._createHelper(l)}(),r.RabbitLegacy})}(In)),In.exports}var Rn={exports:{}},Wo;function qh(){return Wo||(Wo=1,function(t,e){(function(r,n,i){t.exports=n(xe(),Mt(),Lt(),wt(),Ne())})(ce,function(r){return function(){var n=r,i=n.lib,o=i.BlockCipher,a=n.algo;const s=16,x=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],f=[[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 l={pbox:[],sbox:[]};function v(A,D){let C=D>>24&255,B=D>>16&255,b=D>>8&255,_=D&255,T=A.sbox[0][C]+A.sbox[1][B];return T=T^A.sbox[2][b],T=T+A.sbox[3][_],T}function d(A,D,C){let B=D,b=C,_;for(let T=0;T<s;++T)B=B^A.pbox[T],b=v(A,B)^b,_=B,B=b,b=_;return _=B,B=b,b=_,b=b^A.pbox[s],B=B^A.pbox[s+1],{left:B,right:b}}function g(A,D,C){let B=D,b=C,_;for(let T=s+1;T>1;--T)B=B^A.pbox[T],b=v(A,B)^b,_=B,B=b,b=_;return _=B,B=b,b=_,b=b^A.pbox[1],B=B^A.pbox[0],{left:B,right:b}}function y(A,D,C){for(let k=0;k<4;k++){A.sbox[k]=[];for(let $=0;$<256;$++)A.sbox[k][$]=f[k][$]}let B=0;for(let k=0;k<s+2;k++)A.pbox[k]=x[k]^D[B],B++,B>=C&&(B=0);let b=0,_=0,T=0;for(let k=0;k<s+2;k+=2)T=d(A,b,_),b=T.left,_=T.right,A.pbox[k]=b,A.pbox[k+1]=_;for(let k=0;k<4;k++)for(let $=0;$<256;$+=2)T=d(A,b,_),b=T.left,_=T.right,A.sbox[k][$]=b,A.sbox[k][$+1]=_;return!0}var m=a.Blowfish=o.extend({_doReset:function(){if(this._keyPriorReset!==this._key){var A=this._keyPriorReset=this._key,D=A.words,C=A.sigBytes/4;y(l,D,C)}},encryptBlock:function(A,D){var C=d(l,A[D],A[D+1]);A[D]=C.left,A[D+1]=C.right},decryptBlock:function(A,D){var C=g(l,A[D],A[D+1]);A[D]=C.left,A[D+1]=C.right},blockSize:64/32,keySize:128/32,ivSize:64/32});n.Blowfish=o._createHelper(m)}(),r.Blowfish})}(Rn)),Rn.exports}(function(t,e){(function(r,n,i){t.exports=n(xe(),s0(),mh(),gh(),Mt(),Ah(),Lt(),ds(),oi(),Eh(),ps(),Bh(),wh(),Ch(),ai(),bh(),wt(),Ne(),Fh(),Dh(),_h(),Sh(),Th(),Ih(),Rh(),Oh(),kh(),Ph(),Mh(),Lh(),Uh(),Nh(),Hh(),$h(),qh())})(ce,function(r){return r})})(vh);var le={},f0={};f0.byteLength=Gh;f0.toByteArray=Vh;f0.fromByteArray=Yh;var ht=[],Je=[],zh=typeof Uint8Array!="undefined"?Uint8Array:Array,On="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var qt=0,Wh=On.length;qt<Wh;++qt)ht[qt]=On[qt],Je[On.charCodeAt(qt)]=qt;Je[45]=62;Je[95]=63;function vs(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 Gh(t){var e=vs(t),r=e[0],n=e[1];return(r+n)*3/4-n}function Kh(t,e,r){return(e+r)*3/4-r}function Vh(t){var e,r=vs(t),n=r[0],i=r[1],o=new zh(Kh(t,n,i)),a=0,s=i>0?n-4:n,x;for(x=0;x<s;x+=4)e=Je[t.charCodeAt(x)]<<18|Je[t.charCodeAt(x+1)]<<12|Je[t.charCodeAt(x+2)]<<6|Je[t.charCodeAt(x+3)],o[a++]=e>>16&255,o[a++]=e>>8&255,o[a++]=e&255;return i===2&&(e=Je[t.charCodeAt(x)]<<2|Je[t.charCodeAt(x+1)]>>4,o[a++]=e&255),i===1&&(e=Je[t.charCodeAt(x)]<<10|Je[t.charCodeAt(x+1)]<<4|Je[t.charCodeAt(x+2)]>>2,o[a++]=e>>8&255,o[a++]=e&255),o}function jh(t){return ht[t>>18&63]+ht[t>>12&63]+ht[t>>6&63]+ht[t&63]}function Xh(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(jh(n));return i.join("")}function Yh(t){for(var e,r=t.length,n=r%3,i=[],o=16383,a=0,s=r-n;a<s;a+=o)i.push(Xh(t,a,a+o>s?s:a+o));return n===1?(e=t[r-1],i.push(ht[e>>2]+ht[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],i.push(ht[e>>10]+ht[e>>4&63]+ht[e<<2&63]+"=")),i.join("")}var si={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */si.read=function(t,e,r,n,i){var o,a,s=i*8-n-1,x=(1<<s)-1,f=x>>1,l=-7,v=r?i-1:0,d=r?-1:1,g=t[e+v];for(v+=d,o=g&(1<<-l)-1,g>>=-l,l+=s;l>0;o=o*256+t[e+v],v+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=n;l>0;a=a*256+t[e+v],v+=d,l-=8);if(o===0)o=1-f;else{if(o===x)return a?NaN:(g?-1:1)*(1/0);a=a+Math.pow(2,n),o=o-f}return(g?-1:1)*a*Math.pow(2,o-n)};si.write=function(t,e,r,n,i,o){var a,s,x,f=o*8-i-1,l=(1<<f)-1,v=l>>1,d=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=n?0:o-1,y=n?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(x=Math.pow(2,-a))<1&&(a--,x*=2),a+v>=1?e+=d/x:e+=d*Math.pow(2,1-v),e*x>=2&&(a++,x/=2),a+v>=l?(s=0,a=l):a+v>=1?(s=(e*x-1)*Math.pow(2,i),a=a+v):(s=e*Math.pow(2,v-1)*Math.pow(2,i),a=0));i>=8;t[r+g]=s&255,g+=y,s/=256,i-=8);for(a=a<<i|s,f+=i;f>0;t[r+g]=a&255,g+=y,a/=256,f-=8);t[r+g-y]|=m*128};/*!
|
|
23
|
+
* The buffer module from node.js, for the browser.
|
|
24
|
+
*
|
|
25
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
26
|
+
* @license MIT
|
|
27
|
+
*/(function(t){var e=f0,r=si,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=s,t.SlowBuffer=C,t.INSPECT_MAX_BYTES=50;var i=2147483647;t.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=o(),!s.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 w=new Uint8Array(1),c={foo:function(){return 42}};return Object.setPrototypeOf(c,Uint8Array.prototype),Object.setPrototypeOf(w,c),w.foo()===42}catch(u){return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function a(w){if(w>i)throw new RangeError('The value "'+w+'" is invalid for option "size"');var c=new Uint8Array(w);return Object.setPrototypeOf(c,s.prototype),c}function s(w,c,u){if(typeof w=="number"){if(typeof c=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return v(w)}return x(w,c,u)}s.poolSize=8192;function x(w,c,u){if(typeof w=="string")return d(w,c);if(ArrayBuffer.isView(w))return y(w);if(w==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w);if(me(w,ArrayBuffer)||w&&me(w.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(me(w,SharedArrayBuffer)||w&&me(w.buffer,SharedArrayBuffer)))return m(w,c,u);if(typeof w=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var F=w.valueOf&&w.valueOf();if(F!=null&&F!==w)return s.from(F,c,u);var L=A(w);if(L)return L;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof w[Symbol.toPrimitive]=="function")return s.from(w[Symbol.toPrimitive]("string"),c,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof w)}s.from=function(w,c,u){return x(w,c,u)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function f(w){if(typeof w!="number")throw new TypeError('"size" argument must be of type number');if(w<0)throw new RangeError('The value "'+w+'" is invalid for option "size"')}function l(w,c,u){return f(w),w<=0?a(w):c!==void 0?typeof u=="string"?a(w).fill(c,u):a(w).fill(c):a(w)}s.alloc=function(w,c,u){return l(w,c,u)};function v(w){return f(w),a(w<0?0:D(w)|0)}s.allocUnsafe=function(w){return v(w)},s.allocUnsafeSlow=function(w){return v(w)};function d(w,c){if((typeof c!="string"||c==="")&&(c="utf8"),!s.isEncoding(c))throw new TypeError("Unknown encoding: "+c);var u=B(w,c)|0,F=a(u),L=F.write(w,c);return L!==u&&(F=F.slice(0,L)),F}function g(w){for(var c=w.length<0?0:D(w.length)|0,u=a(c),F=0;F<c;F+=1)u[F]=w[F]&255;return u}function y(w){if(me(w,Uint8Array)){var c=new Uint8Array(w);return m(c.buffer,c.byteOffset,c.byteLength)}return g(w)}function m(w,c,u){if(c<0||w.byteLength<c)throw new RangeError('"offset" is outside of buffer bounds');if(w.byteLength<c+(u||0))throw new RangeError('"length" is outside of buffer bounds');var F;return c===void 0&&u===void 0?F=new Uint8Array(w):u===void 0?F=new Uint8Array(w,c):F=new Uint8Array(w,c,u),Object.setPrototypeOf(F,s.prototype),F}function A(w){if(s.isBuffer(w)){var c=D(w.length)|0,u=a(c);return u.length===0||w.copy(u,0,0,c),u}if(w.length!==void 0)return typeof w.length!="number"||Se(w.length)?a(0):g(w);if(w.type==="Buffer"&&Array.isArray(w.data))return g(w.data)}function D(w){if(w>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return w|0}function C(w){return+w!=w&&(w=0),s.alloc(+w)}s.isBuffer=function(c){return c!=null&&c._isBuffer===!0&&c!==s.prototype},s.compare=function(c,u){if(me(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),me(u,Uint8Array)&&(u=s.from(u,u.offset,u.byteLength)),!s.isBuffer(c)||!s.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(c===u)return 0;for(var F=c.length,L=u.length,V=0,Z=Math.min(F,L);V<Z;++V)if(c[V]!==u[V]){F=c[V],L=u[V];break}return F<L?-1:L<F?1:0},s.isEncoding=function(c){switch(String(c).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}},s.concat=function(c,u){if(!Array.isArray(c))throw new TypeError('"list" argument must be an Array of Buffers');if(c.length===0)return s.alloc(0);var F;if(u===void 0)for(u=0,F=0;F<c.length;++F)u+=c[F].length;var L=s.allocUnsafe(u),V=0;for(F=0;F<c.length;++F){var Z=c[F];if(me(Z,Uint8Array))V+Z.length>L.length?s.from(Z).copy(L,V):Uint8Array.prototype.set.call(L,Z,V);else if(s.isBuffer(Z))Z.copy(L,V);else throw new TypeError('"list" argument must be an Array of Buffers');V+=Z.length}return L};function B(w,c){if(s.isBuffer(w))return w.length;if(ArrayBuffer.isView(w)||me(w,ArrayBuffer))return w.byteLength;if(typeof w!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof w);var u=w.length,F=arguments.length>2&&arguments[2]===!0;if(!F&&u===0)return 0;for(var L=!1;;)switch(c){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return ae(w).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return He(w).length;default:if(L)return F?-1:ae(w).length;c=(""+c).toLowerCase(),L=!0}}s.byteLength=B;function b(w,c,u){var F=!1;if((c===void 0||c<0)&&(c=0),c>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,c>>>=0,u<=c))return"";for(w||(w="utf8");;)switch(w){case"hex":return ee(this,c,u);case"utf8":case"utf-8":return N(this,c,u);case"ascii":return Y(this,c,u);case"latin1":case"binary":return W(this,c,u);case"base64":return S(this,c,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,c,u);default:if(F)throw new TypeError("Unknown encoding: "+w);w=(w+"").toLowerCase(),F=!0}}s.prototype._isBuffer=!0;function _(w,c,u){var F=w[c];w[c]=w[u],w[u]=F}s.prototype.swap16=function(){var c=this.length;if(c%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var u=0;u<c;u+=2)_(this,u,u+1);return this},s.prototype.swap32=function(){var c=this.length;if(c%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var u=0;u<c;u+=4)_(this,u,u+3),_(this,u+1,u+2);return this},s.prototype.swap64=function(){var c=this.length;if(c%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var u=0;u<c;u+=8)_(this,u,u+7),_(this,u+1,u+6),_(this,u+2,u+5),_(this,u+3,u+4);return this},s.prototype.toString=function(){var c=this.length;return c===0?"":arguments.length===0?N(this,0,c):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(c){if(!s.isBuffer(c))throw new TypeError("Argument must be a Buffer");return this===c?!0:s.compare(this,c)===0},s.prototype.inspect=function(){var c="",u=t.INSPECT_MAX_BYTES;return c=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(c+=" ... "),"<Buffer "+c+">"},n&&(s.prototype[n]=s.prototype.inspect),s.prototype.compare=function(c,u,F,L,V){if(me(c,Uint8Array)&&(c=s.from(c,c.offset,c.byteLength)),!s.isBuffer(c))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof c);if(u===void 0&&(u=0),F===void 0&&(F=c?c.length:0),L===void 0&&(L=0),V===void 0&&(V=this.length),u<0||F>c.length||L<0||V>this.length)throw new RangeError("out of range index");if(L>=V&&u>=F)return 0;if(L>=V)return-1;if(u>=F)return 1;if(u>>>=0,F>>>=0,L>>>=0,V>>>=0,this===c)return 0;for(var Z=V-L,fe=F-u,de=Math.min(Z,fe),ge=this.slice(L,V),we=c.slice(u,F),ve=0;ve<de;++ve)if(ge[ve]!==we[ve]){Z=ge[ve],fe=we[ve];break}return Z<fe?-1:fe<Z?1:0};function T(w,c,u,F,L){if(w.length===0)return-1;if(typeof u=="string"?(F=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,Se(u)&&(u=L?0:w.length-1),u<0&&(u=w.length+u),u>=w.length){if(L)return-1;u=w.length-1}else if(u<0)if(L)u=0;else return-1;if(typeof c=="string"&&(c=s.from(c,F)),s.isBuffer(c))return c.length===0?-1:k(w,c,u,F,L);if(typeof c=="number")return c=c&255,typeof Uint8Array.prototype.indexOf=="function"?L?Uint8Array.prototype.indexOf.call(w,c,u):Uint8Array.prototype.lastIndexOf.call(w,c,u):k(w,[c],u,F,L);throw new TypeError("val must be string, number or Buffer")}function k(w,c,u,F,L){var V=1,Z=w.length,fe=c.length;if(F!==void 0&&(F=String(F).toLowerCase(),F==="ucs2"||F==="ucs-2"||F==="utf16le"||F==="utf-16le")){if(w.length<2||c.length<2)return-1;V=2,Z/=2,fe/=2,u/=2}function de(Ct,bt){return V===1?Ct[bt]:Ct.readUInt16BE(bt*V)}var ge;if(L){var we=-1;for(ge=u;ge<Z;ge++)if(de(w,ge)===de(c,we===-1?0:ge-we)){if(we===-1&&(we=ge),ge-we+1===fe)return we*V}else we!==-1&&(ge-=ge-we),we=-1}else for(u+fe>Z&&(u=Z-fe),ge=u;ge>=0;ge--){for(var ve=!0,vt=0;vt<fe;vt++)if(de(w,ge+vt)!==de(c,vt)){ve=!1;break}if(ve)return ge}return-1}s.prototype.includes=function(c,u,F){return this.indexOf(c,u,F)!==-1},s.prototype.indexOf=function(c,u,F){return T(this,c,u,F,!0)},s.prototype.lastIndexOf=function(c,u,F){return T(this,c,u,F,!1)};function $(w,c,u,F){u=Number(u)||0;var L=w.length-u;F?(F=Number(F),F>L&&(F=L)):F=L;var V=c.length;F>V/2&&(F=V/2);for(var Z=0;Z<F;++Z){var fe=parseInt(c.substr(Z*2,2),16);if(Se(fe))return Z;w[u+Z]=fe}return Z}function X(w,c,u,F){return Oe(ae(c,w.length-u),w,u,F)}function I(w,c,u,F){return Oe(be(c),w,u,F)}function P(w,c,u,F){return Oe(He(c),w,u,F)}function G(w,c,u,F){return Oe(Be(c,w.length-u),w,u,F)}s.prototype.write=function(c,u,F,L){if(u===void 0)L="utf8",F=this.length,u=0;else if(F===void 0&&typeof u=="string")L=u,F=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(F)?(F=F>>>0,L===void 0&&(L="utf8")):(L=F,F=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var V=this.length-u;if((F===void 0||F>V)&&(F=V),c.length>0&&(F<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");L||(L="utf8");for(var Z=!1;;)switch(L){case"hex":return $(this,c,u,F);case"utf8":case"utf-8":return X(this,c,u,F);case"ascii":case"latin1":case"binary":return I(this,c,u,F);case"base64":return P(this,c,u,F);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,c,u,F);default:if(Z)throw new TypeError("Unknown encoding: "+L);L=(""+L).toLowerCase(),Z=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function S(w,c,u){return c===0&&u===w.length?e.fromByteArray(w):e.fromByteArray(w.slice(c,u))}function N(w,c,u){u=Math.min(w.length,u);for(var F=[],L=c;L<u;){var V=w[L],Z=null,fe=V>239?4:V>223?3:V>191?2:1;if(L+fe<=u){var de,ge,we,ve;switch(fe){case 1:V<128&&(Z=V);break;case 2:de=w[L+1],(de&192)===128&&(ve=(V&31)<<6|de&63,ve>127&&(Z=ve));break;case 3:de=w[L+1],ge=w[L+2],(de&192)===128&&(ge&192)===128&&(ve=(V&15)<<12|(de&63)<<6|ge&63,ve>2047&&(ve<55296||ve>57343)&&(Z=ve));break;case 4:de=w[L+1],ge=w[L+2],we=w[L+3],(de&192)===128&&(ge&192)===128&&(we&192)===128&&(ve=(V&15)<<18|(de&63)<<12|(ge&63)<<6|we&63,ve>65535&&ve<1114112&&(Z=ve))}}Z===null?(Z=65533,fe=1):Z>65535&&(Z-=65536,F.push(Z>>>10&1023|55296),Z=56320|Z&1023),F.push(Z),L+=fe}return H(F)}var M=4096;function H(w){var c=w.length;if(c<=M)return String.fromCharCode.apply(String,w);for(var u="",F=0;F<c;)u+=String.fromCharCode.apply(String,w.slice(F,F+=M));return u}function Y(w,c,u){var F="";u=Math.min(w.length,u);for(var L=c;L<u;++L)F+=String.fromCharCode(w[L]&127);return F}function W(w,c,u){var F="";u=Math.min(w.length,u);for(var L=c;L<u;++L)F+=String.fromCharCode(w[L]);return F}function ee(w,c,u){var F=w.length;(!c||c<0)&&(c=0),(!u||u<0||u>F)&&(u=F);for(var L="",V=c;V<u;++V)L+=pt[w[V]];return L}function J(w,c,u){for(var F=w.slice(c,u),L="",V=0;V<F.length-1;V+=2)L+=String.fromCharCode(F[V]+F[V+1]*256);return L}s.prototype.slice=function(c,u){var F=this.length;c=~~c,u=u===void 0?F:~~u,c<0?(c+=F,c<0&&(c=0)):c>F&&(c=F),u<0?(u+=F,u<0&&(u=0)):u>F&&(u=F),u<c&&(u=c);var L=this.subarray(c,u);return Object.setPrototypeOf(L,s.prototype),L};function O(w,c,u){if(w%1!==0||w<0)throw new RangeError("offset is not uint");if(w+c>u)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(c,u,F){c=c>>>0,u=u>>>0,F||O(c,u,this.length);for(var L=this[c],V=1,Z=0;++Z<u&&(V*=256);)L+=this[c+Z]*V;return L},s.prototype.readUintBE=s.prototype.readUIntBE=function(c,u,F){c=c>>>0,u=u>>>0,F||O(c,u,this.length);for(var L=this[c+--u],V=1;u>0&&(V*=256);)L+=this[c+--u]*V;return L},s.prototype.readUint8=s.prototype.readUInt8=function(c,u){return c=c>>>0,u||O(c,1,this.length),this[c]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(c,u){return c=c>>>0,u||O(c,2,this.length),this[c]|this[c+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(c,u){return c=c>>>0,u||O(c,2,this.length),this[c]<<8|this[c+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(c,u){return c=c>>>0,u||O(c,4,this.length),(this[c]|this[c+1]<<8|this[c+2]<<16)+this[c+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(c,u){return c=c>>>0,u||O(c,4,this.length),this[c]*16777216+(this[c+1]<<16|this[c+2]<<8|this[c+3])},s.prototype.readIntLE=function(c,u,F){c=c>>>0,u=u>>>0,F||O(c,u,this.length);for(var L=this[c],V=1,Z=0;++Z<u&&(V*=256);)L+=this[c+Z]*V;return V*=128,L>=V&&(L-=Math.pow(2,8*u)),L},s.prototype.readIntBE=function(c,u,F){c=c>>>0,u=u>>>0,F||O(c,u,this.length);for(var L=u,V=1,Z=this[c+--L];L>0&&(V*=256);)Z+=this[c+--L]*V;return V*=128,Z>=V&&(Z-=Math.pow(2,8*u)),Z},s.prototype.readInt8=function(c,u){return c=c>>>0,u||O(c,1,this.length),this[c]&128?(255-this[c]+1)*-1:this[c]},s.prototype.readInt16LE=function(c,u){c=c>>>0,u||O(c,2,this.length);var F=this[c]|this[c+1]<<8;return F&32768?F|4294901760:F},s.prototype.readInt16BE=function(c,u){c=c>>>0,u||O(c,2,this.length);var F=this[c+1]|this[c]<<8;return F&32768?F|4294901760:F},s.prototype.readInt32LE=function(c,u){return c=c>>>0,u||O(c,4,this.length),this[c]|this[c+1]<<8|this[c+2]<<16|this[c+3]<<24},s.prototype.readInt32BE=function(c,u){return c=c>>>0,u||O(c,4,this.length),this[c]<<24|this[c+1]<<16|this[c+2]<<8|this[c+3]},s.prototype.readFloatLE=function(c,u){return c=c>>>0,u||O(c,4,this.length),r.read(this,c,!0,23,4)},s.prototype.readFloatBE=function(c,u){return c=c>>>0,u||O(c,4,this.length),r.read(this,c,!1,23,4)},s.prototype.readDoubleLE=function(c,u){return c=c>>>0,u||O(c,8,this.length),r.read(this,c,!0,52,8)},s.prototype.readDoubleBE=function(c,u){return c=c>>>0,u||O(c,8,this.length),r.read(this,c,!1,52,8)};function U(w,c,u,F,L,V){if(!s.isBuffer(w))throw new TypeError('"buffer" argument must be a Buffer instance');if(c>L||c<V)throw new RangeError('"value" argument is out of bounds');if(u+F>w.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(c,u,F,L){if(c=+c,u=u>>>0,F=F>>>0,!L){var V=Math.pow(2,8*F)-1;U(this,c,u,F,V,0)}var Z=1,fe=0;for(this[u]=c&255;++fe<F&&(Z*=256);)this[u+fe]=c/Z&255;return u+F},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(c,u,F,L){if(c=+c,u=u>>>0,F=F>>>0,!L){var V=Math.pow(2,8*F)-1;U(this,c,u,F,V,0)}var Z=F-1,fe=1;for(this[u+Z]=c&255;--Z>=0&&(fe*=256);)this[u+Z]=c/fe&255;return u+F},s.prototype.writeUint8=s.prototype.writeUInt8=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,1,255,0),this[u]=c&255,u+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,2,65535,0),this[u]=c&255,this[u+1]=c>>>8,u+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,2,65535,0),this[u]=c>>>8,this[u+1]=c&255,u+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,4,4294967295,0),this[u+3]=c>>>24,this[u+2]=c>>>16,this[u+1]=c>>>8,this[u]=c&255,u+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,4,4294967295,0),this[u]=c>>>24,this[u+1]=c>>>16,this[u+2]=c>>>8,this[u+3]=c&255,u+4},s.prototype.writeIntLE=function(c,u,F,L){if(c=+c,u=u>>>0,!L){var V=Math.pow(2,8*F-1);U(this,c,u,F,V-1,-V)}var Z=0,fe=1,de=0;for(this[u]=c&255;++Z<F&&(fe*=256);)c<0&&de===0&&this[u+Z-1]!==0&&(de=1),this[u+Z]=(c/fe>>0)-de&255;return u+F},s.prototype.writeIntBE=function(c,u,F,L){if(c=+c,u=u>>>0,!L){var V=Math.pow(2,8*F-1);U(this,c,u,F,V-1,-V)}var Z=F-1,fe=1,de=0;for(this[u+Z]=c&255;--Z>=0&&(fe*=256);)c<0&&de===0&&this[u+Z+1]!==0&&(de=1),this[u+Z]=(c/fe>>0)-de&255;return u+F},s.prototype.writeInt8=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,1,127,-128),c<0&&(c=255+c+1),this[u]=c&255,u+1},s.prototype.writeInt16LE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,2,32767,-32768),this[u]=c&255,this[u+1]=c>>>8,u+2},s.prototype.writeInt16BE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,2,32767,-32768),this[u]=c>>>8,this[u+1]=c&255,u+2},s.prototype.writeInt32LE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,4,2147483647,-2147483648),this[u]=c&255,this[u+1]=c>>>8,this[u+2]=c>>>16,this[u+3]=c>>>24,u+4},s.prototype.writeInt32BE=function(c,u,F){return c=+c,u=u>>>0,F||U(this,c,u,4,2147483647,-2147483648),c<0&&(c=4294967295+c+1),this[u]=c>>>24,this[u+1]=c>>>16,this[u+2]=c>>>8,this[u+3]=c&255,u+4};function K(w,c,u,F,L,V){if(u+F>w.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function z(w,c,u,F,L){return c=+c,u=u>>>0,L||K(w,c,u,4),r.write(w,c,u,F,23,4),u+4}s.prototype.writeFloatLE=function(c,u,F){return z(this,c,u,!0,F)},s.prototype.writeFloatBE=function(c,u,F){return z(this,c,u,!1,F)};function oe(w,c,u,F,L){return c=+c,u=u>>>0,L||K(w,c,u,8),r.write(w,c,u,F,52,8),u+8}s.prototype.writeDoubleLE=function(c,u,F){return oe(this,c,u,!0,F)},s.prototype.writeDoubleBE=function(c,u,F){return oe(this,c,u,!1,F)},s.prototype.copy=function(c,u,F,L){if(!s.isBuffer(c))throw new TypeError("argument should be a Buffer");if(F||(F=0),!L&&L!==0&&(L=this.length),u>=c.length&&(u=c.length),u||(u=0),L>0&&L<F&&(L=F),L===F||c.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(F<0||F>=this.length)throw new RangeError("Index out of range");if(L<0)throw new RangeError("sourceEnd out of bounds");L>this.length&&(L=this.length),c.length-u<L-F&&(L=c.length-u+F);var V=L-F;return this===c&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,F,L):Uint8Array.prototype.set.call(c,this.subarray(F,L),u),V},s.prototype.fill=function(c,u,F,L){if(typeof c=="string"){if(typeof u=="string"?(L=u,u=0,F=this.length):typeof F=="string"&&(L=F,F=this.length),L!==void 0&&typeof L!="string")throw new TypeError("encoding must be a string");if(typeof L=="string"&&!s.isEncoding(L))throw new TypeError("Unknown encoding: "+L);if(c.length===1){var V=c.charCodeAt(0);(L==="utf8"&&V<128||L==="latin1")&&(c=V)}}else typeof c=="number"?c=c&255:typeof c=="boolean"&&(c=Number(c));if(u<0||this.length<u||this.length<F)throw new RangeError("Out of range index");if(F<=u)return this;u=u>>>0,F=F===void 0?this.length:F>>>0,c||(c=0);var Z;if(typeof c=="number")for(Z=u;Z<F;++Z)this[Z]=c;else{var fe=s.isBuffer(c)?c:s.from(c,L),de=fe.length;if(de===0)throw new TypeError('The value "'+c+'" is invalid for argument "value"');for(Z=0;Z<F-u;++Z)this[Z+u]=fe[Z%de]}return this};var se=/[^+/0-9A-Za-z-_]/g;function Ae(w){if(w=w.split("=")[0],w=w.trim().replace(se,""),w.length<2)return"";for(;w.length%4!==0;)w=w+"=";return w}function ae(w,c){c=c||1/0;for(var u,F=w.length,L=null,V=[],Z=0;Z<F;++Z){if(u=w.charCodeAt(Z),u>55295&&u<57344){if(!L){if(u>56319){(c-=3)>-1&&V.push(239,191,189);continue}else if(Z+1===F){(c-=3)>-1&&V.push(239,191,189);continue}L=u;continue}if(u<56320){(c-=3)>-1&&V.push(239,191,189),L=u;continue}u=(L-55296<<10|u-56320)+65536}else L&&(c-=3)>-1&&V.push(239,191,189);if(L=null,u<128){if((c-=1)<0)break;V.push(u)}else if(u<2048){if((c-=2)<0)break;V.push(u>>6|192,u&63|128)}else if(u<65536){if((c-=3)<0)break;V.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((c-=4)<0)break;V.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return V}function be(w){for(var c=[],u=0;u<w.length;++u)c.push(w.charCodeAt(u)&255);return c}function Be(w,c){for(var u,F,L,V=[],Z=0;Z<w.length&&!((c-=2)<0);++Z)u=w.charCodeAt(Z),F=u>>8,L=u%256,V.push(L),V.push(F);return V}function He(w){return e.toByteArray(Ae(w))}function Oe(w,c,u,F){for(var L=0;L<F&&!(L+u>=c.length||L>=w.length);++L)c[L+u]=w[L];return L}function me(w,c){return w instanceof c||w!=null&&w.constructor!=null&&w.constructor.name!=null&&w.constructor.name===c.name}function Se(w){return w!==w}var pt=function(){for(var w="0123456789abcdef",c=new Array(256),u=0;u<16;++u)for(var F=u*16,L=0;L<16;++L)c[F+L]=w[u]+w[L];return c}()})(le);var Zh=le.Buffer,Qh=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(Zh.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 cr=Xn(Qh);var ys={exports:{}};(function(t,e){(function(){var r,n=0xdeadbeefcafe,i=(n&16777215)==15715070;function o(h,p,E){h!=null&&(typeof h=="number"?this.fromNumber(h,p,E):p==null&&typeof h!="string"?this.fromString(h,256):this.fromString(h,p))}function a(){return new o(null)}function s(h,p,E,R,j,Q){for(;--Q>=0;){var re=p*this[h++]+E[R]+j;j=Math.floor(re/67108864),E[R++]=re&67108863}return j}function x(h,p,E,R,j,Q){for(var re=p&32767,ne=p>>15;--Q>=0;){var Ce=this[h]&32767,Pe=this[h++]>>15,Qe=ne*Ce+Pe*re;Ce=re*Ce+((Qe&32767)<<15)+E[R]+(j&1073741823),j=(Ce>>>30)+(Qe>>>15)+ne*Pe+(j>>>30),E[R++]=Ce&1073741823}return j}function f(h,p,E,R,j,Q){for(var re=p&16383,ne=p>>14;--Q>=0;){var Ce=this[h]&16383,Pe=this[h++]>>14,Qe=ne*Ce+Pe*re;Ce=re*Ce+((Qe&16383)<<14)+E[R]+j,j=(Ce>>28)+(Qe>>14)+ne*Pe,E[R++]=Ce&268435455}return j}var l=typeof navigator!="undefined";l&&i&&navigator.appName=="Microsoft Internet Explorer"?(o.prototype.am=x,r=30):l&&i&&navigator.appName!="Netscape"?(o.prototype.am=s,r=26):(o.prototype.am=f,r=28),o.prototype.DB=r,o.prototype.DM=(1<<r)-1,o.prototype.DV=1<<r;var v=52;o.prototype.FV=Math.pow(2,v),o.prototype.F1=v-r,o.prototype.F2=2*r-v;var d="0123456789abcdefghijklmnopqrstuvwxyz",g=new Array,y,m;for(y=48,m=0;m<=9;++m)g[y++]=m;for(y=97,m=10;m<36;++m)g[y++]=m;for(y=65,m=10;m<36;++m)g[y++]=m;function A(h){return d.charAt(h)}function D(h,p){var E=g[h.charCodeAt(p)];return E==null?-1:E}function C(h){for(var p=this.t-1;p>=0;--p)h[p]=this[p];h.t=this.t,h.s=this.s}function B(h){this.t=1,this.s=h<0?-1:0,h>0?this[0]=h:h<-1?this[0]=h+this.DV:this.t=0}function b(h){var p=a();return p.fromInt(h),p}function _(h,p){var E;if(p==16)E=4;else if(p==8)E=3;else if(p==256)E=8;else if(p==2)E=1;else if(p==32)E=5;else if(p==4)E=2;else{this.fromRadix(h,p);return}this.t=0,this.s=0;for(var R=h.length,j=!1,Q=0;--R>=0;){var re=E==8?h[R]&255:D(h,R);if(re<0){h.charAt(R)=="-"&&(j=!0);continue}j=!1,Q==0?this[this.t++]=re:Q+E>this.DB?(this[this.t-1]|=(re&(1<<this.DB-Q)-1)<<Q,this[this.t++]=re>>this.DB-Q):this[this.t-1]|=re<<Q,Q+=E,Q>=this.DB&&(Q-=this.DB)}E==8&&h[0]&128&&(this.s=-1,Q>0&&(this[this.t-1]|=(1<<this.DB-Q)-1<<Q)),this.clamp(),j&&o.ZERO.subTo(this,this)}function T(){for(var h=this.s&this.DM;this.t>0&&this[this.t-1]==h;)--this.t}function k(h){if(this.s<0)return"-"+this.negate().toString(h);var p;if(h==16)p=4;else if(h==8)p=3;else if(h==2)p=1;else if(h==32)p=5;else if(h==4)p=2;else return this.toRadix(h);var E=(1<<p)-1,R,j=!1,Q="",re=this.t,ne=this.DB-re*this.DB%p;if(re-- >0)for(ne<this.DB&&(R=this[re]>>ne)>0&&(j=!0,Q=A(R));re>=0;)ne<p?(R=(this[re]&(1<<ne)-1)<<p-ne,R|=this[--re]>>(ne+=this.DB-p)):(R=this[re]>>(ne-=p)&E,ne<=0&&(ne+=this.DB,--re)),R>0&&(j=!0),j&&(Q+=A(R));return j?Q:"0"}function $(){var h=a();return o.ZERO.subTo(this,h),h}function X(){return this.s<0?this.negate():this}function I(h){var p=this.s-h.s;if(p!=0)return p;var E=this.t;if(p=E-h.t,p!=0)return this.s<0?-p:p;for(;--E>=0;)if((p=this[E]-h[E])!=0)return p;return 0}function P(h){var p=1,E;return(E=h>>>16)!=0&&(h=E,p+=16),(E=h>>8)!=0&&(h=E,p+=8),(E=h>>4)!=0&&(h=E,p+=4),(E=h>>2)!=0&&(h=E,p+=2),(E=h>>1)!=0&&(h=E,p+=1),p}function G(){return this.t<=0?0:this.DB*(this.t-1)+P(this[this.t-1]^this.s&this.DM)}function S(h,p){var E;for(E=this.t-1;E>=0;--E)p[E+h]=this[E];for(E=h-1;E>=0;--E)p[E]=0;p.t=this.t+h,p.s=this.s}function N(h,p){for(var E=h;E<this.t;++E)p[E-h]=this[E];p.t=Math.max(this.t-h,0),p.s=this.s}function M(h,p){var E=h%this.DB,R=this.DB-E,j=(1<<R)-1,Q=Math.floor(h/this.DB),re=this.s<<E&this.DM,ne;for(ne=this.t-1;ne>=0;--ne)p[ne+Q+1]=this[ne]>>R|re,re=(this[ne]&j)<<E;for(ne=Q-1;ne>=0;--ne)p[ne]=0;p[Q]=re,p.t=this.t+Q+1,p.s=this.s,p.clamp()}function H(h,p){p.s=this.s;var E=Math.floor(h/this.DB);if(E>=this.t){p.t=0;return}var R=h%this.DB,j=this.DB-R,Q=(1<<R)-1;p[0]=this[E]>>R;for(var re=E+1;re<this.t;++re)p[re-E-1]|=(this[re]&Q)<<j,p[re-E]=this[re]>>R;R>0&&(p[this.t-E-1]|=(this.s&Q)<<j),p.t=this.t-E,p.clamp()}function Y(h,p){for(var E=0,R=0,j=Math.min(h.t,this.t);E<j;)R+=this[E]-h[E],p[E++]=R&this.DM,R>>=this.DB;if(h.t<this.t){for(R-=h.s;E<this.t;)R+=this[E],p[E++]=R&this.DM,R>>=this.DB;R+=this.s}else{for(R+=this.s;E<h.t;)R-=h[E],p[E++]=R&this.DM,R>>=this.DB;R-=h.s}p.s=R<0?-1:0,R<-1?p[E++]=this.DV+R:R>0&&(p[E++]=R),p.t=E,p.clamp()}function W(h,p){var E=this.abs(),R=h.abs(),j=E.t;for(p.t=j+R.t;--j>=0;)p[j]=0;for(j=0;j<R.t;++j)p[j+E.t]=E.am(0,R[j],p,j,0,E.t);p.s=0,p.clamp(),this.s!=h.s&&o.ZERO.subTo(p,p)}function ee(h){for(var p=this.abs(),E=h.t=2*p.t;--E>=0;)h[E]=0;for(E=0;E<p.t-1;++E){var R=p.am(E,p[E],h,2*E,0,1);(h[E+p.t]+=p.am(E+1,2*p[E],h,2*E+1,R,p.t-E-1))>=p.DV&&(h[E+p.t]-=p.DV,h[E+p.t+1]=1)}h.t>0&&(h[h.t-1]+=p.am(E,p[E],h,2*E,0,1)),h.s=0,h.clamp()}function J(h,p,E){var R=h.abs();if(!(R.t<=0)){var j=this.abs();if(j.t<R.t){p!=null&&p.fromInt(0),E!=null&&this.copyTo(E);return}E==null&&(E=a());var Q=a(),re=this.s,ne=h.s,Ce=this.DB-P(R[R.t-1]);Ce>0?(R.lShiftTo(Ce,Q),j.lShiftTo(Ce,E)):(R.copyTo(Q),j.copyTo(E));var Pe=Q.t,Qe=Q[Pe-1];if(Qe!=0){var Ye=Qe*(1<<this.F1)+(Pe>1?Q[Pe-2]>>this.F2:0),xt=this.FV/Ye,Dr=(1<<this.F1)/Ye,tt=1<<this.F2,rt=E.t,_r=rt-Pe,mt=p==null?a():p;for(Q.dlShiftTo(_r,mt),E.compareTo(mt)>=0&&(E[E.t++]=1,E.subTo(mt,E)),o.ONE.dlShiftTo(Pe,mt),mt.subTo(Q,Q);Q.t<Pe;)Q[Q.t++]=0;for(;--_r>=0;){var B0=E[--rt]==Qe?this.DM:Math.floor(E[rt]*xt+(E[rt-1]+tt)*Dr);if((E[rt]+=Q.am(0,B0,E,_r,0,Pe))<B0)for(Q.dlShiftTo(_r,mt),E.subTo(mt,E);E[rt]<--B0;)E.subTo(mt,E)}p!=null&&(E.drShiftTo(Pe,p),re!=ne&&o.ZERO.subTo(p,p)),E.t=Pe,E.clamp(),Ce>0&&E.rShiftTo(Ce,E),re<0&&o.ZERO.subTo(E,E)}}}function O(h){var p=a();return this.abs().divRemTo(h,null,p),this.s<0&&p.compareTo(o.ZERO)>0&&h.subTo(p,p),p}function U(h){this.m=h}function K(h){return h.s<0||h.compareTo(this.m)>=0?h.mod(this.m):h}function z(h){return h}function oe(h){h.divRemTo(this.m,null,h)}function se(h,p,E){h.multiplyTo(p,E),this.reduce(E)}function Ae(h,p){h.squareTo(p),this.reduce(p)}U.prototype.convert=K,U.prototype.revert=z,U.prototype.reduce=oe,U.prototype.mulTo=se,U.prototype.sqrTo=Ae;function ae(){if(this.t<1)return 0;var h=this[0];if(!(h&1))return 0;var p=h&3;return p=p*(2-(h&15)*p)&15,p=p*(2-(h&255)*p)&255,p=p*(2-((h&65535)*p&65535))&65535,p=p*(2-h*p%this.DV)%this.DV,p>0?this.DV-p:-p}function be(h){this.m=h,this.mp=h.invDigit(),this.mpl=this.mp&32767,this.mph=this.mp>>15,this.um=(1<<h.DB-15)-1,this.mt2=2*h.t}function Be(h){var p=a();return h.abs().dlShiftTo(this.m.t,p),p.divRemTo(this.m,null,p),h.s<0&&p.compareTo(o.ZERO)>0&&this.m.subTo(p,p),p}function He(h){var p=a();return h.copyTo(p),this.reduce(p),p}function Oe(h){for(;h.t<=this.mt2;)h[h.t++]=0;for(var p=0;p<this.m.t;++p){var E=h[p]&32767,R=E*this.mpl+((E*this.mph+(h[p]>>15)*this.mpl&this.um)<<15)&h.DM;for(E=p+this.m.t,h[E]+=this.m.am(0,R,h,p,0,this.m.t);h[E]>=h.DV;)h[E]-=h.DV,h[++E]++}h.clamp(),h.drShiftTo(this.m.t,h),h.compareTo(this.m)>=0&&h.subTo(this.m,h)}function me(h,p){h.squareTo(p),this.reduce(p)}function Se(h,p,E){h.multiplyTo(p,E),this.reduce(E)}be.prototype.convert=Be,be.prototype.revert=He,be.prototype.reduce=Oe,be.prototype.mulTo=Se,be.prototype.sqrTo=me;function pt(){return(this.t>0?this[0]&1:this.s)==0}function w(h,p){if(h>4294967295||h<1)return o.ONE;var E=a(),R=a(),j=p.convert(this),Q=P(h)-1;for(j.copyTo(E);--Q>=0;)if(p.sqrTo(E,R),(h&1<<Q)>0)p.mulTo(R,j,E);else{var re=E;E=R,R=re}return p.revert(E)}function c(h,p){var E;return h<256||p.isEven()?E=new U(p):E=new be(p),this.exp(h,E)}o.prototype.copyTo=C,o.prototype.fromInt=B,o.prototype.fromString=_,o.prototype.clamp=T,o.prototype.dlShiftTo=S,o.prototype.drShiftTo=N,o.prototype.lShiftTo=M,o.prototype.rShiftTo=H,o.prototype.subTo=Y,o.prototype.multiplyTo=W,o.prototype.squareTo=ee,o.prototype.divRemTo=J,o.prototype.invDigit=ae,o.prototype.isEven=pt,o.prototype.exp=w,o.prototype.toString=k,o.prototype.negate=$,o.prototype.abs=X,o.prototype.compareTo=I,o.prototype.bitLength=G,o.prototype.mod=O,o.prototype.modPowInt=c,o.ZERO=b(0),o.ONE=b(1);function u(){var h=a();return this.copyTo(h),h}function F(){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 L(){return this.t==0?this.s:this[0]<<24>>24}function V(){return this.t==0?this.s:this[0]<<16>>16}function Z(h){return Math.floor(Math.LN2*this.DB/Math.log(h))}function fe(){return this.s<0?-1:this.t<=0||this.t==1&&this[0]<=0?0:1}function de(h){if(h==null&&(h=10),this.signum()==0||h<2||h>36)return"0";var p=this.chunkSize(h),E=Math.pow(h,p),R=b(E),j=a(),Q=a(),re="";for(this.divRemTo(R,j,Q);j.signum()>0;)re=(E+Q.intValue()).toString(h).substr(1)+re,j.divRemTo(R,j,Q);return Q.intValue().toString(h)+re}function ge(h,p){this.fromInt(0),p==null&&(p=10);for(var E=this.chunkSize(p),R=Math.pow(p,E),j=!1,Q=0,re=0,ne=0;ne<h.length;++ne){var Ce=D(h,ne);if(Ce<0){h.charAt(ne)=="-"&&this.signum()==0&&(j=!0);continue}re=p*re+Ce,++Q>=E&&(this.dMultiply(R),this.dAddOffset(re,0),Q=0,re=0)}Q>0&&(this.dMultiply(Math.pow(p,Q)),this.dAddOffset(re,0)),j&&o.ZERO.subTo(this,this)}function we(h,p,E){if(typeof p=="number")if(h<2)this.fromInt(1);else for(this.fromNumber(h,E),this.testBit(h-1)||this.bitwiseTo(o.ONE.shiftLeft(h-1),Ut,this),this.isEven()&&this.dAddOffset(1,0);!this.isProbablePrime(p);)this.dAddOffset(2,0),this.bitLength()>h&&this.subTo(o.ONE.shiftLeft(h-1),this);else{var R=new Array,j=h&7;R.length=(h>>3)+1,p.nextBytes(R),j>0?R[0]&=(1<<j)-1:R[0]=0,this.fromString(R,256)}}function ve(){var h=this.t,p=new Array;p[0]=this.s;var E=this.DB-h*this.DB%8,R,j=0;if(h-- >0)for(E<this.DB&&(R=this[h]>>E)!=(this.s&this.DM)>>E&&(p[j++]=R|this.s<<this.DB-E);h>=0;)E<8?(R=(this[h]&(1<<E)-1)<<8-E,R|=this[--h]>>(E+=this.DB-8)):(R=this[h]>>(E-=8)&255,E<=0&&(E+=this.DB,--h)),R&128&&(R|=-256),j==0&&(this.s&128)!=(R&128)&&++j,(j>0||R!=this.s)&&(p[j++]=R);return p}function vt(h){return this.compareTo(h)==0}function Ct(h){return this.compareTo(h)<0?this:h}function bt(h){return this.compareTo(h)>0?this:h}function yt(h,p,E){var R,j,Q=Math.min(h.t,this.t);for(R=0;R<Q;++R)E[R]=p(this[R],h[R]);if(h.t<this.t){for(j=h.s&this.DM,R=Q;R<this.t;++R)E[R]=p(this[R],j);E.t=this.t}else{for(j=this.s&this.DM,R=Q;R<h.t;++R)E[R]=p(j,h[R]);E.t=h.t}E.s=p(this.s,h.s),E.clamp()}function Ft(h,p){return h&p}function c0(h){var p=a();return this.bitwiseTo(h,Ft,p),p}function Ut(h,p){return h|p}function mr(h){var p=a();return this.bitwiseTo(h,Ut,p),p}function gr(h,p){return h^p}function u0(h){var p=a();return this.bitwiseTo(h,gr,p),p}function Qt(h,p){return h&~p}function l0(h){var p=a();return this.bitwiseTo(h,Qt,p),p}function Ar(){for(var h=a(),p=0;p<this.t;++p)h[p]=this.DM&~this[p];return h.t=this.t,h.s=~this.s,h}function h0(h){var p=a();return h<0?this.rShiftTo(-h,p):this.lShiftTo(h,p),p}function Er(h){var p=a();return h<0?this.lShiftTo(-h,p):this.rShiftTo(h,p),p}function x0(h){if(h==0)return-1;var p=0;return h&65535||(h>>=16,p+=16),h&255||(h>>=8,p+=8),h&15||(h>>=4,p+=4),h&3||(h>>=2,p+=2),h&1||++p,p}function d0(){for(var h=0;h<this.t;++h)if(this[h]!=0)return h*this.DB+x0(this[h]);return this.s<0?this.t*this.DB:-1}function p0(h){for(var p=0;h!=0;)h&=h-1,++p;return p}function Br(){for(var h=0,p=this.s&this.DM,E=0;E<this.t;++E)h+=p0(this[E]^p);return h}function v0(h){var p=Math.floor(h/this.DB);return p>=this.t?this.s!=0:(this[p]&1<<h%this.DB)!=0}function y0(h,p){var E=o.ONE.shiftLeft(h);return this.bitwiseTo(E,p,E),E}function wr(h){return this.changeBit(h,Ut)}function m0(h){return this.changeBit(h,Qt)}function Cr(h){return this.changeBit(h,gr)}function qe(h,p){for(var E=0,R=0,j=Math.min(h.t,this.t);E<j;)R+=this[E]+h[E],p[E++]=R&this.DM,R>>=this.DB;if(h.t<this.t){for(R+=h.s;E<this.t;)R+=this[E],p[E++]=R&this.DM,R>>=this.DB;R+=this.s}else{for(R+=this.s;E<h.t;)R+=h[E],p[E++]=R&this.DM,R>>=this.DB;R+=h.s}p.s=R<0?-1:0,R>0?p[E++]=R:R<-1&&(p[E++]=this.DV+R),p.t=E,p.clamp()}function ot(h){var p=a();return this.addTo(h,p),p}function br(h){var p=a();return this.subTo(h,p),p}function g0(h){var p=a();return this.multiplyTo(h,p),p}function Rs(){var h=a();return this.squareTo(h),h}function Os(h){var p=a();return this.divRemTo(h,p,null),p}function ks(h){var p=a();return this.divRemTo(h,null,p),p}function Ps(h){var p=a(),E=a();return this.divRemTo(h,p,E),new Array(p,E)}function Ms(h){this[this.t]=this.am(0,h-1,this,0,0,this.t),++this.t,this.clamp()}function Ls(h,p){if(h!=0){for(;this.t<=p;)this[this.t++]=0;for(this[p]+=h;this[p]>=this.DV;)this[p]-=this.DV,++p>=this.t&&(this[this.t++]=0),++this[p]}}function Jt(){}function ci(h){return h}function Us(h,p,E){h.multiplyTo(p,E)}function Ns(h,p){h.squareTo(p)}Jt.prototype.convert=ci,Jt.prototype.revert=ci,Jt.prototype.mulTo=Us,Jt.prototype.sqrTo=Ns;function Hs(h){return this.exp(h,new Jt)}function $s(h,p,E){var R=Math.min(this.t+h.t,p);for(E.s=0,E.t=R;R>0;)E[--R]=0;var j;for(j=E.t-this.t;R<j;++R)E[R+this.t]=this.am(0,h[R],E,R,0,this.t);for(j=Math.min(h.t,p);R<j;++R)this.am(0,h[R],E,R,0,p-R);E.clamp()}function qs(h,p,E){--p;var R=E.t=this.t+h.t-p;for(E.s=0;--R>=0;)E[R]=0;for(R=Math.max(p-this.t,0);R<h.t;++R)E[this.t+R-p]=this.am(p-R,h[R],E,0,0,this.t+R-p);E.clamp(),E.drShiftTo(1,E)}function Dt(h){this.r2=a(),this.q3=a(),o.ONE.dlShiftTo(2*h.t,this.r2),this.mu=this.r2.divide(h),this.m=h}function zs(h){if(h.s<0||h.t>2*this.m.t)return h.mod(this.m);if(h.compareTo(this.m)<0)return h;var p=a();return h.copyTo(p),this.reduce(p),p}function Ws(h){return h}function Gs(h){for(h.drShiftTo(this.m.t-1,this.r2),h.t>this.m.t+1&&(h.t=this.m.t+1,h.clamp()),this.mu.multiplyUpperTo(this.r2,this.m.t+1,this.q3),this.m.multiplyLowerTo(this.q3,this.m.t+1,this.r2);h.compareTo(this.r2)<0;)h.dAddOffset(1,this.m.t+1);for(h.subTo(this.r2,h);h.compareTo(this.m)>=0;)h.subTo(this.m,h)}function Ks(h,p){h.squareTo(p),this.reduce(p)}function Vs(h,p,E){h.multiplyTo(p,E),this.reduce(E)}Dt.prototype.convert=zs,Dt.prototype.revert=Ws,Dt.prototype.reduce=Gs,Dt.prototype.mulTo=Vs,Dt.prototype.sqrTo=Ks;function js(h,p){var E=h.bitLength(),R,j=b(1),Q;if(E<=0)return j;E<18?R=1:E<48?R=3:E<144?R=4:E<768?R=5:R=6,E<8?Q=new U(p):p.isEven()?Q=new Dt(p):Q=new be(p);var re=new Array,ne=3,Ce=R-1,Pe=(1<<R)-1;if(re[1]=Q.convert(this),R>1){var Qe=a();for(Q.sqrTo(re[1],Qe);ne<=Pe;)re[ne]=a(),Q.mulTo(Qe,re[ne-2],re[ne]),ne+=2}var Ye=h.t-1,xt,Dr=!0,tt=a(),rt;for(E=P(h[Ye])-1;Ye>=0;){for(E>=Ce?xt=h[Ye]>>E-Ce&Pe:(xt=(h[Ye]&(1<<E+1)-1)<<Ce-E,Ye>0&&(xt|=h[Ye-1]>>this.DB+E-Ce)),ne=R;!(xt&1);)xt>>=1,--ne;if((E-=ne)<0&&(E+=this.DB,--Ye),Dr)re[xt].copyTo(j),Dr=!1;else{for(;ne>1;)Q.sqrTo(j,tt),Q.sqrTo(tt,j),ne-=2;ne>0?Q.sqrTo(j,tt):(rt=j,j=tt,tt=rt),Q.mulTo(tt,re[xt],j)}for(;Ye>=0&&!(h[Ye]&1<<E);)Q.sqrTo(j,tt),rt=j,j=tt,tt=rt,--E<0&&(E=this.DB-1,--Ye)}return Q.revert(j)}function Xs(h){var p=this.s<0?this.negate():this.clone(),E=h.s<0?h.negate():h.clone();if(p.compareTo(E)<0){var R=p;p=E,E=R}var j=p.getLowestSetBit(),Q=E.getLowestSetBit();if(Q<0)return p;for(j<Q&&(Q=j),Q>0&&(p.rShiftTo(Q,p),E.rShiftTo(Q,E));p.signum()>0;)(j=p.getLowestSetBit())>0&&p.rShiftTo(j,p),(j=E.getLowestSetBit())>0&&E.rShiftTo(j,E),p.compareTo(E)>=0?(p.subTo(E,p),p.rShiftTo(1,p)):(E.subTo(p,E),E.rShiftTo(1,E));return Q>0&&E.lShiftTo(Q,E),E}function Ys(h){if(h<=0)return 0;var p=this.DV%h,E=this.s<0?h-1:0;if(this.t>0)if(p==0)E=this[0]%h;else for(var R=this.t-1;R>=0;--R)E=(p*E+this[R])%h;return E}function Zs(h){var p=h.isEven();if(this.isEven()&&p||h.signum()==0)return o.ZERO;for(var E=h.clone(),R=this.clone(),j=b(1),Q=b(0),re=b(0),ne=b(1);E.signum()!=0;){for(;E.isEven();)E.rShiftTo(1,E),p?((!j.isEven()||!Q.isEven())&&(j.addTo(this,j),Q.subTo(h,Q)),j.rShiftTo(1,j)):Q.isEven()||Q.subTo(h,Q),Q.rShiftTo(1,Q);for(;R.isEven();)R.rShiftTo(1,R),p?((!re.isEven()||!ne.isEven())&&(re.addTo(this,re),ne.subTo(h,ne)),re.rShiftTo(1,re)):ne.isEven()||ne.subTo(h,ne),ne.rShiftTo(1,ne);E.compareTo(R)>=0?(E.subTo(R,E),p&&j.subTo(re,j),Q.subTo(ne,Q)):(R.subTo(E,R),p&&re.subTo(j,re),ne.subTo(Q,ne))}if(R.compareTo(o.ONE)!=0)return o.ZERO;if(ne.compareTo(h)>=0)return ne.subtract(h);if(ne.signum()<0)ne.addTo(h,ne);else return ne;return ne.signum()<0?ne.add(h):ne}var ze=[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],Qs=(1<<26)/ze[ze.length-1];function Js(h){var p,E=this.abs();if(E.t==1&&E[0]<=ze[ze.length-1]){for(p=0;p<ze.length;++p)if(E[0]==ze[p])return!0;return!1}if(E.isEven())return!1;for(p=1;p<ze.length;){for(var R=ze[p],j=p+1;j<ze.length&&R<Qs;)R*=ze[j++];for(R=E.modInt(R);p<j;)if(R%ze[p++]==0)return!1}return E.millerRabin(h)}function ef(h){var p=this.subtract(o.ONE),E=p.getLowestSetBit();if(E<=0)return!1;var R=p.shiftRight(E);h=h+1>>1,h>ze.length&&(h=ze.length);for(var j=a(),Q=0;Q<h;++Q){j.fromInt(ze[Math.floor(Math.random()*ze.length)]);var re=j.modPow(R,this);if(re.compareTo(o.ONE)!=0&&re.compareTo(p)!=0){for(var ne=1;ne++<E&&re.compareTo(p)!=0;)if(re=re.modPowInt(2,this),re.compareTo(o.ONE)==0)return!1;if(re.compareTo(p)!=0)return!1}}return!0}o.prototype.chunkSize=Z,o.prototype.toRadix=de,o.prototype.fromRadix=ge,o.prototype.fromNumber=we,o.prototype.bitwiseTo=yt,o.prototype.changeBit=y0,o.prototype.addTo=qe,o.prototype.dMultiply=Ms,o.prototype.dAddOffset=Ls,o.prototype.multiplyLowerTo=$s,o.prototype.multiplyUpperTo=qs,o.prototype.modInt=Ys,o.prototype.millerRabin=ef,o.prototype.clone=u,o.prototype.intValue=F,o.prototype.byteValue=L,o.prototype.shortValue=V,o.prototype.signum=fe,o.prototype.toByteArray=ve,o.prototype.equals=vt,o.prototype.min=Ct,o.prototype.max=bt,o.prototype.and=c0,o.prototype.or=mr,o.prototype.xor=u0,o.prototype.andNot=l0,o.prototype.not=Ar,o.prototype.shiftLeft=h0,o.prototype.shiftRight=Er,o.prototype.getLowestSetBit=d0,o.prototype.bitCount=Br,o.prototype.testBit=v0,o.prototype.setBit=wr,o.prototype.clearBit=m0,o.prototype.flipBit=Cr,o.prototype.add=ot,o.prototype.subtract=br,o.prototype.multiply=g0,o.prototype.divide=Os,o.prototype.remainder=ks,o.prototype.divideAndRemainder=Ps,o.prototype.modPow=js,o.prototype.modInverse=Zs,o.prototype.pow=Hs,o.prototype.gcd=Xs,o.prototype.isProbablePrime=Js,o.prototype.square=Rs,o.prototype.Barrett=Dt;var Fr,Xe,ke;function tf(h){Xe[ke++]^=h&255,Xe[ke++]^=h>>8&255,Xe[ke++]^=h>>16&255,Xe[ke++]^=h>>24&255,ke>=E0&&(ke-=E0)}function ui(){tf(new Date().getTime())}if(Xe==null){Xe=new Array,ke=0;var et;if(typeof window!="undefined"&&window.crypto){if(window.crypto.getRandomValues){var li=new Uint8Array(32);for(window.crypto.getRandomValues(li),et=0;et<32;++et)Xe[ke++]=li[et]}else if(navigator.appName=="Netscape"&&navigator.appVersion<"5"){var hi=window.crypto.random(32);for(et=0;et<hi.length;++et)Xe[ke++]=hi.charCodeAt(et)&255}}for(;ke<E0;)et=Math.floor(65536*Math.random()),Xe[ke++]=et>>>8,Xe[ke++]=et&255;ke=0,ui()}function rf(){if(Fr==null){for(ui(),Fr=sf(),Fr.init(Xe),ke=0;ke<Xe.length;++ke)Xe[ke]=0;ke=0}return Fr.next()}function nf(h){var p;for(p=0;p<h.length;++p)h[p]=rf()}function xi(){}xi.prototype.nextBytes=nf;function A0(){this.i=0,this.j=0,this.S=new Array}function of(h){var p,E,R;for(p=0;p<256;++p)this.S[p]=p;for(E=0,p=0;p<256;++p)E=E+this.S[p]+h[p%h.length]&255,R=this.S[p],this.S[p]=this.S[E],this.S[E]=R;this.i=0,this.j=0}function af(){var h;return this.i=this.i+1&255,this.j=this.j+this.S[this.i]&255,h=this.S[this.i],this.S[this.i]=this.S[this.j],this.S[this.j]=h,this.S[h+this.S[this.i]&255]}A0.prototype.init=of,A0.prototype.next=af;function sf(){return new A0}var E0=256;t.exports={default:o,BigInteger:o,SecureRandom:xi}}).call(ce)})(ys);var ye=ys.exports,Jh=ye.BigInteger.prototype.Barrett;function Ge(t,e){this.x=e,this.q=t}function Ke(t,e,r,n){this.curve=t,this.x=e,this.y=r,this.z=n==null?ye.BigInteger.ONE:n,this.zinv=null}function ct(t,e,r){this.q=t,this.a=this.fromBigInteger(e),this.b=this.fromBigInteger(r),this.infinity=new Ke(this,null,null),this.reducer=new Jh(this.q)}Ge.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.x.equals(t.x)},Ge.prototype.toBigInteger=function(){return this.x},Ge.prototype.negate=function(){return new Ge(this.q,this.x.negate().mod(this.q))},Ge.prototype.add=function(t){return new Ge(this.q,this.x.add(t.toBigInteger()).mod(this.q))},Ge.prototype.subtract=function(t){return new Ge(this.q,this.x.subtract(t.toBigInteger()).mod(this.q))},Ge.prototype.multiply=function(t){return new Ge(this.q,this.x.multiply(t.toBigInteger()).mod(this.q))},Ge.prototype.square=function(){return new Ge(this.q,this.x.square().mod(this.q))},Ge.prototype.divide=function(t){return new Ge(this.q,this.x.multiply(t.toBigInteger().modInverse(this.q)).mod(this.q))},Ke.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)},Ke.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)},Ke.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(ye.BigInteger.ZERO)&&t.x.toBigInteger().multiply(this.z).subtract(this.x.toBigInteger().multiply(t.z)).mod(this.curve.q).equals(ye.BigInteger.ZERO))},Ke.prototype.isInfinity=function(){return this.x==null&&this.y==null||this.z.equals(ye.BigInteger.ZERO)&&!this.y.toBigInteger().equals(ye.BigInteger.ZERO)},Ke.prototype.negate=function(){return new Ke(this.curve,this.x,this.y.negate(),this.z)},Ke.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(ye.BigInteger.ZERO.equals(r))return ye.BigInteger.ZERO.equals(e)?this.twice():this.curve.getInfinity();var n=new ye.BigInteger("3"),i=this.x.toBigInteger(),o=this.y.toBigInteger(),a=(t.x.toBigInteger(),t.y.toBigInteger(),r.square()),s=a.multiply(r),x=i.multiply(a),f=e.square().multiply(this.z),l=f.subtract(x.shiftLeft(1)).multiply(t.z).subtract(s).multiply(r).mod(this.curve.q),v=x.multiply(n).multiply(e).subtract(o.multiply(s)).subtract(f.multiply(e)).multiply(t.z).add(e.multiply(s)).mod(this.curve.q),d=s.multiply(this.z).multiply(t.z).mod(this.curve.q);return new Ke(this.curve,this.curve.fromBigInteger(l),this.curve.fromBigInteger(v),d)},Ke.prototype.twice=function(){if(this.isInfinity())return this;if(this.y.toBigInteger().signum()==0)return this.curve.getInfinity();var t=new ye.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(),a=e.square().multiply(t);ye.BigInteger.ZERO.equals(o)||(a=a.add(this.z.square().multiply(o)));var s=(a=a.mod(this.curve.q)).square().subtract(e.shiftLeft(3).multiply(i)).shiftLeft(1).multiply(n).mod(this.curve.q),x=a.multiply(t).multiply(e).subtract(i.shiftLeft(1)).shiftLeft(2).multiply(i).subtract(a.square().multiply(a)).mod(this.curve.q),f=n.square().multiply(n).shiftLeft(3).mod(this.curve.q);return new Ke(this.curve,this.curve.fromBigInteger(s),this.curve.fromBigInteger(x),f)},Ke.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 ye.BigInteger("3")),i=this.negate(),o=this;for(e=n.bitLength()-2;e>0;--e){o=o.twice();var a=n.testBit(e);a!=r.testBit(e)&&(o=o.add(a?this:i))}return o},Ke.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},ct.prototype.getQ=function(){return this.q},ct.prototype.getA=function(){return this.a},ct.prototype.getB=function(){return this.b},ct.prototype.equals=function(t){return t==this||this.q.equals(t.q)&&this.a.equals(t.a)&&this.b.equals(t.b)},ct.prototype.getInfinity=function(){return this.infinity},ct.prototype.fromBigInteger=function(t){return new Ge(this.q,t)},ct.prototype.reduce=function(t){this.reducer.reduce(t)},ct.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 Ke(this,this.fromBigInteger(new ye.BigInteger(r,16)),this.fromBigInteger(new ye.BigInteger(n,16)));default:return null}},ct.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 Le=function(t,e){return t<<(e%=32)|t>>>32-e},ft=function(t,e){var r=e-t.length;return(r>0?"0".repeat(r):"")+t},ex=function(t){return t<16?2043430169:2055708042},tx=function(t,e,r,n){return n<16?t^e^r:t&e|t&r|e&r},rx=function(t,e,r,n){return n<16?t^e^r:t&e|~t&r},nx=function(t,e,r){for(var n,i,o,a,s,x=function(C){var B,b=new Array(132);C.forEach(function(k,$){b[$]=k});for(var _=16;_<68;_++)b[_]=(B=b[_-16]^b[_-9]^Le(b[_-3],15))^Le(B,15)^Le(B,23)^Le(b[_-13],7)^b[_-6];for(var T=0;T<64;T++)b[T+68]=b[T]^b[T+4];return b}(e),f=t[0],l=t[1],v=t[2],d=t[3],g=t[4],y=t[5],m=t[6],A=t[7],D=0;D<64;D++)i=(n=Le(Le(f,12)+g+Le(ex(D),D),7))^Le(f,12),o=tx(f,l,v,D)+d+i+x[D+68],a=rx(g,y,m,D)+A+n+x[D],d=v,v=Le(l,9),l=f,f=o,A=m,m=Le(y,19),y=g,g=(s=a)^Le(s,9)^Le(s,17);return[f^t[0],l^t[1],v^t[2],d^t[3],g^t[4],y^t[5],m^t[6],A^t[7]]},jn=function(t,e,r){if(typeof t=="string"?t=le.Buffer.from(t,e||"utf8"):t instanceof ArrayBuffer&&(t=le.Buffer.from(t)),!le.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var n,i,o,a,s,x;n=t,i=le.Buffer.alloc(1,128),a=le.Buffer.alloc(o=(o=n.length%64)>=56?64-o%56-1:56-o-1,0),s=le.Buffer.alloc(8),x=8*n.length,s.writeUInt32BE(Math.floor(x/Math.pow(2,32)),0),s.writeUInt32BE(x%Math.pow(2,32),4);for(var f=(t=le.Buffer.concat([n,i,a,s],n.length+1+o+8)).length/64,l=new Array(f),v=0;v<f;v++){l[v]=new Array(16);for(var d=0;d<16;d++)l[v][d]=t.readUInt32BE(64*v+4*d)}var g=new Array(f);g[0]=[1937774191,1226093241,388252375,3666478592,2842636476,372324522,3817729613,2969243214];for(var y=0;y<f;y++)g[y+1]=nx(g[y],l[y]);var m=le.Buffer.alloc(32);return g[f].forEach(function(A,D){return m.writeInt32BE(A,4*D)}),r?m.toString(r):cr(m)},Go=new ye.SecureRandom,fi=function(){var t=new ct(new ye.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFF",16),new ye.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF00000000FFFFFFFFFFFFFFFC",16),new ye.BigInteger("28E9FA9E9D9F5E344D5A9E4BCF6509A7F39789F515AB8F92DDBCBD414D940E93",16)),e=t.decodePointHex("0432C4AE2C1F1981195F9904466A39C9948FE30BBFF2660BE1715A4589334C74C7BC3736A2F4F6779C59BDCEE36B692153D0A9877CC62A474002DF32E52139F0A0");return{curve:t,G:e,n:new ye.BigInteger("FFFFFFFEFFFFFFFFFFFFFFFFFFFFFFFF7203DF6B21C6052B53BBF40939D54123",16)}}(),Ko=fi.curve,Vo=fi.G,Rr=fi.n;function jo(t,e){for(var r=[],n=Math.ceil(e/32),i=e%32,o=1;o<=n;o++){var a=le.Buffer.allocUnsafe(4);a.writeUInt32BE(o);var s=jn(le.Buffer.concat([t,a]));r.push(o===n&&i?le.Buffer.from(s).slice(0,i):le.Buffer.from(s))}return le.Buffer.concat(r,e)}var ix={__proto__:null,constants:{C1C2C3:0,C1C3C2:1,PC:"04"},generateKeyPair:function(){var t=new ye.BigInteger(Rr.bitLength(),Go).mod(Rr.subtract(new ye.BigInteger("2"))).add(ye.BigInteger.ONE),e=ft(t.toString(16),64),r=Vo.multiply(t);return{privateKey:e,publicKey:"04"+ft(r.getX().toBigInteger().toString(16),64)+ft(r.getY().toBigInteger().toString(16),64)}},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,a=n.outputEncoding,s=n.pc;if(typeof t=="string"?t=le.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=le.Buffer.from(t)),!le.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var x=new ye.BigInteger(Rr.bitLength(),Go).mod(Rr.subtract(ye.BigInteger.ONE)).add(ye.BigInteger.ONE),f=Vo.multiply(x),l=ft(f.getX().toBigInteger().toString(16),64)+ft(f.getY().toBigInteger().toString(16),64),v=Ko.decodePointHex(e).multiply(x),d=ft(v.getX().toBigInteger().toString(16),64),g=ft(v.getY().toBigInteger().toString(16),64),y=jo(le.Buffer.from(d+g,"hex"),t.length),m=ft(new ye.BigInteger(t.toString("hex"),16).xor(new ye.BigInteger(y.toString("hex"),16)).toString(16),2*t.length),A=jn(d+t.toString("hex")+g,"hex","hex"),D=le.Buffer.from((s?"04":"")+(o===0?l+m+A:l+A+m),"hex");return a?D.toString(a):cr(D)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=i===void 0?1:i,a=n.outputEncoding,s=n.pc;if(typeof t=="string"?t=le.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=le.Buffer.from(t)),!le.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');var x=(t=s?t.slice(1):t).slice(0,32).toString("hex"),f=t.slice(32,64).toString("hex"),l=Ko.decodePointHex("04"+x+f).multiply(new ye.BigInteger(e,16)),v=ft(l.getX().toBigInteger().toString(16),64),d=ft(l.getY().toBigInteger().toString(16),64),g=t.slice(64,96),y=t.slice(96);o===0&&(g=t.slice(t.length-32),y=t.slice(64,t.length-32));var m=jo(le.Buffer.from(v+d,"hex"),y.length),A=new ye.BigInteger(y.toString("hex"),16).xor(new ye.BigInteger(m.toString("hex"),16)).toString(16),D=jn(v+A+d,"hex","hex")===g.toString("hex")?le.Buffer.from(A,"hex"):le.Buffer.alloc(0);return a?D.toString(a):cr(D)}},Or=[[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]],kr=[2746333894,1453994832,1736282519,2993693404],ox=[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],Pr=/^[0-9a-f]{32}$/i,ms=function(t){return Or[(4026531840&t)>>>28][(251658240&t)>>>24]<<24|Or[(15728640&t)>>>20][(983040&t)>>>16]<<16|Or[(61440&t)>>>12][(3840&t)>>>8]<<8|Or[(240&t)>>>4][(15&t)>>>0]<<0},gs=function(t){return(e=ms(t))^Le(e,2)^Le(e,10)^Le(e,18)^Le(e,24);var e},As=function(t){var e,r=new Array(36);r[0]=t[0]^kr[0],r[1]=t[1]^kr[1],r[2]=t[2]^kr[2],r[3]=t[3]^kr[3];for(var n=new Array(32),i=0;i<32;i++)r[i+4]=r[i]^(e=ms(r[i+1]^r[i+2]^r[i+3]^ox[i]))^Le(e,13)^Le(e,23),n[i]=r[i+4];return n},Xo=function(t,e){for(var r=As(e),n=0;n<32;n++)t[n+4]=t[n]^gs(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},Yo=function(t,e){for(var r=As(e).reverse(),n=0;n<32;n++)t[n+4]=t[n]^gs(t[n+1]^t[n+2]^t[n+3]^r[n]);return[t[35],t[34],t[33],t[32]]},Mr=function(t){return[t.readInt32BE(0),t.readInt32BE(4),t.readInt32BE(8),t.readInt32BE(12)]},Lr=function(t){for(var e=le.Buffer.alloc(16),r=0;r<4;r++)e.writeInt32BE(t[r],4*r);return e},jt={__proto__:null,constants:{ECB:1,CBC:2},encrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,a=n.outputEncoding;if(typeof t=="string"?t=le.Buffer.from(t,n.inputEncoding||"utf8"):t instanceof ArrayBuffer&&(t=le.Buffer.from(t)),!le.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!Pr.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=le.Buffer.from(e,"hex"),i===2&&!Pr.test(o))throw new TypeError("Invalid value of `iv` option");return function(s,x,f,l){f&&(f=Mr(f)),x=Mr(x);for(var v=[],d=(s=function(_){var T=16-_.length%16,k=le.Buffer.alloc(T,T);return le.Buffer.concat([_,k],_.length+T)}(s)).length/16,g=0;g<d;g++)if(f){var y=16*g,m=[f[0]^s.readInt32BE(y),f[1]^s.readInt32BE(y+4),f[2]^s.readInt32BE(y+8),f[3]^s.readInt32BE(y+12)],A=Xo(m,x);v.push(Lr(A)),f=A.slice(0)}else{var D=16*g,C=[s.readInt32BE(D),s.readInt32BE(D+4),s.readInt32BE(D+8),s.readInt32BE(D+12)],B=Xo(C,x);v.push(Lr(B))}var b=le.Buffer.concat(v,s.length);return l?b.toString(l):cr(b)}(t,e,o=i===2?le.Buffer.from(o,"hex"):null,a)},decrypt:function(t,e,r){var n=r||{},i=n.mode,o=n.iv,a=n.outputEncoding;if(typeof t=="string"?t=le.Buffer.from(t,n.inputEncoding):t instanceof ArrayBuffer&&(t=le.Buffer.from(t)),!le.Buffer.isBuffer(t))throw new TypeError('Expected "string" | "Buffer" | "ArrayBuffer" but received "'+Object.prototype.toString.call(t)+'"');if(!Pr.test(e))throw new TypeError("Invalid value of cipher `key`");if(e=le.Buffer.from(e,"hex"),i===2&&!Pr.test(o))throw new TypeError("Invalid value of `iv` option");return function(s,x,f,l){f&&(f=Mr(f)),x=Mr(x);var v=[],d=s.length/16;if(f)for(var g=d-1;g>=0;g--){var y,m=16*g;y=g>0?[s.readInt32BE(m-16),s.readInt32BE(m-16+4),s.readInt32BE(m-16+8),s.readInt32BE(m-16+12)]:f;var A=[s.readInt32BE(m),s.readInt32BE(m+4),s.readInt32BE(m+8),s.readInt32BE(m+12)],D=Yo(A,x);v.unshift(Lr([D[0]^y[0],D[1]^y[1],D[2]^y[2],D[3]^y[3]]))}else for(var C=0;C<d;C++){var B=16*C,b=[s.readInt32BE(B),s.readInt32BE(B+4),s.readInt32BE(B+8),s.readInt32BE(B+12)],_=Yo(b,x);v.push(Lr(_))}var T=le.Buffer.concat(v,s.length-v[v.length-1][15]);return l?T.toString(l):cr(T)}(t,e,o=i===2?le.Buffer.from(o,"hex"):null,a)}};(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 ax(){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,a,s,x;for(o=r.length,i=0,n="";i<o;){if(a=r.charCodeAt(i++)&255,i==o){n+=t.charAt(a>>2),n+=t.charAt((a&3)<<4),n+="==";break}if(s=r.charCodeAt(i++),i==o){n+=t.charAt(a>>2),n+=t.charAt((a&3)<<4|(s&240)>>4),n+=t.charAt((s&15)<<2),n+="=";break}x=r.charCodeAt(i++),n+=t.charAt(a>>2),n+=t.charAt((a&3)<<4|(s&240)>>4),n+=t.charAt((s&15)<<2|(x&192)>>6),n+=t.charAt(x&63)}return n},this.decode=function(r){var n,i,o,a,s,x,f;for(x=r.length,s=0,f="";s<x;){do n=e[r.charCodeAt(s++)&255];while(s<x&&n==-1);if(n==-1)break;do i=e[r.charCodeAt(s++)&255];while(s<x&&i==-1);if(i==-1)break;f+=String.fromCharCode(n<<2|(i&48)>>4);do{if(o=r.charCodeAt(s++)&255,o==61)return f;o=e[o]}while(s<x&&o==-1);if(o==-1)break;f+=String.fromCharCode((i&15)<<4|(o&60)>>2);do{if(a=r.charCodeAt(s++)&255,a==61)return f;a=e[a]}while(s<x&&a==-1);if(a==-1)break;f+=String.fromCharCode((o&3)<<6|a)}return f},this.utf16to8=function(r){var n,i,o,a;for(n="",o=r.length,i=0;i<o;i++)a=r.charCodeAt(i),a>=1&&a<=127?n+=r.charAt(i):a>2047?(n+=String.fromCharCode(224|a>>12&15),n+=String.fromCharCode(128|a>>6&63),n+=String.fromCharCode(128|a>>0&63)):(n+=String.fromCharCode(192|a>>6&31),n+=String.fromCharCode(128|a>>0&63));return n},this.utf8to16=function(r){var n,i,o,a,s,x;for(n="",o=r.length,i=0;i<o;)switch(a=r.charCodeAt(i++),a>>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:s=r.charCodeAt(i++),n+=String.fromCharCode((a&31)<<6|s&63);break;case 14:s=r.charCodeAt(i++),x=r.charCodeAt(i++),n+=String.fromCharCode((a&15)<<12|(s&63)<<6|(x&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
|
|
28
|
+
`:", ";return n}}function sx(){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 fx(t){if(this.connect=!1,this.ready_func_=null,this.callbacks_=new sx,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 a=JSON.stringify(o);this.connect&&this.ws.send(a)},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},a){this.exec("Arm_WriteFile",[parseInt(e),n,parseInt(r),parseInt(i),o],a)},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},a){this.exec("Arm_ChangePIN",[parseInt(e),o,n,r,parseInt(i)],a)},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},a){this.exec("Arm_RsaPri",[parseInt(e),parseInt(i),parseInt(o),r,n],a)},this.Arm_RsaPub=function({Handle:e,RsaPubKey:r,RsaPub_Flag:n,RsaPubInData:i,RsaPubFileSize:o},a){this.exec("Arm_RsaPub",[parseInt(e),parseInt(o),n,r,r.length,i],a)},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:a,UserPin:s,UserTryCount:x,UpdateRSAPriKey:f},l){this.exec("Arm_GenMotherKey",[parseInt(e),parseInt(r),n,s,parseInt(x),parseInt(a),f,parseInt(o),parseInt(i)],l)},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:a,DataLen:s,DataBuffer:x,UpRSAPubKey:f},l){this.exec("Arm_MakeUpdatePacket",[parseInt(e),r,n,o,parseInt(i),parseInt(a),x,f,parseInt(s)],l)},this.Arm_MakeUpdatePacketFromMother=function({Handle:e,HID:r,Func:n,FileID:i,FileType:o,Offset:a,DataLen:s,DataBuffer:x},f){this.exec("Arm_MakeUpdatePacketFromMother",[parseInt(e),r,n,o,parseInt(i),parseInt(a),x,parseInt(s)],f)},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:a},s){this.exec("Arm_Set_PRIKEY_FILE_ATTR",[n,parseInt(r),parseInt(e),parseInt(i),parseInt(a),parseInt(o)],s)},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},a){this.exec("Arm_Set_EXE_FILE_INFO",[i,parseInt(n),parseInt(e),parseInt(o),r,r.length],a)},this.Arm_Clear_EXE_FILE_INFO=function({InBuffer:e},r){this.exec("Arm_Clear_EXE_FILE_INFO",[e],r)}}const cx={HID:0},Ur={PRODUCT_ID:0,USER_ID:1,HARDWARE_ID:2},Zo={USER:0};class Es{constructor(){gt(this,"Base64",new ax);gt(this,"AtlCtrl",null);gt(this,"ArmCount",0);gt(this,"ArmIndex",0);gt(this,"ArmHandle",0);gt(this,"ArmRandom","");try{this.AtlCtrl=new fx("{39E9B272-82A7-4177-A19D-6723C1BDB0CC}")}catch(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=Zo.USER,o=this.ArmHandle){if(this.AtlCtrl)return new Promise((a,s)=>{this.AtlCtrl.Arm_ChangePIN({Handle:o,NewPIN:e,OldPIN:r,TryCount:n,PinFlag:i},(x,f)=>{x&&f==0?(this.ArmPin=e,a(f)):s(f)})})}armGenRandom(e=16,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_GenRandom({Handle:r,RandomLen:e},(o,a)=>{o?(this.ArmRandom=a,n(a)):i(a)})})}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,a)=>{o?(this.ArmUKey=a,n(a)):i(a)})})}armGetDongleInfo(e=0,r=Ur.HARDWARE_ID){if(this.AtlCtrl)return this.ArmIndex=e,new Promise((n,i)=>{this.AtlCtrl.Arm_GetDongleInfo({Index:e,DongleInfoNum:r},(o,a)=>{if(o){switch(r){case Ur.USER_ID:this.ArmUid=a;break;case Ur.PRODUCT_ID:this.ArmPid=a;break;case Ur.HARDWARE_ID:this.ArmHid=a;break}n(a)}else i(a)})})}armLEDControl(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_LEDControl({Handle:r,LedFlag:e},(o,a)=>{o&&a==0?n(a):i(a)})})}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,a)=>{if(o&&a.length>0)try{a=this.Base64.decode(a),n(a)}catch(s){n(a)}else i(a)})})}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,a)=>{o&&a==0?n(a):i(a)})})}armSetUserID(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetUserID({Handle:r,UserID:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armSetDeadline(e,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SetDeadline({Handle:r,SetDeadTime:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armSwitchProtocol(e=cx.HID,r=this.ArmHandle){if(this.AtlCtrl)return new Promise((n,i)=>{this.AtlCtrl.Arm_SwitchProtocol({Handle:r,ProtocolFlag:e},(o,a)=>{o&&a==0?n(a):i(a)})})}armVerifyPIN(e,r=Zo.USER,n=this.ArmHandle){if(this.AtlCtrl)return new Promise((i,o)=>{this.AtlCtrl.Arm_VerifyPIN({Handle:n,UserPin:e,UserType:r},(a,s)=>{a&&s==0?(this.ArmPin=e,i(s)):o(s)})})}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},(a,s)=>{a?(this.ArmData=s,i(s)):o(s)})})}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},(a,s)=>{a&&s==0?i(s):o(s)})})}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,a)=>{o&&a==0?n(a):i(a)})})}}const Bs="0123456789abcdeffedcba9876543210",ws="4b0de988570c3a0f",ux=window.ENCRYPT;let Gt=ux&&new Es;function Cs(t=16,e="0123456789abcdefghijklmnopqrstuvwxyz"){let r="",n=e.length;for(;t>0;)r+=e[Math.floor(Math.random()*n)],t--;return r}function bs(){return We(this,null,function*(){return Gt||(Gt=new Es),new Promise((t,e)=>{Gt.armEnum().then(r=>{t(+r)}).catch(r=>{Ze.ElMessage({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e(r)})})})}df.throttle(()=>We(exports,null,function*(){const t=yield bs(),e={};if(typeof t!="number"||t<=0)Ze.ElMessage({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken();else{const r=yield hx();if(!e.token)return;r.length?r.includes(e.ukeyHid)||(Ze.ElMessage({type:"error",ElMessage:"U盘锁不匹配,请检查U盘锁!"}),e.resetToken()):(Ze.ElMessage({type:"warning",ElMessage:"未找到U盘锁,请检查U盘锁!"}),e.resetToken())}}),5e3,{trailing:!1});function lx(t=0){return We(this,null,function*(){return Gt?new Promise((e,r)=>{Gt.armGetDongleInfo(t).then(n=>{n?e(n):(Ze.ElMessage({type:"warning",ElMessage:"U盘锁信息为空,请检查U盘锁!"}),r(n))}).catch(n=>{r(n)})}):Ze.ElMessage({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"})})}function hx(){return We(this,null,function*(){if(!Gt)return Ze.ElMessage({type:"warning",ElMessage:"未找到U盘锁程序,请检查后台程序!"});const t=yield bs();let e=[];for(let r=0;r<t;r++){const n=yield lx(r);e.push(n)}return e})}Cs(16);Cs(16);const Fs=window.INSPECT?jt.constants.CBC:jt.constants.ECB;ix.generateKeyPair();function Qo(t,e,r={}){const n=Ds(ws),i=r.mode||Fs;r=i===jt.constants.ECB?te({mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r):te({iv:Bs,mode:i,inputEncoding:"utf8",outputEncoding:"hex"},r);let o="";try{o=jt.encrypt(t,n,r)}catch(a){console.log("err: ",a)}return o}function Jo(t,e,r={}){const n=Ds(ws),i=r.mode||Fs;return r=i===jt.constants.ECB?te({mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r):te({iv:Bs,mode:i,inputEncoding:"hex",outputEncoding:"utf8"},r),jt.decrypt(t,n,r)}function Ds(t){return[...t].map(e=>e.charCodeAt().toString(16)).join("")}const ea={getLocal:t=>{try{let e=window.localStorage.getItem(t);return e=e!==null?Jo(e):e,JSON.parse(e)}catch(e){console.error(e)}},setLocal:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?Qo(r):r,window.localStorage.setItem(t,r)}catch(r){console.error(r)}},eachLocal:t=>{if(!t||fo(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?Jo(e):e,JSON.parse(e)}catch(e){console.error(e)}},setSession:(t,e)=>{try{let r=JSON.stringify(e);r=r!==null?Qo(r):r,window.sessionStorage.setItem(t,r)}catch(r){console.error(r)}},eachSession:t=>{if(!t||fo(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)}},ta=t=>{const{quality:e,value:r,function_id:n}=t;return(e>>7&1)===1||e===0&&n===2&&r===1},ra="USER_TOKEN",na="STATION_ID";var _s={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(ce,function(){var r=1e3,n=6e4,i=36e5,o="millisecond",a="second",s="minute",x="hour",f="day",l="week",v="month",d="quarter",g="year",y="date",m="Invalid Date",A=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,D=/\[([^\]]+)]|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,C={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(N){var M=["th","st","nd","rd"],H=N%100;return"["+N+(M[(H-20)%10]||M[H]||M[0])+"]"}},B=function(N,M,H){var Y=String(N);return!Y||Y.length>=M?N:""+Array(M+1-Y.length).join(H)+N},b={s:B,z:function(N){var M=-N.utcOffset(),H=Math.abs(M),Y=Math.floor(H/60),W=H%60;return(M<=0?"+":"-")+B(Y,2,"0")+":"+B(W,2,"0")},m:function N(M,H){if(M.date()<H.date())return-N(H,M);var Y=12*(H.year()-M.year())+(H.month()-M.month()),W=M.clone().add(Y,v),ee=H-W<0,J=M.clone().add(Y+(ee?-1:1),v);return+(-(Y+(H-W)/(ee?W-J:J-W))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:v,y:g,w:l,d:f,D:y,h:x,m:s,s:a,ms:o,Q:d}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},_="en",T={};T[_]=C;var k="$isDayjsObject",$=function(N){return N instanceof G||!(!N||!N[k])},X=function N(M,H,Y){var W;if(!M)return _;if(typeof M=="string"){var ee=M.toLowerCase();T[ee]&&(W=ee),H&&(T[ee]=H,W=ee);var J=M.split("-");if(!W&&J.length>1)return N(J[0])}else{var O=M.name;T[O]=M,W=O}return!Y&&W&&(_=W),W||!Y&&_},I=function(N,M){if($(N))return N.clone();var H=typeof M=="object"?M:{};return H.date=N,H.args=arguments,new G(H)},P=b;P.l=X,P.i=$,P.w=function(N,M){return I(N,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var G=function(){function N(H){this.$L=X(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[k]=!0}var M=N.prototype;return M.parse=function(H){this.$d=function(Y){var W=Y.date,ee=Y.utc;if(W===null)return new Date(NaN);if(P.u(W))return new Date;if(W instanceof Date)return new Date(W);if(typeof W=="string"&&!/Z$/i.test(W)){var J=W.match(A);if(J){var O=J[2]-1||0,U=(J[7]||"0").substring(0,3);return ee?new Date(Date.UTC(J[1],O,J[3]||1,J[4]||0,J[5]||0,J[6]||0,U)):new Date(J[1],O,J[3]||1,J[4]||0,J[5]||0,J[6]||0,U)}}return new Date(W)}(H),this.init()},M.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},M.$utils=function(){return P},M.isValid=function(){return this.$d.toString()!==m},M.isSame=function(H,Y){var W=I(H);return this.startOf(Y)<=W&&W<=this.endOf(Y)},M.isAfter=function(H,Y){return I(H)<this.startOf(Y)},M.isBefore=function(H,Y){return this.endOf(Y)<I(H)},M.$g=function(H,Y,W){return P.u(H)?this[Y]:this.set(W,H)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(H,Y){var W=this,ee=!!P.u(Y)||Y,J=P.p(H),O=function(be,Be){var He=P.w(W.$u?Date.UTC(W.$y,Be,be):new Date(W.$y,Be,be),W);return ee?He:He.endOf(f)},U=function(be,Be){return P.w(W.toDate()[be].apply(W.toDate("s"),(ee?[0,0,0,0]:[23,59,59,999]).slice(Be)),W)},K=this.$W,z=this.$M,oe=this.$D,se="set"+(this.$u?"UTC":"");switch(J){case g:return ee?O(1,0):O(31,11);case v:return ee?O(1,z):O(0,z+1);case l:var Ae=this.$locale().weekStart||0,ae=(K<Ae?K+7:K)-Ae;return O(ee?oe-ae:oe+(6-ae),z);case f:case y:return U(se+"Hours",0);case x:return U(se+"Minutes",1);case s:return U(se+"Seconds",2);case a:return U(se+"Milliseconds",3);default:return this.clone()}},M.endOf=function(H){return this.startOf(H,!1)},M.$set=function(H,Y){var W,ee=P.p(H),J="set"+(this.$u?"UTC":""),O=(W={},W[f]=J+"Date",W[y]=J+"Date",W[v]=J+"Month",W[g]=J+"FullYear",W[x]=J+"Hours",W[s]=J+"Minutes",W[a]=J+"Seconds",W[o]=J+"Milliseconds",W)[ee],U=ee===f?this.$D+(Y-this.$W):Y;if(ee===v||ee===g){var K=this.clone().set(y,1);K.$d[O](U),K.init(),this.$d=K.set(y,Math.min(this.$D,K.daysInMonth())).$d}else O&&this.$d[O](U);return this.init(),this},M.set=function(H,Y){return this.clone().$set(H,Y)},M.get=function(H){return this[P.p(H)]()},M.add=function(H,Y){var W,ee=this;H=Number(H);var J=P.p(Y),O=function(z){var oe=I(ee);return P.w(oe.date(oe.date()+Math.round(z*H)),ee)};if(J===v)return this.set(v,this.$M+H);if(J===g)return this.set(g,this.$y+H);if(J===f)return O(1);if(J===l)return O(7);var U=(W={},W[s]=n,W[x]=i,W[a]=r,W)[J]||1,K=this.$d.getTime()+H*U;return P.w(K,this)},M.subtract=function(H,Y){return this.add(-1*H,Y)},M.format=function(H){var Y=this,W=this.$locale();if(!this.isValid())return W.invalidDate||m;var ee=H||"YYYY-MM-DDTHH:mm:ssZ",J=P.z(this),O=this.$H,U=this.$m,K=this.$M,z=W.weekdays,oe=W.months,se=W.meridiem,Ae=function(Be,He,Oe,me){return Be&&(Be[He]||Be(Y,ee))||Oe[He].slice(0,me)},ae=function(Be){return P.s(O%12||12,Be,"0")},be=se||function(Be,He,Oe){var me=Be<12?"AM":"PM";return Oe?me.toLowerCase():me};return ee.replace(D,function(Be,He){return He||function(Oe){switch(Oe){case"YY":return String(Y.$y).slice(-2);case"YYYY":return P.s(Y.$y,4,"0");case"M":return K+1;case"MM":return P.s(K+1,2,"0");case"MMM":return Ae(W.monthsShort,K,oe,3);case"MMMM":return Ae(oe,K);case"D":return Y.$D;case"DD":return P.s(Y.$D,2,"0");case"d":return String(Y.$W);case"dd":return Ae(W.weekdaysMin,Y.$W,z,2);case"ddd":return Ae(W.weekdaysShort,Y.$W,z,3);case"dddd":return z[Y.$W];case"H":return String(O);case"HH":return P.s(O,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return be(O,U,!0);case"A":return be(O,U,!1);case"m":return String(U);case"mm":return P.s(U,2,"0");case"s":return String(Y.$s);case"ss":return P.s(Y.$s,2,"0");case"SSS":return P.s(Y.$ms,3,"0");case"Z":return J}return null}(Be)||J.replace(":","")})},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(H,Y,W){var ee,J=this,O=P.p(Y),U=I(H),K=(U.utcOffset()-this.utcOffset())*n,z=this-U,oe=function(){return P.m(J,U)};switch(O){case g:ee=oe()/12;break;case v:ee=oe();break;case d:ee=oe()/3;break;case l:ee=(z-K)/6048e5;break;case f:ee=(z-K)/864e5;break;case x:ee=z/i;break;case s:ee=z/n;break;case a:ee=z/r;break;default:ee=z}return W?ee:P.a(ee)},M.daysInMonth=function(){return this.endOf(v).$D},M.$locale=function(){return T[this.$L]},M.locale=function(H,Y){if(!H)return this.$L;var W=this.clone(),ee=X(H,Y,!0);return ee&&(W.$L=ee),W},M.clone=function(){return P.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},N}(),S=G.prototype;return I.prototype=S,[["$ms",o],["$s",a],["$m",s],["$H",x],["$W",f],["$M",v],["$y",g],["$D",y]].forEach(function(N){S[N[1]]=function(M){return this.$g(M,N[0],N[1])}}),I.extend=function(N,M){return N.$i||(N(M,G,I),N.$i=!0),I},I.locale=X,I.isDayjs=$,I.unix=function(N){return I(1e3*N)},I.en=T[_],I.Ls=T,I.p={},I})})(_s);var xx=_s.exports;const dx=Xn(xx),px=[{key:0,value:"离线"},{key:1,value:"在线"}],vx=[{key:0,value:"反向"},{key:1,value:"正向"},{key:2,value:"停止"}],yx=[{key:1,value:1},{key:2,value:2},{key:3,value:3},{key:4,value:4},{key:5,value:5}],mx="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='1747379227336'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23558'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='64'%20height='64'%3e%3cpath%20d='M687.543%20658.286c-21.943-10.972-47.543-10.972-65.829%200C599.771%20669.257%20588.8%20691.2%20588.8%20716.8s10.971%2043.886%2032.914%2058.514c21.943%2010.972%2047.543%2010.972%2065.829%200%2021.943-10.971%2032.914-32.914%2032.914-58.514s-14.628-43.886-32.914-58.514zM10.97%20694.857c-10.971%2021.943-14.628%2036.572%200%2051.2L91.43%20833.83c14.628%2014.628%2032.914%2010.971%2051.2%200l47.542-21.943-153.6-164.572-25.6%2047.543zM936.23%20526.63V650.97H724.114c29.257%2032.915%2032.915%2076.8%2014.629%20113.372h197.486V921.6H1024V526.629h-87.771z%20m-402.286%203.657l212.114-201.143c7.314-7.314%2010.972-14.629%2010.972-25.6%200-10.972-3.658-18.286-10.972-25.6L588.8%20113.37c-7.314-7.314-14.629-10.971-25.6-10.971-10.971%200-18.286%203.657-25.6%2010.971l-482.743%20460.8c-7.314%207.315-10.971%2014.629-10.971%2025.6%200%2010.972%203.657%2018.286%2010.971%2025.6l157.257%20164.572c7.315%207.314%2014.629%2010.971%2025.6%2010.971%2010.972%200%2018.286-3.657%2025.6-10.971l219.429-208.457%2080.457%2098.743c10.971-21.943%2029.257-40.229%2051.2-51.2l-80.457-98.743z'%20p-id='23559'%20fill='%23999999'%3e%3c/path%3e%3c/svg%3e",gx="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='1747379205045'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='23361'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='64'%20height='64'%3e%3cpath%20d='M808.19035614-5.81530905v72.49414403h144.98828683v147.05954724h74.56540444V-5.81530905zM77.03514075%2066.67883498h147.05954724V-5.81530905H4.54099794v219.55369127H77.03514075zM953.17864297%20942.82233719h-144.98828683v74.56540445h219.55369127V797.83405037h-74.56540444zM77.03514075%20797.83405037H4.54099794v219.55369127h219.55369005v-74.56540445H77.03514075zM866.18567111%20526.49882905v-6.21378371c2.07126164-20.71261275-14.49882905-39.35396386-35.21144058-41.4252255h-120.13315201c-8.28504534%200-14.49882905%202.07126164-20.71261275%206.21378371l-28.99765688-91.13549392c-6.2137837-14.49882905-18.64135111-24.85513482-35.21144058-28.99765688-16.57008947%202.07126164-28.99765689%2014.49882905-35.2114418%2028.99765688l-49.71026962%20155.34459259-35.21144059-275.4777446c0-14.49882905-14.49882905-28.99765689-35.21144059-35.21144059-20.71261275%200-35.21144059%206.2137837-35.21144179%2028.99765689l-70.42288117%20219.55369126-6.2137837-49.71026963c-8.28504534-12.42756741-20.71261275-22.78387317-35.2114418-28.99765687-14.49882905%200-28.99765689%208.28504534-35.21144058%2020.71261154l-35.21144059%2049.71026962h-84.92171142c-20.71261275%202.07126164-37.28270222%2014.49882905-43.49648593%2035.2114418%204.14252206%2020.71261275%2020.71261275%2037.28270222%2043.49648593%2041.42522428h105.63432296c10.35630577%200%2020.71261275-6.2137837%2028.99765809-14.49882903l28.99765688%2091.13549512c6.2137837%2016.57008947%2018.64135111%2026.92639645%2035.21144058%2031.06891852%2016.57008947-2.07126164%2028.99765689-14.49882905%2035.21144181-28.99765809l55.92405333-176.05720413%2035.21144058%20289.97657244c0%2014.49882905%2014.49882905%2028.99765689%2035.21144058%2035.21144057%2016.57008947-2.07126164%2028.99765689-14.49882905%2035.2114418-28.99765687l55.92405334-211.26864593%2020.71261153%2055.92405333c6.2137837%2014.49882905%2018.64135111%2024.85513482%2035.2114418%2028.99765688%2014.49882905%200%2028.99765689-8.28504534%2035.21144058-20.71261154l20.71261275-49.71026963h99.42053926c18.64135111%200%2033.14018016-14.49882905%2035.21144058-31.06891851z'%20p-id='23362'%20fill='%23999999'%3e%3c/path%3e%3c/svg%3e";var ua,la;const At=(la=(ua=window.meta)==null?void 0:ua.graph)!=null&&la.penFormMap?window.meta.graph.penFormMap:{NORMAL:[{name:"颜色",key:"color",type:"color",dataIds:{}}],TEXT:[{name:"显示内容",key:"text",type:"text",dataIds:{}}],AUDIO:[{name:"颜色",key:"color",type:"color",dataIds:{}}],MP4:[{name:"颜色",key:"color",type:"color",dataIds:{}}],CAMERA:[{name:"颜色",key:"color",type:"color",dataIds:{}}],VIDEO_STREAM:[{name:"颜色",key:"color",type:"color",dataIds:{}}],POINT_VALUE:[{name:"在线状态",key:"online_state",type:"select",dataIds:{},options:[{label:"在线",value:1},{label:"离线",value:0}]},{name:"测点值",key:"point_value",type:"text",dataIds:{}}],LIGHT_PLATE:[{name:"光字牌",key:"light_plate",type:"select",dataIds:{},options:[{label:"离线",value:-1},{label:"正常",value:0},{label:"预警",value:1},{label:"一般",value:2},{label:"严重",value:3},{label:"危急",value:4}]}]};var ha,xa;const Ss=(xa=(ha=window.meta)==null?void 0:ha.graph)!=null&&xa.lightPlateColorMap?window.meta.graph.lightPlateColorMap:{0:"#00d200",1:"#e2ac06",2:"#fa800a",3:"#f04155",4:"#ff0000"};var da,pa;const Ts=(pa=(da=window.meta)==null?void 0:da.graph)!=null&&pa.lightPlateTextMap?window.meta.graph.lightPlateTextMap:{0:"#fff",1:"#fff",2:"#fff",3:"#fff",4:"#fff"},Me={form:[{name:"带电状态",key:"charged_state",type:"select",dataIds:{},options:px.map(t=>({label:t.value,value:t.key}))},{name:"潮流方向",key:"electric_direction",type:"select",dataIds:{},options:vx.map(t=>({label:t.value,value:t.key}))},{name:"电荷大小",key:"electric_size",type:"select",dataIds:{},options:yx.map(t=>({label:t.value,value:t.key}))}],anchors:[{x:0,y:.5,id:"0"},{x:.5,y:0,id:"1"},{x:1,y:.5,id:"2"},{x:.5,y:1,id:"3"}],dataType:window.dataType,dataProp:window.dataProp,visibleLevel:window.visibleLevel},ie=Te(te({penType:Ee.NORMAL},Me),{form:[...At[Ee.NORMAL],...Me.form]});Ee.POINT_VALUE,Me.anchors,window.visibleLevel,[...At[Ee.POINT_VALUE],...Me.form],Me.form,window.dataType,window.dataProp,window.visibleLevel,Me.form,window.dataType,window.dataProp,window.visibleLevel,Ts[0],Ee.LIGHT_PLATE,Ss[0],Me.anchors,window.visibleLevel,[...At[Ee.LIGHT_PLATE],...Me.form],Te(te({width:100,height:30,name:"text",text:"文本",disableAnchor:!0,penType:Ee.TEXT},Me),{form:[...At[Ee.TEXT],...Me.form]}),te({width:100,height:100,name:"square"},ie),Te(te({type:1,name:"line",width:100,height:5,lineWidth:2,lineName:"line",penName:"line",background:"#FFF000",color:"#FFF000"},ie),{lineAnimateType:1,anchors:[{x:0,y:.5,id:"0"},{x:1,y:.5,id:"1"}]}),te({width:200,height:50,borderRadius:0,name:"rectangle"},ie),te({width:100,height:100,name:"circle"},ie),te({width:100,height:100,name:"triangle"},ie),te({width:100,height:100,name:"diamond"},ie),te({width:100,height:100,name:"pentagon"},ie),te({width:100,height:100,name:"hexagon"},ie),te({width:100,height:100,name:"pentagram"},ie),te({width:120,height:60,name:"leftArrow"},ie),te({width:120,height:60,name:"rightArrow"},ie),te({width:150,height:60,name:"twowayArrow"},ie),te({width:100,height:100,name:"cloud"},ie),te({textTop:-.1,width:100,height:100,name:"message"},ie),te({width:80,height:100,name:"file"},ie),Te(te({name:"svg",width:100,height:100,image:gx,audioId:"",penType:Ee.AUDIO},Me),{form:[...At[Ee.AUDIO],...Me.form],events:[{name:"enter",action:Ir.Emit,value:nt.CUSTOM_MSG,where:{type:""},params:JSON.stringify({action:nt.OPEN_AUDIO,data:""})},{name:"leave",action:Ir.Emit,value:nt.CUSTOM_MSG,where:{type:""},params:JSON.stringify({action:nt.CLOSE_AUDIO,data:""})}]}),Te(te({name:"svg",width:100,height:100,image:mx,cameraId:"",events:[{name:"enter",action:Ir.Emit,value:nt.CUSTOM_MSG,where:{type:""},params:JSON.stringify({action:nt.OPEN_CAMERA,data:""})},{name:"leave",action:Ir.Emit,value:nt.CUSTOM_MSG,where:{type:""},params:JSON.stringify({action:nt.CLOSE_CAMERA,data:""})}],penType:Ee.CAMERA},Me),{form:[...At[Ee.CAMERA],...Me.form]}),Te(te({name:"video",width:100,height:100,video:"https://video.699pic.com/videos/17/69/11/a_aa3jeKZ0D63g1556176911_10s.mp4",autoPlay:!0,penType:Ee.MP4},Me),{form:[...At[Ee.MP4],...Me.form]}),Te(te({name:"video",width:100,height:100,video:"https://video.699pic.com/videos/17/69/11/a_aa3jeKZ0D63g1556176911_10s.mp4",autoPlay:!0,penType:Ee.VIDEO_STREAM},Me),{form:[...At[Ee.VIDEO_STREAM],...Me.form]}),Te(te({width:60,height:100,name:"cube",z:.25},ie),{props:{custom:[{key:"z",label:"Z",type:"number",min:0,placeholder:"<= 1 即宽度的比例"},{key:"backgroundFront",label:"前背景色",type:"color"},{key:"backgroundUp",label:"顶背景色",type:"color"},{key:"backgroundRight",label:"右背景色",type:"color"}]}}),te({width:70,height:100,name:"people"},ie),Te(te({name:"table",width:80,height:30,disableAnchor:!0,colWidth:90,rowHeight:32,bordered:!0,vLine:!0,hLine:!0,stripe:!1,color:"#333",textColor:"#444"},ie),{penType:Ee.TABLE,data:[["设备 ID","设备名称","数据协议","级别"],["1","200","MQTT",{text:"一级告警",background:"#650b09",textColor:"#FF5D3CFF"}],["2","湿度传感器","MQTT",{text:"二级告警",background:"#4d2a02",textColor:"#E6A82EFF"}],["3","物联网设备","MQTT",{text:"一级告警",background:"#650b09",textColor:"#FF5D3CFF"}],["4","物联网设备/智能家居/智慧城市","MQTT",{text:"三级告警",textColor:"#58CC84FF",background:"#042617;"}]],styles:[{row:0,textColor:"#000"}]}),Te(te({name:"rectangle",penName:"按钮",width:80,height:30,borderRadius:.2,text:"按钮",background:"#1890ff",color:"#1890ff",textColor:"#fff",activeBackground:"#40a9ff",activeColor:"#40a9ff",activeTextColor:"#fff",hoverBackground:"#40a9ff",hoverColor:"#40a9ff",hoverTextColor:"#fff"},ie),{penType:Ee.BUTTON}),Te(te({name:"switch",penName:"开关",height:30,width:60,checked:!1,offColor:"#BFBFBF",onColor:"#1890ff",disableOffColor:"#E5E5E5",disableOnColor:"#A3D3FF",locked:0},ie),{penType:Ee.SWITCH}),Te(te({name:"radio",penName:"单选框",width:150,height:100,direction:"vertical",checked:"",options:[{text:"选项一"},{text:"选项二"},{text:"选项三",isForbidden:!0}]},ie),{penType:Ee.RADIO}),Te(te({name:"checkbox",penName:"多选框",width:30,height:30,checked:!0,value:"选项一"},ie),{penType:Ee.CHECKBOX}),Te(te({name:"slider",penName:"进度条",width:300,height:30,value:10,textWidth:50,barHeight:4,min:0,max:100,color:"#1890ff",background:"#D4D6D9",textColor:"#222",unit:"%"},ie),{penType:Ee.SLIDER}),Te(te({name:"rectangle",penName:"输入框",height:50,width:200,input:!0,borderRadius:.05,ellipsis:!0,text:"输入数据",textAlign:"left",color:"#D9D9D9FF",textColor:"#000000FF",hoverTextColor:"#000000FF",activeTextColor:"#000000FF",textLeft:10},ie),{penType:Ee.INPUT}),Te(te({name:"rectangle",penName:"选择器",height:50,width:200,borderRadius:.05,ellipsis:!0,text:"选项1",textAlign:"left",color:"#D9D9D9FF",textColor:"#000000FF",hoverTextColor:"#000000FF",activeTextColor:"#000000FF",textLeft:10,dropdownList:[{text:"选项1"},{text:"选项2"},{text:"选项3"}]},ie),{penType:Ee.SELECT}),Te(te({name:"time",penName:"时间",width:300,height:40,text:`${dx().format("YYYY-MM-DD HH:mm:ss")}`,lineWidth:0,interval:67,fillZero:!0},ie),{penType:Ee.TIME,form:[{key:"timeFormat",name:"显示格式",type:"text"},{key:"fillZero",name:"是否补0",type:"switch"},...ie.form],timeFormat:"`${year}-${month}-${day} ${hours}:${minutes}:${seconds} 星期${week}`"}),te({text:"开始/结束",width:120,height:40,borderRadius:.5,name:"rectangle"},ie),te({text:"流程",width:120,height:40,name:"rectangle"},ie),te({text:"判定",width:120,height:60,name:"diamond"},ie),te({text:"数据",width:120,height:50,name:"flowData",offsetX:.14},ie),te({text:"准备",width:120,height:50,name:"hexagon"},ie),te({text:"子流程",width:120,height:50,name:"flowSubprocess"},ie),te({text:"数据库",width:80,height:120,name:"flowDb"},ie),te({text:"文档",width:120,height:100,name:"flowDocument"},ie),te({text:"内部存储",width:120,height:80,name:"flowInternalStorage"},ie),te({text:"外部存储",width:120,height:80,name:"flowExternStorage"},ie),te({text:"队列",width:100,height:100,name:"flowQueue"},ie),te({text:"手动输入",width:120,height:80,name:"flowManually"},ie),te({text:"展示",width:120,height:80,name:"flowDisplay"},ie),te({text:"并行模式",width:120,height:50,name:"flowParallel"},ie),te({text:"注释",width:100,height:100,name:"flowComment"},ie),te({text:"",width:30,height:30,name:"circle",background:"#555",lineWidth:0},ie),te({width:30,height:30,name:"activityFinal"},ie),te({text:"活动",width:120,height:50,borderRadius:.25,name:"rectangle"},ie),te({text:"决策/合并",width:120,height:50,name:"diamond"},ie),te({text:"垂直泳道",width:200,height:500,name:"swimlaneV",textBaseline:"top",textTop:20,lineTop:.08},ie),te({text:"水平泳道",width:500,height:200,name:"swimlaneH",textWidth:.01,textLeft:.04,textAlign:"left",lineLeft:.08},ie),te({text:"垂直分岔/汇合",width:10,height:150,name:"forkV",fillStyle:"#555",strokeStyle:"transparent"},ie),te({text:"水平分岔/汇合",width:150,height:10,name:"forkH",fillStyle:"#555",strokeStyle:"transparent"},ie),te({name:"andGate",width:100,height:150},ie),te({name:"basicEvent",width:100,height:150},ie),te({name:"unexpandedEvent",width:100,height:150},ie),te({name:"priorityAndGate",width:100,height:150},ie),te({name:"forbiddenGate",width:100,height:150},ie),te({name:"event",width:100,height:150},ie),te({name:"switchEvent",width:100,height:150},ie),te({name:"conditionalEvent",width:150,height:100},ie),te({name:"transferSymbol",width:100,height:150},ie),te({name:"orGate",width:100,height:150},ie),te({name:"xorGate",width:100,height:150},ie),te({name:"votingGate",width:100,height:150},ie),te({text:"主题",width:200,height:50,name:"mindNode",borderRadius:.5},ie),te({text:"子主题",width:160,height:40,name:"mindLine"},ie);class Ax{constructor(e){gt(this,"editor");this.editor=e}initPlugin(e,r,n={}){e.installPenPlugins({name:r},[{plugin:pf.mindBoxPlugin,options:n},{plugin:vf.collapseChildPlugin,options:n}])}}const Ex="original_meta2d";function Bx(){return localStorage.removeItem(Ex)}let rr={};const wx=t=>{const e=document.querySelectorAll("video");let r=null;if(e.forEach(i=>{i.getAttribute("src")===t.video&&(r=i)}),!r)return;r.setAttribute("muted","muted"),r.setAttribute("autoplay","autoplay"),r.setAttribute("loop","loop"),r.setAttribute("crossorigin",""),r.setAttribute("controls",""),r.style.display="none",r.parentElement.style.border="2px solid #ffc878";const n=new JessibucaPro({container:r.parentElement,background:"",hasControl:!1,controlAutoHide:!0,checkFirstIFrame:!0,debug:!1,decoder:"./wasm/decoder-pro.js",forceNoOffscreen:!0,hotKey:!1,hasAudio:!1,hasVideo:!0,hiddenAutoPause:!1,isFlv:!0,isResize:!1,isNotMute:!0,loadingIcon:!0,loadingText:"加载中...",networkDelayTimeoutReplay:!1,playbackForwardMaxRateDecodeIFrame:8,showBandwidth:!1,showPerformance:!1,syncAudioAndVideo:!0,supportDblclickFullscreen:!1,timeout:10,useMSE:!0,useWCS:!1,useSIMD:!0,useVideoRender:!0,useCanvasRender:!1,videoBuffer:.2,videoBufferDelay:1});return t.autoPlay&&t.streamUrl&&n.play(t.streamUrl),rr[t.id]=n,n},Cx=()=>{Object.keys(rr).forEach(t=>{rr[t].destroy(),rr[t]=null}),rr={}},Is=(t,e)=>{const r=t.__vccOpts||t;for(const[n,i]of e)r[n]=i;return r},bx=Object.assign({name:"Meta2dEditor"},{__name:"index",props:{url:{type:String,default:""},data:{type:Object,default:()=>{}},local:{type:Boolean,default:!1},preview:{type:Boolean,default:!1}},emits:["loaded"],setup(t,{expose:e,emit:r}){const n=r,i=t,o=pe.ref(null),a=pe.shallowRef(),s=pe.computed(()=>!!(i.data||i.url));pe.watch(()=>[i.data,i.url],()=>{s.value&&x()});function x(){return We(this,null,function*(){try{if(yield pe.nextTick(),!o.value){console.error("未找到meta2d元素!");return}let m=null;if(i.data?m=i.data:i.url&&(m=yield y()),!m||!m.data){console.log("图纸数据为空");return}const A=m.options||{background:"#eee",disableAnchor:!1};if(a.value&&(a.value.destroy(!0),a.value=null),!o.value){console.error("Meta2D 容器元素不可用");return}a.value=new Ie.Meta2d(o.value,te({},A)),A.visibleLevel&&a.value.scale(A.visibleLevel),f(),l(),yield v(m.data),a.value.render(),d(),setTimeout(()=>{window!=null&&window.meta2dTools&&(window==null||window.registerToolsNew())},1e3),n("loaded",a.value)}catch(m){console.error("初始化编辑器失败:",m),Ze.ElMessage.error("初始化编辑器失败")}})}function f(){if(!a.value)return;new Ax({}).initPlugin(a.value,"mindNode",{})}function l(){Ie.register(mf.classPens()),Ie.register(vi.flowPens()),Ie.registerAnchors(vi.flowAnchors()),Ie.register(yi.sequencePens()),Ie.registerCanvasDraw(yi.sequencePensbyCtx()),Ie.register(mi.activityDiagram()),Ie.registerCanvasDraw(mi.activityDiagramByCtx()),Ie.registerCanvasDraw(yf.formPens()),Ie.registerCanvasDraw(gf.chartsPens()),Ie.register(F0.ftaPens()),Ie.registerAnchors(F0.ftaAnchors()),Ie.registerCanvasDraw(F0.ftaPensbyCtx())}function v(m){var A,D;if(a.value){if(typeof m.locked=="undefined"&&(m.locked=0),m.bkImage&&a.value.setBackgroundImage(m.bkImage),m.pens&&m.pens.length>0){const C=m.pens.filter(_=>_.name==="video"&&_.streamUrl);C.length>0&&setTimeout(()=>{C.forEach(_=>{wx(_)})},500);const B=((D=(A=window==null?void 0:window.meta)==null?void 0:A.graph)==null?void 0:D.penCountThreshold)||2e3;m.pens.length>B&&m.scale&&m.pens.forEach(_=>{const T=_.visibleLevel;T!==void 0?(_.visible=m.scale>=T,_.visible||(_.disabled=!0,_.locked=Ie.LockState.Disable)):(_.visible=!0,_.disabled=!1,_.locked=Ie.LockState.None)})}a.value.open(m)}}function d(){a.value&&a.value.on("scale",g)}function g(m){var A,D;try{if(!a.value)return;Vn.emit("graph-scale",m);let C=a.value.store.data.pens;const B=((D=(A=window==null?void 0:window.meta)==null?void 0:A.graph)==null?void 0:D.penCountThreshold)||500;if(!(C.length>B))return;for(let _=0;_<C.length;_++){const T=C[_],k=T.visibleLevel!==void 0?m>=T.visibleLevel:!0;a.value._setValue({id:T.id,visible:k,disabled:!k,locked:k?Ie.LockState.None:Ie.LockState.Disable})}a.value.render()}catch(C){console.error("处理缩放失败:",C)}}function y(){return We(this,null,function*(){return i.url?(yield Kn.getGraphApi(i.url,{local:i.local}))||null:(Ze.ElMessage.error("图纸路径为空!"),null)})}return pe.onMounted(()=>{s.value&&x()}),pe.onUnmounted(()=>{Cx(),Bx(),a.value&&(i.preview?(va.clearLineCross(),a.value.destroy(!0)):a.value.off("scale",g))}),e({stage:a}),(m,A)=>(pe.openBlock(),pe.createElementBlock("div",{ref_key:"meta2dRef",ref:o,class:"meta2d-editor"},null,512))}}),Fx=Is(bx,[["__scopeId","data-v-664781e2"]]),Dx={class:"preview-container"},_x={key:0,class:"back-btn"},Sx=Object.assign({name:"Meta2dPreview"},{__name:"index",props:{url:{type:String,default:""},gid:{type:String,default:""},data:{type:Object,default:null},local:{type:Boolean,default:!1},config:{type:Object,default:()=>({socketUrl:so,stationIdKey:na,userTokenKey:ra,messageDelay:200,debounceDelay:100,enableAutoFit:!0,enableWebSocket:!0,graphSocket:ao.GRAPH.SOCKET})},showMap:{type:Boolean,default:!1},isFactory:{type:Boolean,default:!1},apiInstance:{type:Object,default:()=>Kn},mittInstance:{type:Object,default:()=>Vn},customCallbacks:{type:Object,default:()=>({})},errorHandler:{type:Object,default:()=>({callback:null,showMessage:!0})}},emits:["error","loaded","custom-msg","socket-msg"],setup(t,{expose:e,emit:r}){const n=r,i=t;let o=pe.ref(!1),a=pe.ref(""),s=pe.ref(!1);const x=pe.ref(null),f=pe.ref(""),l=pe.ref(!1),v=pe.computed(()=>{var S;return(S=x.value)==null?void 0:S.stage}),d=pe.computed(()=>{var S;return(S=v.value)==null?void 0:S.store}),g=pe.computed(()=>te({socketUrl:so,stationIdKey:na,userTokenKey:ra,messageDelay:200,debounceDelay:100,enableAutoFit:!0,enableWebSocket:!0,graphSocket:ao.GRAPH.SOCKET},i.config)),y=()=>i.apiInstance||Kn,m=()=>i.mittInstance||Vn,A=(S,N="")=>{const M={error:S,message:N,timestamp:new Date().toISOString()};n("error",M),i.errorHandler.callback?i.errorHandler.callback(M):i.errorHandler.showMessage&&Ze.ElMessage&&Ze.ElMessage.error(`${N}: ${S.message||S}`)},D=()=>{a.value&&(f.value=a.value,l.value=s.value)},C=S=>{var N,M;try{if(!S)return;if(S.includes("token 必传"))return Ze.ElMessage.warning(S);if(S.data==="服务错误"||S.data.includes("token is expired"))return Ze.ElMessage.warning(S.data);n("socket-msg",S);const H=typeof S=="string"?JSON.parse(S):S;if(((N=H.data)==null?void 0:N.length)>0){const Y=setTimeout(()=>{clearTimeout(Y),v.value&&(H.data.forEach(W=>{const ee=v.value.find(W.dataId);I(ee,W)}),v.value.render())},g.value.messageDelay);i.customCallbacks.onWebSocketMessage&&i.customCallbacks.onWebSocketMessage(H),(M=window.customSocketFn)==null||M.call(window,S)}return!0}catch(H){return A(H,"WebSocket消息处理"),!0}},B=S=>We(this,null,function*(){var N;try{if(S.params){const M=JSON.parse(S.params);switch(M.action){case nt.CHANGE_GRAPH:(M==null?void 0:M.data)!=="图纸id"&&(a.value=f.value,s.value=l.value,o.value=M.isBack,(N=M==null?void 0:M.data)!=null&&N.startsWith("/")?(f.value=M==null?void 0:M.data,l.value=!0):(l.value=!1,_(M.data)));break}}n("custom-msg",S),i.customCallbacks.onCustomMessage&&i.customCallbacks.onCustomMessage(S)}catch(M){A(M,"自定义消息处理")}}),b=S=>{var N,M;try{n("loaded",S);const H=T(),Y=g.value,W=ea.getSession(Y.stationIdKey),ee=ea.getSession(Y.userTokenKey);!((M=(N=S.store)==null?void 0:N.data)!=null&&M.websocket)&&Y.enableWebSocket&&W&&ee&&(S.store.data.websocket=`${Y.socketUrl}?station_id=${W}`,S.store.data.websocketProtocols=ee,S.connectWebsocket()),(i.showMap||H.showMap==="true")&&S.showMap(),S.setRule({rule:!1}),S.setOptions({disableRuleLine:!0}),S.setGrid({grid:!1}),S.lock(Ie.LockState.DisableEdit),X().forEach(O=>{var U;(U=O==null?void 0:O.events)!=null&&U.length?k({id:O.id,locked:1},!1):k({id:O.id,locked:10},!1)}),S.render(),Y.enableAutoFit&&S.fitView(!0,24),S.on(nt.CUSTOM_MSG,B),S.on(nt.CHANGE_GRAPH,B),S&&(S.socketFn=C),i.customCallbacks.onStageLoaded&&i.customCallbacks.onStageLoaded(S)}catch(H){A(H,"图纸加载完成处理")}},_=S=>We(this,null,function*(){var N;try{if(i.url){f.value=i.url,l.value=i.local;return}const M=T();if(S=S||i.gid||M.id,M.local==="true"&&(l.value=!0),S){const H=y();if(H&&H.getCommonApi){const Y=yield H.getCommonApi(i.isFactory?"graph":"floorplan",{guid:S});if((N=Y.data)!=null&&N.length)f.value=Y.data[0].path,i.customCallbacks.onGraphLoaded&&i.customCallbacks.onGraphLoaded(f.value);else{const W="未找到图纸!";A(new Error(W),"获取图纸数据")}}else A(new Error("API实例不可用"),"初始化图纸数据!")}else f.value=i.url,l.value=i.local}catch(M){A(M,"获取图纸数据失败")}}),T=()=>{var H;const S={},N=((H=window.location.href.split("?"))==null?void 0:H[1])||"",M=new URLSearchParams(N);for(const[Y,W]of M.entries())S[Y]=W;return S},k=(S,N=!0)=>{if(v.value)return v.value.setValue(S,{render:N})},$=()=>v.value,X=()=>{var S,N;return((N=(S=d.value)==null?void 0:S.data)==null?void 0:N.pens)||[]},I=(()=>{let S=null;const N=new Map,M=new Map,H=W=>{var J;if(!((J=W.children)!=null&&J.length))return[];const ee=W.id||"";if(!ee)return[];if(!M.has(ee)&&d.value){const O=Ie.getAllChildren(W,d.value);M.set(ee,O)}return M.get(ee)||[]},Y=()=>{if(N.size===0||!v.value||!d.value)return;const W=[],ee=[],J=d.value.animates;N.forEach(({pen:O,dataItem:U,formKey:K})=>{switch(K){case"light_plate":{const z=U.value===-1||ta(U)?"#999999":Ts[U.value!==void 0?U.value:U.alarm_value],oe=U.value===-1||ta(U)?"#cccccc":Ss[U.value!==void 0?U.value:U.alarm_value];k({id:O.id,textColor:z,background:oe},!1)}break;case"point_value":O.penType===Ee.POINT_VALUE&&H(O).forEach(oe=>{oe.name==="text"&&k({id:oe.id,text:U.value},!1)});break;case"online_state":{let z=U.value?void 0:"contrast(0%)";k({id:O.id,filter:z},!1),H(O).forEach(se=>{k({id:se.id,filter:z},!1)})}break;case"charged_state":{const z=U.value===z1.OFFLINE?"contrast(0%)":void 0;z!==O.filter&&(k({id:O.id,filter:z},!1),H(O).forEach(se=>{k({id:se.id,filter:z},!1)}))}break;case"electric_direction":U.value===W1.STOP?J!=null&&J.has(O)&&ee.push(O):!!U.value!==O.animateReverse&&(k({id:O.id,animateReverse:!!U.value},!1),J!=null&&J.has(O)||W.push(O));break;case"electric_size":{const z=G1[U.value];z!==void 0&&z!==O.lineWidth&&k({id:O.id,lineWidth:z},!1)}break}}),ee.length>0&&v.value.stopAnimate(ee),W.length>0&&v.value.startAnimate(W),N.clear(),v.value.render()};return(W,ee)=>{W!=null&&W.length&&(W.forEach(J=>{const O=J.form;O!=null&&O.length&&O.forEach(U=>{if(!(Array.isArray(U.dataIds)?U.dataIds:[U.dataIds]).some(se=>(se==null?void 0:se.dataId)===ee.dataId))return;const oe=`${J.id}-${U.key}`;N.set(oe,{pen:J,dataItem:ee,formKey:U.key})})}),S&&clearTimeout(S),S=setTimeout(()=>{Y(),S=null},g.value.debounceDelay))}})(),P=S=>{if(v.value){for(let N=0;N<S.length;N++){const M=S[N],H=v.value.find(M.dataId);I(H,M)}v.value.render(),i.customCallbacks.onBatchUpdate&&i.customCallbacks.onBatchUpdate(S)}},G=(S,N=!1)=>{if(!v.value)return;const M=X();for(let H=0;H<M.length;H++){const Y=M[H];let W=!1;N?W=S===Y.dataProp:W=S===5?!0:Y.dataProp<=S,k({id:Y.id,visible:W},!1)}v.value.fitView(),v.value.render(),i.customCallbacks.onLevelChange&&i.customCallbacks.onLevelChange(S,N)};return pe.watch(()=>[i.url,i.isFactory,i.local,i.data,i.gid],()=>{_()}),pe.watch(()=>i.showMap,()=>{v.value&&v.value.showMap()}),pe.onMounted(()=>{const S=m();S&&S.on&&S.on(g.value.graphSocket,C),_()}),pe.onUnmounted(()=>{const S=m();S&&S.off&&S.off(g.value.graphSocket,C)}),e({setValue:k,getStage:$,getAllPens:X,batchUpdatePen:P,handleLineCross:va.handleLineCross,changeVisibleByLevel:G}),(S,N)=>{const M=pe.resolveComponent("el-button");return pe.openBlock(),pe.createElementBlock("div",Dx,[pe.createVNode(Fx,{ref_key:"graphRef",ref:x,url:f.value,local:l.value,data:i.data,preview:"",onLoaded:b},null,8,["url","local","data"]),pe.unref(o)?(pe.openBlock(),pe.createElementBlock("div",_x,[pe.createVNode(M,{type:"primary",onClick:D},{default:pe.withCtx(()=>N[0]||(N[0]=[pe.createTextVNode("返回",-1)])),_:1,__:[0]})])):pe.createCommentVNode("",!0)])}}}),ur=Is(Sx,[["__scopeId","data-v-c09e5d6b"]]);ur.name||(ur.name="SyGraph");const Tx=t=>{t.component(ur.name||"SyGraph",ur)},Ix={install:Tx};exports.SyGraph=ur;exports.default=Ix;
|