little-wheels 1.1.13 → 1.1.14

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.
@@ -22,4 +22,4 @@ React keys must be passed directly to JSX without using spread:
22
22
  <%s key={someKey} {...props} />`,L,B,G,B),Q[B+L]=!0)}if(B=null,N!==void 0&&(t(N),B=""+N),O(_)&&(t(_.key),B=""+_.key),"key"in _){N={};for(var $ in _)$!=="key"&&(N[$]=_[$])}else N=_;return B&&v(N,typeof c=="function"?c.displayName||c.name||"Unknown":c),w(c,B,H,Y,s(),N,X,ie)}function m(c){typeof c=="object"&&c!==null&&c.$$typeof===f&&c._store&&(c._store.validated=1)}var g=gn,f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),S=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),C=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,J=Array.isArray,W=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(c){return c()}};var K,ae={},oe=g["react-stack-bottom-frame"].bind(g,y)(),x=W(o(y)),Q={};Te.Fragment=b,Te.jsx=function(c,_,N,L,Y){var H=1e4>C.recentlyCreatedOwnerStacks++;return h(c,_,N,!1,L,Y,H?Error("react-stack-top-frame"):oe,H?W(o(c)):x)},Te.jsxs=function(c,_,N,L,Y){var H=1e4>C.recentlyCreatedOwnerStacks++;return h(c,_,N,!0,L,Y,H?Error("react-stack-top-frame"):oe,H?W(o(c)):x)}}()),Te}var at;function An(){return at||(at=1,process.env.NODE_ENV==="production"?qe.exports=bn():qe.exports=Pn()),qe.exports}var Ne=An();const Kt=({data:e,onChange:r})=>Ne.jsx("div",{children:e.map(t=>Ne.jsxs("div",{className:"tree-node",children:[Ne.jsx("input",{type:"checkbox",checked:t.selected,disabled:t.disabled,onChange:()=>r==null?void 0:r(t)}),t.name,t.children&&Ne.jsx(Kt,{data:t.children,onChange:r})]},t.id))});class ne{static setItem(r,t){const o=localStorage.getItem("APPID");typeof t=="object"?localStorage.setItem(o+"-"+r,JSON.stringify(t)):localStorage.setItem(o+"-"+r,t)}static getItem(r){const t=localStorage.getItem("APPID"),o=localStorage.getItem(t+"-"+r);if(o)try{return JSON.parse(o)}catch{return o}return null}static removeItem(r){const t=localStorage.getItem("APPID");localStorage.removeItem(t+"-"+r)}static clear(){const r=localStorage.getItem("APPID");Object.keys(localStorage).forEach(t=>{t.startsWith(r+"-")&&localStorage.removeItem(t)})}static clearAll(){localStorage.clear()}}var Ve,ot;function Oe(){return ot||(ot=1,Ve=TypeError),Ve}const En={},On=Object.freeze(Object.defineProperty({__proto__:null,default:En},Symbol.toStringTag,{value:"Module"})),Rn=wn(On);var Je,it;function Fe(){if(it)return Je;it=1;var e=typeof Map=="function"&&Map.prototype,r=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,t=e&&r&&typeof r.get=="function"?r.get:null,o=e&&Map.prototype.forEach,s=typeof Set=="function"&&Set.prototype,y=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,O=s&&y&&typeof y.get=="function"?y.get:null,v=s&&Set.prototype.forEach,R=typeof WeakMap=="function"&&WeakMap.prototype,w=R?WeakMap.prototype.has:null,h=typeof WeakSet=="function"&&WeakSet.prototype,m=h?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,f=g?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,b=Object.prototype.toString,i=Function.prototype.toString,u=String.prototype.match,l=String.prototype.slice,S=String.prototype.replace,d=String.prototype.toUpperCase,P=String.prototype.toLowerCase,A=RegExp.prototype.test,E=Array.prototype.concat,T=Array.prototype.join,q=Array.prototype.slice,k=Math.floor,C=typeof BigInt=="function"?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,W=typeof Symbol=="function"&&typeof Symbol.iterator=="object",K=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===W||!0)?Symbol.toStringTag:null,ae=Object.prototype.propertyIsEnumerable,oe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function x(n,a){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||A.call(/e/,a))return a;var F=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var U=n<0?-k(-n):k(n);if(U!==n){var j=String(U),D=l.call(a,j.length+1);return S.call(j,F,"$&_")+"."+S.call(S.call(D,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(a,F,"$&_")}var Q=Rn,c=Q.custom,_=Z(c)?c:null,N={__proto__:null,double:'"',single:"'"},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};Je=function n(a,F,U,j){var D=F||{};if(re(D,"quoteStyle")&&!re(N,D.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(re(D,"maxStringLength")&&(typeof D.maxStringLength=="number"?D.maxStringLength<0&&D.maxStringLength!==1/0:D.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var ye=re(D,"customInspect")?D.customInspect:!0;if(typeof ye!="boolean"&&ye!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(re(D,"indent")&&D.indent!==null&&D.indent!==" "&&!(parseInt(D.indent,10)===D.indent&&D.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(re(D,"numericSeparator")&&typeof D.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var me=D.numericSeparator;if(typeof a>"u")return"undefined";if(a===null)return"null";if(typeof a=="boolean")return a?"true":"false";if(typeof a=="string")return Gr(a,D);if(typeof a=="number"){if(a===0)return 1/0/a>0?"0":"-0";var te=String(a);return me?x(a,te):te}if(typeof a=="bigint"){var de=String(a)+"n";return me?x(a,de):de}var Le=typeof D.depth>"u"?5:D.depth;if(typeof U>"u"&&(U=0),U>=Le&&Le>0&&typeof a=="object")return ie(a)?"[Array]":"[Object]";var Ae=yn(D,U);if(typeof j>"u")j=[];else if(pe(j,a)>=0)return"[Circular]";function se(Ee,$e,vn){if($e&&(j=q.call(j),j.push($e)),vn){var Zr={depth:D.depth};return re(D,"quoteStyle")&&(Zr.quoteStyle=D.quoteStyle),n(Ee,Zr,U+1,j)}return n(Ee,D,U+1,j)}if(typeof a=="function"&&!G(a)){var Hr=Se(a),Vr=xe(a,se);return"[Function"+(Hr?": "+Hr:" (anonymous)")+"]"+(Vr.length>0?" { "+T.call(Vr,", ")+" }":"")}if(Z(a)){var Jr=W?S.call(String(a),/^(Symbol\(.*\))_[^)]*$/,"$1"):J.call(a);return typeof a=="object"&&!W?Re(Jr):Jr}if(cn(a)){for(var Ie="<"+P.call(String(a.nodeName)),Be=a.attributes||[],De=0;De<Be.length;De++)Ie+=" "+Be[De].name+"="+Y(H(Be[De].value),"double",D);return Ie+=">",a.childNodes&&a.childNodes.length&&(Ie+="..."),Ie+="</"+P.call(String(a.nodeName))+">",Ie}if(ie(a)){if(a.length===0)return"[]";var je=xe(a,se);return Ae&&!pn(je)?"["+Ue(je,Ae)+"]":"[ "+T.call(je,", ")+" ]"}if($(a)){var We=xe(a,se);return!("cause"in Error.prototype)&&"cause"in a&&!ae.call(a,"cause")?"{ ["+String(a)+"] "+T.call(E.call("[cause]: "+se(a.cause),We),", ")+" }":We.length===0?"["+String(a)+"]":"{ ["+String(a)+"] "+T.call(We,", ")+" }"}if(typeof a=="object"&&ye){if(_&&typeof a[_]=="function"&&Q)return Q(a,{depth:Le-U});if(ye!=="symbol"&&typeof a.inspect=="function")return a.inspect()}if(ce(a)){var Yr=[];return o&&o.call(a,function(Ee,$e){Yr.push(se($e,a,!0)+" => "+se(Ee,a))}),zr("Map",t.call(a),Yr,Ae)}if(Pe(a)){var Kr=[];return v&&v.call(a,function(Ee){Kr.push(se(Ee,a))}),zr("Set",O.call(a),Kr,Ae)}if(we(a))return Me("WeakMap");if(fn(a))return Me("WeakSet");if(be(a))return Me("WeakRef");if(M(a))return Re(se(Number(a)));if(ue(a))return Re(se(C.call(a)));if(V(a))return Re(p.call(a));if(z(a))return Re(se(String(a)));if(typeof window<"u"&&a===window)return"{ [object Window] }";if(typeof globalThis<"u"&&a===globalThis||typeof rt<"u"&&a===rt)return"{ [object globalThis] }";if(!B(a)&&!G(a)){var Ge=xe(a,se),Qr=oe?oe(a)===Object.prototype:a instanceof Object||a.constructor===Object,ze=a instanceof Object?"":"null prototype",Xr=!Qr&&K&&Object(a)===a&&K in a?l.call(le(a),8,-1):ze?"Object":"",dn=Qr||typeof a.constructor!="function"?"":a.constructor.name?a.constructor.name+" ":"",He=dn+(Xr||ze?"["+T.call(E.call([],Xr||[],ze||[]),": ")+"] ":"");return Ge.length===0?He+"{}":Ae?He+"{"+Ue(Ge,Ae)+"}":He+"{ "+T.call(Ge,", ")+" }"}return String(a)};function Y(n,a,F){var U=F.quoteStyle||a,j=N[U];return j+n+j}function H(n){return S.call(String(n),/"/g,"&quot;")}function X(n){return!K||!(typeof n=="object"&&(K in n||typeof n[K]<"u"))}function ie(n){return le(n)==="[object Array]"&&X(n)}function B(n){return le(n)==="[object Date]"&&X(n)}function G(n){return le(n)==="[object RegExp]"&&X(n)}function $(n){return le(n)==="[object Error]"&&X(n)}function z(n){return le(n)==="[object String]"&&X(n)}function M(n){return le(n)==="[object Number]"&&X(n)}function V(n){return le(n)==="[object Boolean]"&&X(n)}function Z(n){if(W)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!J)return!1;try{return J.call(n),!0}catch{}return!1}function ue(n){if(!n||typeof n!="object"||!C)return!1;try{return C.call(n),!0}catch{}return!1}var ee=Object.prototype.hasOwnProperty||function(n){return n in this};function re(n,a){return ee.call(n,a)}function le(n){return b.call(n)}function Se(n){if(n.name)return n.name;var a=u.call(i.call(n),/^function\s*([\w$]+)/);return a?a[1]:null}function pe(n,a){if(n.indexOf)return n.indexOf(a);for(var F=0,U=n.length;F<U;F++)if(n[F]===a)return F;return-1}function ce(n){if(!t||!n||typeof n!="object")return!1;try{t.call(n);try{O.call(n)}catch{return!0}return n instanceof Map}catch{}return!1}function we(n){if(!w||!n||typeof n!="object")return!1;try{w.call(n,w);try{m.call(n,m)}catch{return!0}return n instanceof WeakMap}catch{}return!1}function be(n){if(!f||!n||typeof n!="object")return!1;try{return f.call(n),!0}catch{}return!1}function Pe(n){if(!O||!n||typeof n!="object")return!1;try{O.call(n);try{t.call(n)}catch{return!0}return n instanceof Set}catch{}return!1}function fn(n){if(!m||!n||typeof n!="object")return!1;try{m.call(n,m);try{w.call(n,w)}catch{return!0}return n instanceof WeakSet}catch{}return!1}function cn(n){return!n||typeof n!="object"?!1:typeof HTMLElement<"u"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function Gr(n,a){if(n.length>a.maxStringLength){var F=n.length-a.maxStringLength,U="... "+F+" more character"+(F>1?"s":"");return Gr(l.call(n,0,a.maxStringLength),a)+U}var j=L[a.quoteStyle||"single"];j.lastIndex=0;var D=S.call(S.call(n,j,"\\$1"),/[\x00-\x1f]/g,sn);return Y(D,"single",a)}function sn(n){var a=n.charCodeAt(0),F={8:"b",9:"t",10:"n",12:"f",13:"r"}[a];return F?"\\"+F:"\\x"+(a<16?"0":"")+d.call(a.toString(16))}function Re(n){return"Object("+n+")"}function Me(n){return n+" { ? }"}function zr(n,a,F,U){var j=U?Ue(F,U):T.call(F,", ");return n+" ("+a+") {"+j+"}"}function pn(n){for(var a=0;a<n.length;a++)if(pe(n[a],`
23
23
  `)>=0)return!1;return!0}function yn(n,a){var F;if(n.indent===" ")F=" ";else if(typeof n.indent=="number"&&n.indent>0)F=T.call(Array(n.indent+1)," ");else return null;return{base:F,prev:T.call(Array(a+1),F)}}function Ue(n,a){if(n.length===0)return"";var F=`
24
24
  `+a.prev+a.base;return F+T.call(n,","+F)+`
25
- `+a.prev}function xe(n,a){var F=ie(n),U=[];if(F){U.length=n.length;for(var j=0;j<n.length;j++)U[j]=re(n,j)?a(n[j],n):""}var D=typeof I=="function"?I(n):[],ye;if(W){ye={};for(var me=0;me<D.length;me++)ye["$"+D[me]]=D[me]}for(var te in n)re(n,te)&&(F&&String(Number(te))===te&&te<n.length||W&&ye["$"+te]instanceof Symbol||(A.call(/[^\w$]/,te)?U.push(a(te,n)+": "+a(n[te],n)):U.push(te+": "+a(n[te],n))));if(typeof I=="function")for(var de=0;de<D.length;de++)ae.call(n,D[de])&&U.push("["+a(D[de])+"]: "+a(n[D[de]],n));return U}return Je}var Ye,ut;function In(){if(ut)return Ye;ut=1;var e=Fe(),r=Oe(),t=function(v,R,w){for(var h=v,m;(m=h.next)!=null;h=m)if(m.key===R)return h.next=m.next,w||(m.next=v.next,v.next=m),m},o=function(v,R){if(v){var w=t(v,R);return w&&w.value}},s=function(v,R,w){var h=t(v,R);h?h.value=w:v.next={key:R,next:v.next,value:w}},y=function(v,R){return v?!!t(v,R):!1},O=function(v,R){if(v)return t(v,R,!0)};return Ye=function(){var R,w={assert:function(h){if(!w.has(h))throw new r("Side channel does not contain "+e(h))},delete:function(h){var m=R&&R.next,g=O(R,h);return g&&m&&m===g&&(R=void 0),!!g},get:function(h){return o(R,h)},has:function(h){return y(R,h)},set:function(h,m){R||(R={next:void 0}),s(R,h,m)}};return w},Ye}var Ke,lt;function Qt(){return lt||(lt=1,Ke=Object),Ke}var Qe,ft;function _n(){return ft||(ft=1,Qe=Error),Qe}var Xe,ct;function Tn(){return ct||(ct=1,Xe=EvalError),Xe}var Ze,st;function kn(){return st||(st=1,Ze=RangeError),Ze}var er,pt;function xn(){return pt||(pt=1,er=ReferenceError),er}var rr,yt;function Dn(){return yt||(yt=1,rr=SyntaxError),rr}var tr,dt;function $n(){return dt||(dt=1,tr=URIError),tr}var nr,vt;function qn(){return vt||(vt=1,nr=Math.abs),nr}var ar,ht;function Nn(){return ht||(ht=1,ar=Math.floor),ar}var or,mt;function Fn(){return mt||(mt=1,or=Math.max),or}var ir,gt;function Cn(){return gt||(gt=1,ir=Math.min),ir}var ur,St;function Mn(){return St||(St=1,ur=Math.pow),ur}var lr,wt;function Un(){return wt||(wt=1,lr=Math.round),lr}var fr,bt;function Ln(){return bt||(bt=1,fr=Number.isNaN||function(r){return r!==r}),fr}var cr,Pt;function Bn(){if(Pt)return cr;Pt=1;var e=Ln();return cr=function(t){return e(t)||t===0?t:t<0?-1:1},cr}var sr,At;function jn(){return At||(At=1,sr=Object.getOwnPropertyDescriptor),sr}var pr,Et;function Xt(){if(Et)return pr;Et=1;var e=jn();if(e)try{e([],"length")}catch{e=null}return pr=e,pr}var yr,Ot;function Wn(){if(Ot)return yr;Ot=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return yr=e,yr}var dr,Rt;function Gn(){return Rt||(Rt=1,dr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),o=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;r[t]=s;for(var y in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var O=Object.getOwnPropertySymbols(r);if(O.length!==1||O[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(r,t);if(v.value!==s||v.enumerable!==!0)return!1}return!0}),dr}var vr,It;function zn(){if(It)return vr;It=1;var e=typeof Symbol<"u"&&Symbol,r=Gn();return vr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()},vr}var hr,_t;function Zt(){return _t||(_t=1,hr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),hr}var mr,Tt;function en(){if(Tt)return mr;Tt=1;var e=Qt();return mr=e.getPrototypeOf||null,mr}var gr,kt;function Hn(){if(kt)return gr;kt=1;var e="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,t=Math.max,o="[object Function]",s=function(R,w){for(var h=[],m=0;m<R.length;m+=1)h[m]=R[m];for(var g=0;g<w.length;g+=1)h[g+R.length]=w[g];return h},y=function(R,w){for(var h=[],m=w,g=0;m<R.length;m+=1,g+=1)h[g]=R[m];return h},O=function(v,R){for(var w="",h=0;h<v.length;h+=1)w+=v[h],h+1<v.length&&(w+=R);return w};return gr=function(R){var w=this;if(typeof w!="function"||r.apply(w)!==o)throw new TypeError(e+w);for(var h=y(arguments,1),m,g=function(){if(this instanceof m){var u=w.apply(this,s(h,arguments));return Object(u)===u?u:this}return w.apply(R,s(h,arguments))},f=t(0,w.length-h.length),p=[],b=0;b<f;b++)p[b]="$"+b;if(m=Function("binder","return function ("+O(p,",")+"){ return binder.apply(this,arguments); }")(g),w.prototype){var i=function(){};i.prototype=w.prototype,m.prototype=new i,i.prototype=null}return m},gr}var Sr,xt;function Ce(){if(xt)return Sr;xt=1;var e=Hn();return Sr=Function.prototype.bind||e,Sr}var wr,Dt;function Br(){return Dt||(Dt=1,wr=Function.prototype.call),wr}var br,$t;function rn(){return $t||($t=1,br=Function.prototype.apply),br}var Pr,qt;function Vn(){return qt||(qt=1,Pr=typeof Reflect<"u"&&Reflect&&Reflect.apply),Pr}var Ar,Nt;function Jn(){if(Nt)return Ar;Nt=1;var e=Ce(),r=rn(),t=Br(),o=Vn();return Ar=o||e.call(t,r),Ar}var Er,Ft;function tn(){if(Ft)return Er;Ft=1;var e=Ce(),r=Oe(),t=Br(),o=Jn();return Er=function(y){if(y.length<1||typeof y[0]!="function")throw new r("a function is required");return o(e,t,y)},Er}var Or,Ct;function Yn(){if(Ct)return Or;Ct=1;var e=tn(),r=Xt(),t;try{t=[].__proto__===Array.prototype}catch(O){if(!O||typeof O!="object"||!("code"in O)||O.code!=="ERR_PROTO_ACCESS")throw O}var o=!!t&&r&&r(Object.prototype,"__proto__"),s=Object,y=s.getPrototypeOf;return Or=o&&typeof o.get=="function"?e([o.get]):typeof y=="function"?function(v){return y(v==null?v:s(v))}:!1,Or}var Rr,Mt;function Kn(){if(Mt)return Rr;Mt=1;var e=Zt(),r=en(),t=Yn();return Rr=e?function(s){return e(s)}:r?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return r(s)}:t?function(s){return t(s)}:null,Rr}var Ir,Ut;function Qn(){if(Ut)return Ir;Ut=1;var e=Function.prototype.call,r=Object.prototype.hasOwnProperty,t=Ce();return Ir=t.call(e,r),Ir}var _r,Lt;function jr(){if(Lt)return _r;Lt=1;var e,r=Qt(),t=_n(),o=Tn(),s=kn(),y=xn(),O=Dn(),v=Oe(),R=$n(),w=qn(),h=Nn(),m=Fn(),g=Cn(),f=Mn(),p=Un(),b=Bn(),i=Function,u=function(G){try{return i('"use strict"; return ('+G+").constructor;")()}catch{}},l=Xt(),S=Wn(),d=function(){throw new v},P=l?function(){try{return arguments.callee,d}catch{try{return l(arguments,"callee").get}catch{return d}}}():d,A=zn()(),E=Kn(),T=en(),q=Zt(),k=rn(),C=Br(),I={},J=typeof Uint8Array>"u"||!E?e:E(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&E?E(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":O,"%ThrowTypeError%":P,"%TypedArray%":J,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":R,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":k,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":T,"%Math.abs%":w,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":f,"%Math.round%":p,"%Math.sign%":b,"%Reflect.getPrototypeOf%":q};if(E)try{null.error}catch(G){var K=E(E(G));W["%Error.prototype%"]=K}var ae=function G($){var z;if($==="%AsyncFunction%")z=u("async function () {}");else if($==="%GeneratorFunction%")z=u("function* () {}");else if($==="%AsyncGeneratorFunction%")z=u("async function* () {}");else if($==="%AsyncGenerator%"){var M=G("%AsyncGeneratorFunction%");M&&(z=M.prototype)}else if($==="%AsyncIteratorPrototype%"){var V=G("%AsyncGenerator%");V&&E&&(z=E(V.prototype))}return W[$]=z,z},oe={__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"]},x=Ce(),Q=Qn(),c=x.call(C,Array.prototype.concat),_=x.call(k,Array.prototype.splice),N=x.call(C,String.prototype.replace),L=x.call(C,String.prototype.slice),Y=x.call(C,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,ie=function($){var z=L($,0,1),M=L($,-1);if(z==="%"&&M!=="%")throw new O("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&z!=="%")throw new O("invalid intrinsic syntax, expected opening `%`");var V=[];return N($,H,function(Z,ue,ee,re){V[V.length]=ee?N(re,X,"$1"):ue||Z}),V},B=function($,z){var M=$,V;if(Q(oe,M)&&(V=oe[M],M="%"+V[0]+"%"),Q(W,M)){var Z=W[M];if(Z===I&&(Z=ae(M)),typeof Z>"u"&&!z)throw new v("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:V,name:M,value:Z}}throw new O("intrinsic "+$+" does not exist!")};return _r=function($,z){if(typeof $!="string"||$.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!="boolean")throw new v('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,$)===null)throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=ie($),V=M.length>0?M[0]:"",Z=B("%"+V+"%",z),ue=Z.name,ee=Z.value,re=!1,le=Z.alias;le&&(V=le[0],_(M,c([0,1],le)));for(var Se=1,pe=!0;Se<M.length;Se+=1){var ce=M[Se],we=L(ce,0,1),be=L(ce,-1);if((we==='"'||we==="'"||we==="`"||be==='"'||be==="'"||be==="`")&&we!==be)throw new O("property names with quotes must have matching quotes");if((ce==="constructor"||!pe)&&(re=!0),V+="."+ce,ue="%"+V+"%",Q(W,ue))ee=W[ue];else if(ee!=null){if(!(ce in ee)){if(!z)throw new v("base intrinsic for "+$+" exists, but the property is not available.");return}if(l&&Se+1>=M.length){var Pe=l(ee,ce);pe=!!Pe,pe&&"get"in Pe&&!("originalValue"in Pe.get)?ee=Pe.get:ee=ee[ce]}else pe=Q(ee,ce),ee=ee[ce];pe&&!re&&(W[ue]=ee)}}return ee},_r}var Tr,Bt;function nn(){if(Bt)return Tr;Bt=1;var e=jr(),r=tn(),t=r([e("%String.prototype.indexOf%")]);return Tr=function(s,y){var O=e(s,!!y);return typeof O=="function"&&t(s,".prototype.")>-1?r([O]):O},Tr}var kr,jt;function an(){if(jt)return kr;jt=1;var e=jr(),r=nn(),t=Fe(),o=Oe(),s=e("%Map%",!0),y=r("Map.prototype.get",!0),O=r("Map.prototype.set",!0),v=r("Map.prototype.has",!0),R=r("Map.prototype.delete",!0),w=r("Map.prototype.size",!0);return kr=!!s&&function(){var m,g={assert:function(f){if(!g.has(f))throw new o("Side channel does not contain "+t(f))},delete:function(f){if(m){var p=R(m,f);return w(m)===0&&(m=void 0),p}return!1},get:function(f){if(m)return y(m,f)},has:function(f){return m?v(m,f):!1},set:function(f,p){m||(m=new s),O(m,f,p)}};return g},kr}var xr,Wt;function Xn(){if(Wt)return xr;Wt=1;var e=jr(),r=nn(),t=Fe(),o=an(),s=Oe(),y=e("%WeakMap%",!0),O=r("WeakMap.prototype.get",!0),v=r("WeakMap.prototype.set",!0),R=r("WeakMap.prototype.has",!0),w=r("WeakMap.prototype.delete",!0);return xr=y?function(){var m,g,f={assert:function(p){if(!f.has(p))throw new s("Side channel does not contain "+t(p))},delete:function(p){if(y&&p&&(typeof p=="object"||typeof p=="function")){if(m)return w(m,p)}else if(o&&g)return g.delete(p);return!1},get:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?O(m,p):g&&g.get(p)},has:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?R(m,p):!!g&&g.has(p)},set:function(p,b){y&&p&&(typeof p=="object"||typeof p=="function")?(m||(m=new y),v(m,p,b)):o&&(g||(g=o()),g.set(p,b))}};return f}:o,xr}var Dr,Gt;function Zn(){if(Gt)return Dr;Gt=1;var e=Oe(),r=Fe(),t=In(),o=an(),s=Xn(),y=s||o||t;return Dr=function(){var v,R={assert:function(w){if(!R.has(w))throw new e("Side channel does not contain "+r(w))},delete:function(w){return!!v&&v.delete(w)},get:function(w){return v&&v.get(w)},has:function(w){return!!v&&v.has(w)},set:function(w,h){v||(v=y()),v.set(w,h)}};return R},Dr}var $r,zt;function Wr(){if(zt)return $r;zt=1;var e=String.prototype.replace,r=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return $r={default:t.RFC3986,formatters:{RFC1738:function(o){return e.call(o,r,"+")},RFC3986:function(o){return String(o)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},$r}var qr,Ht;function on(){if(Ht)return qr;Ht=1;var e=Wr(),r=Object.prototype.hasOwnProperty,t=Array.isArray,o=function(){for(var i=[],u=0;u<256;++u)i.push("%"+((u<16?"0":"")+u.toString(16)).toUpperCase());return i}(),s=function(u){for(;u.length>1;){var l=u.pop(),S=l.obj[l.prop];if(t(S)){for(var d=[],P=0;P<S.length;++P)typeof S[P]<"u"&&d.push(S[P]);l.obj[l.prop]=d}}},y=function(u,l){for(var S=l&&l.plainObjects?{__proto__:null}:{},d=0;d<u.length;++d)typeof u[d]<"u"&&(S[d]=u[d]);return S},O=function i(u,l,S){if(!l)return u;if(typeof l!="object"&&typeof l!="function"){if(t(u))u.push(l);else if(u&&typeof u=="object")(S&&(S.plainObjects||S.allowPrototypes)||!r.call(Object.prototype,l))&&(u[l]=!0);else return[u,l];return u}if(!u||typeof u!="object")return[u].concat(l);var d=u;return t(u)&&!t(l)&&(d=y(u,S)),t(u)&&t(l)?(l.forEach(function(P,A){if(r.call(u,A)){var E=u[A];E&&typeof E=="object"&&P&&typeof P=="object"?u[A]=i(E,P,S):u.push(P)}else u[A]=P}),u):Object.keys(l).reduce(function(P,A){var E=l[A];return r.call(P,A)?P[A]=i(P[A],E,S):P[A]=E,P},d)},v=function(u,l){return Object.keys(l).reduce(function(S,d){return S[d]=l[d],S},u)},R=function(i,u,l){var S=i.replace(/\+/g," ");if(l==="iso-8859-1")return S.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(S)}catch{return S}},w=1024,h=function(u,l,S,d,P){if(u.length===0)return u;var A=u;if(typeof u=="symbol"?A=Symbol.prototype.toString.call(u):typeof u!="string"&&(A=String(u)),S==="iso-8859-1")return escape(A).replace(/%u[0-9a-f]{4}/gi,function(J){return"%26%23"+parseInt(J.slice(2),16)+"%3B"});for(var E="",T=0;T<A.length;T+=w){for(var q=A.length>=w?A.slice(T,T+w):A,k=[],C=0;C<q.length;++C){var I=q.charCodeAt(C);if(I===45||I===46||I===95||I===126||I>=48&&I<=57||I>=65&&I<=90||I>=97&&I<=122||P===e.RFC1738&&(I===40||I===41)){k[k.length]=q.charAt(C);continue}if(I<128){k[k.length]=o[I];continue}if(I<2048){k[k.length]=o[192|I>>6]+o[128|I&63];continue}if(I<55296||I>=57344){k[k.length]=o[224|I>>12]+o[128|I>>6&63]+o[128|I&63];continue}C+=1,I=65536+((I&1023)<<10|q.charCodeAt(C)&1023),k[k.length]=o[240|I>>18]+o[128|I>>12&63]+o[128|I>>6&63]+o[128|I&63]}E+=k.join("")}return E},m=function(u){for(var l=[{obj:{o:u},prop:"o"}],S=[],d=0;d<l.length;++d)for(var P=l[d],A=P.obj[P.prop],E=Object.keys(A),T=0;T<E.length;++T){var q=E[T],k=A[q];typeof k=="object"&&k!==null&&S.indexOf(k)===-1&&(l.push({obj:A,prop:q}),S.push(k))}return s(l),u},g=function(u){return Object.prototype.toString.call(u)==="[object RegExp]"},f=function(u){return!u||typeof u!="object"?!1:!!(u.constructor&&u.constructor.isBuffer&&u.constructor.isBuffer(u))},p=function(u,l){return[].concat(u,l)},b=function(u,l){if(t(u)){for(var S=[],d=0;d<u.length;d+=1)S.push(l(u[d]));return S}return l(u)};return qr={arrayToObject:y,assign:v,combine:p,compact:m,decode:R,encode:h,isBuffer:f,isRegExp:g,maybeMap:b,merge:O},qr}var Nr,Vt;function ea(){if(Vt)return Nr;Vt=1;var e=Zn(),r=on(),t=Wr(),o=Object.prototype.hasOwnProperty,s={brackets:function(i){return i+"[]"},comma:"comma",indices:function(i,u){return i+"["+u+"]"},repeat:function(i){return i}},y=Array.isArray,O=Array.prototype.push,v=function(b,i){O.apply(b,y(i)?i:[i])},R=Date.prototype.toISOString,w=t.default,h={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:w,formatter:t.formatters[w],indices:!1,serializeDate:function(i){return R.call(i)},skipNulls:!1,strictNullHandling:!1},m=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint"},g={},f=function b(i,u,l,S,d,P,A,E,T,q,k,C,I,J,W,K,ae,oe){for(var x=i,Q=oe,c=0,_=!1;(Q=Q.get(g))!==void 0&&!_;){var N=Q.get(i);if(c+=1,typeof N<"u"){if(N===c)throw new RangeError("Cyclic object value");_=!0}typeof Q.get(g)>"u"&&(c=0)}if(typeof q=="function"?x=q(u,x):x instanceof Date?x=I(x):l==="comma"&&y(x)&&(x=r.maybeMap(x,function(ue){return ue instanceof Date?I(ue):ue})),x===null){if(P)return T&&!K?T(u,h.encoder,ae,"key",J):u;x=""}if(m(x)||r.isBuffer(x)){if(T){var L=K?u:T(u,h.encoder,ae,"key",J);return[W(L)+"="+W(T(x,h.encoder,ae,"value",J))]}return[W(u)+"="+W(String(x))]}var Y=[];if(typeof x>"u")return Y;var H;if(l==="comma"&&y(x))K&&T&&(x=r.maybeMap(x,T)),H=[{value:x.length>0?x.join(",")||null:void 0}];else if(y(q))H=q;else{var X=Object.keys(x);H=k?X.sort(k):X}var ie=E?String(u).replace(/\./g,"%2E"):String(u),B=S&&y(x)&&x.length===1?ie+"[]":ie;if(d&&y(x)&&x.length===0)return B+"[]";for(var G=0;G<H.length;++G){var $=H[G],z=typeof $=="object"&&$&&typeof $.value<"u"?$.value:x[$];if(!(A&&z===null)){var M=C&&E?String($).replace(/\./g,"%2E"):String($),V=y(x)?typeof l=="function"?l(B,M):B:B+(C?"."+M:"["+M+"]");oe.set(i,c);var Z=e();Z.set(g,oe),v(Y,b(z,V,l,S,d,P,A,E,l==="comma"&&K&&y(x)?null:T,q,k,C,I,J,W,K,ae,Z))}}return Y},p=function(i){if(!i)return h;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.encodeDotInKeys<"u"&&typeof i.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(i.encoder!==null&&typeof i.encoder<"u"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var u=i.charset||h.charset;if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var l=t.default;if(typeof i.format<"u"){if(!o.call(t.formatters,i.format))throw new TypeError("Unknown format option provided.");l=i.format}var S=t.formatters[l],d=h.filter;(typeof i.filter=="function"||y(i.filter))&&(d=i.filter);var P;if(i.arrayFormat in s?P=i.arrayFormat:"indices"in i?P=i.indices?"indices":"repeat":P=h.arrayFormat,"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var A=typeof i.allowDots>"u"?i.encodeDotInKeys===!0?!0:h.allowDots:!!i.allowDots;return{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:h.addQueryPrefix,allowDots:A,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:P,charset:u,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!i.commaRoundTrip,delimiter:typeof i.delimiter>"u"?h.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:h.encode,encodeDotInKeys:typeof i.encodeDotInKeys=="boolean"?i.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof i.encoder=="function"?i.encoder:h.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:h.encodeValuesOnly,filter:d,format:l,formatter:S,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:h.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:h.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:h.strictNullHandling}};return Nr=function(b,i){var u=b,l=p(i),S,d;typeof l.filter=="function"?(d=l.filter,u=d("",u)):y(l.filter)&&(d=l.filter,S=d);var P=[];if(typeof u!="object"||u===null)return"";var A=s[l.arrayFormat],E=A==="comma"&&l.commaRoundTrip;S||(S=Object.keys(u)),l.sort&&S.sort(l.sort);for(var T=e(),q=0;q<S.length;++q){var k=S[q],C=u[k];l.skipNulls&&C===null||v(P,f(C,k,A,E,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,T))}var I=P.join(l.delimiter),J=l.addQueryPrefix===!0?"?":"";return l.charsetSentinel&&(l.charset==="iso-8859-1"?J+="utf8=%26%2310003%3B&":J+="utf8=%E2%9C%93&"),I.length>0?J+I:""},Nr}var Fr,Jt;function ra(){if(Jt)return Fr;Jt=1;var e=on(),r=Object.prototype.hasOwnProperty,t=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(g){return g.replace(/&#(\d+);/g,function(f,p){return String.fromCharCode(parseInt(p,10))})},y=function(g,f,p){if(g&&typeof g=="string"&&f.comma&&g.indexOf(",")>-1)return g.split(",");if(f.throwOnLimitExceeded&&p>=f.arrayLimit)throw new RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");return g},O="utf8=%26%2310003%3B",v="utf8=%E2%9C%93",R=function(f,p){var b={__proto__:null},i=p.ignoreQueryPrefix?f.replace(/^\?/,""):f;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=p.parameterLimit===1/0?void 0:p.parameterLimit,l=i.split(p.delimiter,p.throwOnLimitExceeded?u+1:u);if(p.throwOnLimitExceeded&&l.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(u===1?"":"s")+" allowed.");var S=-1,d,P=p.charset;if(p.charsetSentinel)for(d=0;d<l.length;++d)l[d].indexOf("utf8=")===0&&(l[d]===v?P="utf-8":l[d]===O&&(P="iso-8859-1"),S=d,d=l.length);for(d=0;d<l.length;++d)if(d!==S){var A=l[d],E=A.indexOf("]="),T=E===-1?A.indexOf("="):E+1,q,k;T===-1?(q=p.decoder(A,o.decoder,P,"key"),k=p.strictNullHandling?null:""):(q=p.decoder(A.slice(0,T),o.decoder,P,"key"),k=e.maybeMap(y(A.slice(T+1),p,t(b[q])?b[q].length:0),function(I){return p.decoder(I,o.decoder,P,"value")})),k&&p.interpretNumericEntities&&P==="iso-8859-1"&&(k=s(String(k))),A.indexOf("[]=")>-1&&(k=t(k)?[k]:k);var C=r.call(b,q);C&&p.duplicates==="combine"?b[q]=e.combine(b[q],k):(!C||p.duplicates==="last")&&(b[q]=k)}return b},w=function(g,f,p,b){var i=0;if(g.length>0&&g[g.length-1]==="[]"){var u=g.slice(0,-1).join("");i=Array.isArray(f)&&f[u]?f[u].length:0}for(var l=b?f:y(f,p,i),S=g.length-1;S>=0;--S){var d,P=g[S];if(P==="[]"&&p.parseArrays)d=p.allowEmptyArrays&&(l===""||p.strictNullHandling&&l===null)?[]:e.combine([],l);else{d=p.plainObjects?{__proto__:null}:{};var A=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,E=p.decodeDotInKeys?A.replace(/%2E/g,"."):A,T=parseInt(E,10);!p.parseArrays&&E===""?d={0:l}:!isNaN(T)&&P!==E&&String(T)===E&&T>=0&&p.parseArrays&&T<=p.arrayLimit?(d=[],d[T]=l):E!=="__proto__"&&(d[E]=l)}l=d}return l},h=function(f,p,b,i){if(f){var u=b.allowDots?f.replace(/\.([^.[]+)/g,"[$1]"):f,l=/(\[[^[\]]*])/,S=/(\[[^[\]]*])/g,d=b.depth>0&&l.exec(u),P=d?u.slice(0,d.index):u,A=[];if(P){if(!b.plainObjects&&r.call(Object.prototype,P)&&!b.allowPrototypes)return;A.push(P)}for(var E=0;b.depth>0&&(d=S.exec(u))!==null&&E<b.depth;){if(E+=1,!b.plainObjects&&r.call(Object.prototype,d[1].slice(1,-1))&&!b.allowPrototypes)return;A.push(d[1])}if(d){if(b.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+b.depth+" and strictDepth is true");A.push("["+u.slice(d.index)+"]")}return w(A,p,b,i)}},m=function(f){if(!f)return o;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.decodeDotInKeys<"u"&&typeof f.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(f.decoder!==null&&typeof f.decoder<"u"&&typeof f.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof f.throwOnLimitExceeded<"u"&&typeof f.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var p=typeof f.charset>"u"?o.charset:f.charset,b=typeof f.duplicates>"u"?o.duplicates:f.duplicates;if(b!=="combine"&&b!=="first"&&b!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof f.allowDots>"u"?f.decodeDotInKeys===!0?!0:o.allowDots:!!f.allowDots;return{allowDots:i,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:typeof f.allowPrototypes=="boolean"?f.allowPrototypes:o.allowPrototypes,allowSparse:typeof f.allowSparse=="boolean"?f.allowSparse:o.allowSparse,arrayLimit:typeof f.arrayLimit=="number"?f.arrayLimit:o.arrayLimit,charset:p,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:o.charsetSentinel,comma:typeof f.comma=="boolean"?f.comma:o.comma,decodeDotInKeys:typeof f.decodeDotInKeys=="boolean"?f.decodeDotInKeys:o.decodeDotInKeys,decoder:typeof f.decoder=="function"?f.decoder:o.decoder,delimiter:typeof f.delimiter=="string"||e.isRegExp(f.delimiter)?f.delimiter:o.delimiter,depth:typeof f.depth=="number"||f.depth===!1?+f.depth:o.depth,duplicates:b,ignoreQueryPrefix:f.ignoreQueryPrefix===!0,interpretNumericEntities:typeof f.interpretNumericEntities=="boolean"?f.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof f.parameterLimit=="number"?f.parameterLimit:o.parameterLimit,parseArrays:f.parseArrays!==!1,plainObjects:typeof f.plainObjects=="boolean"?f.plainObjects:o.plainObjects,strictDepth:typeof f.strictDepth=="boolean"?!!f.strictDepth:o.strictDepth,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:typeof f.throwOnLimitExceeded=="boolean"?f.throwOnLimitExceeded:!1}};return Fr=function(g,f){var p=m(f);if(g===""||g===null||typeof g>"u")return p.plainObjects?{__proto__:null}:{};for(var b=typeof g=="string"?R(g,p):g,i=p.plainObjects?{__proto__:null}:{},u=Object.keys(b),l=0;l<u.length;++l){var S=u[l],d=h(S,b[S],p,typeof g=="string");i=e.merge(i,d,p)}return p.allowSparse===!0?i:e.compact(i)},Fr}var Cr,Yt;function ta(){if(Yt)return Cr;Yt=1;var e=ea(),r=ra(),t=Wr();return Cr={formats:t,parse:r,stringify:e},Cr}var na=ta();const Ur=Sn(na),ge={token:"/lxwork/api/auth/token",permissionTicket:"/lxwork/api/auth/create-permission-ticket",authToken:"/sso/realms/myrealm/protocol/openid-connect/token",refreshToken:"/lxwork/api/auth/refresh",userGroup:"/lxwork/api/auth/users/groups",groups:"/lxwork/api/auth/groups",allCompany:"/lxwork/api/auth/groups/branch"};let Mr=0;async function ve(e,r){const t=await fetch(e,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+fe.getToken()},...r||{}});if(!t.ok){console.dir(t,await t.json());const o=localStorage.getItem("APPID");if(t.status===401&&o&&Mr<10)return Mr+=1,await new fe({APPID:o}).SSOLogin(),await ve(e,r);throw new Error(`HTTP error! status: ${t.status}`)}return Mr=0,await t.json()}const he=()=>({getTokenInfo:e=>ve(`${ge.token}?${Ur.stringify(e)}`),createPermissionTicket:e=>ve(`${ge.permissionTicket}`,{method:"POST",body:JSON.stringify(e)}),getAuthTokenInfo:e=>{const r=new URLSearchParams;return r.append("grant_type",e.grant_type),r.append("ticket",e.ticket),ve(`${ge.authToken}`,{method:"POST",body:r,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Bearer "+fe.getToken()}})},refreshAuthToken:()=>ve(`${ge.refreshToken}`,{}),getCompanyList:()=>ve(`${ge.allCompany}`,{}),getUserGroupList:()=>ve(`${ge.userGroup}`,{}),getGroupDetail:({id:e})=>ve(`${ge.groups}/${e}`)});function Lr(e){try{const t=new URL(e).hostname,o=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,s=/^\[?([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\]?$/;return!!(o.test(t)||s.test(t))}catch{return!1}}function un(e){const r={};return new URL(e).searchParams.forEach((o,s)=>{r[s]=o}),r}function aa(e,r){const t=e.indexOf(r);return t!==-1?e.substring(0,t):e}function ln(e){const r=window.location.href,t=new URL(r),o=new URLSearchParams(t.search);e.forEach(s=>{o.delete(s)}),t.search=o.toString(),window.history.pushState({},"",t.href)}class ke extends Error{}ke.prototype.name="InvalidTokenError";function oa(e){return decodeURIComponent(atob(e).replace(/(.)/g,(r,t)=>{let o=t.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function ia(e){let r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return oa(r)}catch{return atob(r)}}function ua(e,r){if(typeof e!="string")throw new ke("Invalid token specified: must be a string");r||(r={});const t=r.header===!0?0:1,o=e.split(".")[t];if(typeof o!="string")throw new ke(`Invalid token specified: missing part #${t+1}`);let s;try{s=ia(o)}catch(y){throw new ke(`Invalid token specified: invalid base64 for part #${t+1} (${y.message})`)}try{return JSON.parse(s)}catch(y){throw new ke(`Invalid token specified: invalid json for part #${t+1} (${y.message})`)}}class fe{constructor({APPID:r}){et(this,"APPID");this.APPID=r,localStorage.setItem("APPID",this.APPID)}async SSOLogin(){const r=un(location.href),t=["state","code","iss","session_state"],o=t.length;if(Object.keys(r).length!==o){this.login();return}let s=[],y=0;for(;y<o;)Object.keys(r).includes(t[y])&&s.length<=o?s.push(t[y]):s=[],y++;if(s.length===o){fe.removeToken();let O;const v=ne.getItem("login_redirect_uri"),{code:R,state:w}=r;try{O=await he().getTokenInfo({code:R,client_id:this.APPID,state:w,redirect_uri:v}),this.setToken(O);const{ticket:h}=await he().createPermissionTicket({client_id:this.APPID}),m=await he().getAuthTokenInfo({grant_type:"urn:ietf:params:oauth:grant-type:uma-ticket",ticket:h});this.setToken(m,"auth"),ln(t)}catch{fe.removeToken(),window.location.href=v}}else{this.login();return}}login(){const{href:r,origin:t}=window.location,o={redirect_uri:r,client_id:this.APPID,scope:"openid"};ne.setItem("login_redirect_uri",o.redirect_uri),Lr(t)&&window.location.hostname!=="localhost"&&(o.keycloak_host=t+"/sso/");let s=`/lxwork/api/auth/login?${Ur.stringify(o)}`;window.location.replace(s)}logout(){const{href:r,origin:t}=window.location,{id_token:o}=fe.getTokenInfo()||{};fe.removeToken(),ne.removeItem("login_redirect_uri");const s={id_token_hint:o,post_logout_redirect_uri:r};Lr(t)&&window.location.hostname!=="localhost"&&(s.keycloak_host=t+"/sso/");let y=`/lxwork/api/auth/endsession?${Ur.stringify(s)}`;window.location.href=y}setToken(r,t){if(t==="auth"){const o=ne.getItem("SSO-tokenInfo");!r.id_token&&o&&(r.id_token=o.id_token),ne.setItem("tokenInfo",r)}else ne.setItem("SSO-tokenInfo",r)}async getCompanyList(){return await he().getCompanyList()}async getUserBranchGroup(){const r=await he().getUserGroupList(),t=r.find(y=>y.attributes.type.includes("3"));if(t)return t.name;const o=async y=>{if(y.attributes.type.includes("3"))return y.name;if(y.parentId){const O=await he().getGroupDetail({id:y.parentId});if(O)return o(O)}return""};let s="";for(let y=0;y<r.length&&(s=await o(r[y]),!s);y+=1);return s}async refreshToken(r){const{exp:t}=fe.getDecodeToken(),o=Date.now()/1e3;if(r||o>t-200&&o<t){const s=await he().refreshAuthToken();this.setToken(s),this.setToken(s,"auth")}}static getTokenInfo(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const t=ne.getItem("SSO-tokenInfo");return ne.getItem("tokenInfo")||t||null}static getToken(){const r=fe.getTokenInfo();return r==null?void 0:r.access_token}static getRefreshToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const t=ne.getItem("SSO-tokenInfo"),o=ne.getItem("tokenInfo");return(o==null?void 0:o.refresh_token)||(t==null?void 0:t.refresh_token)||""}static getDecodeToken(){const r=fe.getToken();return ua(r)}static removeToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");ne.removeItem("tokenInfo"),ne.removeItem("SSO-tokenInfo")}}exports.AuthLogin=fe;exports.LocalStorageUtil=ne;exports.Tree=Kt;exports.getUrlParams=un;exports.isIpAddress=Lr;exports.removeUrlParam=ln;exports.subBefore=aa;exports.useSSOApi=he;
25
+ `+a.prev}function xe(n,a){var F=ie(n),U=[];if(F){U.length=n.length;for(var j=0;j<n.length;j++)U[j]=re(n,j)?a(n[j],n):""}var D=typeof I=="function"?I(n):[],ye;if(W){ye={};for(var me=0;me<D.length;me++)ye["$"+D[me]]=D[me]}for(var te in n)re(n,te)&&(F&&String(Number(te))===te&&te<n.length||W&&ye["$"+te]instanceof Symbol||(A.call(/[^\w$]/,te)?U.push(a(te,n)+": "+a(n[te],n)):U.push(te+": "+a(n[te],n))));if(typeof I=="function")for(var de=0;de<D.length;de++)ae.call(n,D[de])&&U.push("["+a(D[de])+"]: "+a(n[D[de]],n));return U}return Je}var Ye,ut;function In(){if(ut)return Ye;ut=1;var e=Fe(),r=Oe(),t=function(v,R,w){for(var h=v,m;(m=h.next)!=null;h=m)if(m.key===R)return h.next=m.next,w||(m.next=v.next,v.next=m),m},o=function(v,R){if(v){var w=t(v,R);return w&&w.value}},s=function(v,R,w){var h=t(v,R);h?h.value=w:v.next={key:R,next:v.next,value:w}},y=function(v,R){return v?!!t(v,R):!1},O=function(v,R){if(v)return t(v,R,!0)};return Ye=function(){var R,w={assert:function(h){if(!w.has(h))throw new r("Side channel does not contain "+e(h))},delete:function(h){var m=R&&R.next,g=O(R,h);return g&&m&&m===g&&(R=void 0),!!g},get:function(h){return o(R,h)},has:function(h){return y(R,h)},set:function(h,m){R||(R={next:void 0}),s(R,h,m)}};return w},Ye}var Ke,lt;function Qt(){return lt||(lt=1,Ke=Object),Ke}var Qe,ft;function _n(){return ft||(ft=1,Qe=Error),Qe}var Xe,ct;function Tn(){return ct||(ct=1,Xe=EvalError),Xe}var Ze,st;function kn(){return st||(st=1,Ze=RangeError),Ze}var er,pt;function xn(){return pt||(pt=1,er=ReferenceError),er}var rr,yt;function Dn(){return yt||(yt=1,rr=SyntaxError),rr}var tr,dt;function $n(){return dt||(dt=1,tr=URIError),tr}var nr,vt;function qn(){return vt||(vt=1,nr=Math.abs),nr}var ar,ht;function Nn(){return ht||(ht=1,ar=Math.floor),ar}var or,mt;function Fn(){return mt||(mt=1,or=Math.max),or}var ir,gt;function Cn(){return gt||(gt=1,ir=Math.min),ir}var ur,St;function Mn(){return St||(St=1,ur=Math.pow),ur}var lr,wt;function Un(){return wt||(wt=1,lr=Math.round),lr}var fr,bt;function Ln(){return bt||(bt=1,fr=Number.isNaN||function(r){return r!==r}),fr}var cr,Pt;function Bn(){if(Pt)return cr;Pt=1;var e=Ln();return cr=function(t){return e(t)||t===0?t:t<0?-1:1},cr}var sr,At;function jn(){return At||(At=1,sr=Object.getOwnPropertyDescriptor),sr}var pr,Et;function Xt(){if(Et)return pr;Et=1;var e=jn();if(e)try{e([],"length")}catch{e=null}return pr=e,pr}var yr,Ot;function Wn(){if(Ot)return yr;Ot=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return yr=e,yr}var dr,Rt;function Gn(){return Rt||(Rt=1,dr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),o=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;r[t]=s;for(var y in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var O=Object.getOwnPropertySymbols(r);if(O.length!==1||O[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(r,t);if(v.value!==s||v.enumerable!==!0)return!1}return!0}),dr}var vr,It;function zn(){if(It)return vr;It=1;var e=typeof Symbol<"u"&&Symbol,r=Gn();return vr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:r()},vr}var hr,_t;function Zt(){return _t||(_t=1,hr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),hr}var mr,Tt;function en(){if(Tt)return mr;Tt=1;var e=Qt();return mr=e.getPrototypeOf||null,mr}var gr,kt;function Hn(){if(kt)return gr;kt=1;var e="Function.prototype.bind called on incompatible ",r=Object.prototype.toString,t=Math.max,o="[object Function]",s=function(R,w){for(var h=[],m=0;m<R.length;m+=1)h[m]=R[m];for(var g=0;g<w.length;g+=1)h[g+R.length]=w[g];return h},y=function(R,w){for(var h=[],m=w,g=0;m<R.length;m+=1,g+=1)h[g]=R[m];return h},O=function(v,R){for(var w="",h=0;h<v.length;h+=1)w+=v[h],h+1<v.length&&(w+=R);return w};return gr=function(R){var w=this;if(typeof w!="function"||r.apply(w)!==o)throw new TypeError(e+w);for(var h=y(arguments,1),m,g=function(){if(this instanceof m){var u=w.apply(this,s(h,arguments));return Object(u)===u?u:this}return w.apply(R,s(h,arguments))},f=t(0,w.length-h.length),p=[],b=0;b<f;b++)p[b]="$"+b;if(m=Function("binder","return function ("+O(p,",")+"){ return binder.apply(this,arguments); }")(g),w.prototype){var i=function(){};i.prototype=w.prototype,m.prototype=new i,i.prototype=null}return m},gr}var Sr,xt;function Ce(){if(xt)return Sr;xt=1;var e=Hn();return Sr=Function.prototype.bind||e,Sr}var wr,Dt;function Br(){return Dt||(Dt=1,wr=Function.prototype.call),wr}var br,$t;function rn(){return $t||($t=1,br=Function.prototype.apply),br}var Pr,qt;function Vn(){return qt||(qt=1,Pr=typeof Reflect<"u"&&Reflect&&Reflect.apply),Pr}var Ar,Nt;function Jn(){if(Nt)return Ar;Nt=1;var e=Ce(),r=rn(),t=Br(),o=Vn();return Ar=o||e.call(t,r),Ar}var Er,Ft;function tn(){if(Ft)return Er;Ft=1;var e=Ce(),r=Oe(),t=Br(),o=Jn();return Er=function(y){if(y.length<1||typeof y[0]!="function")throw new r("a function is required");return o(e,t,y)},Er}var Or,Ct;function Yn(){if(Ct)return Or;Ct=1;var e=tn(),r=Xt(),t;try{t=[].__proto__===Array.prototype}catch(O){if(!O||typeof O!="object"||!("code"in O)||O.code!=="ERR_PROTO_ACCESS")throw O}var o=!!t&&r&&r(Object.prototype,"__proto__"),s=Object,y=s.getPrototypeOf;return Or=o&&typeof o.get=="function"?e([o.get]):typeof y=="function"?function(v){return y(v==null?v:s(v))}:!1,Or}var Rr,Mt;function Kn(){if(Mt)return Rr;Mt=1;var e=Zt(),r=en(),t=Yn();return Rr=e?function(s){return e(s)}:r?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return r(s)}:t?function(s){return t(s)}:null,Rr}var Ir,Ut;function Qn(){if(Ut)return Ir;Ut=1;var e=Function.prototype.call,r=Object.prototype.hasOwnProperty,t=Ce();return Ir=t.call(e,r),Ir}var _r,Lt;function jr(){if(Lt)return _r;Lt=1;var e,r=Qt(),t=_n(),o=Tn(),s=kn(),y=xn(),O=Dn(),v=Oe(),R=$n(),w=qn(),h=Nn(),m=Fn(),g=Cn(),f=Mn(),p=Un(),b=Bn(),i=Function,u=function(G){try{return i('"use strict"; return ('+G+").constructor;")()}catch{}},l=Xt(),S=Wn(),d=function(){throw new v},P=l?function(){try{return arguments.callee,d}catch{try{return l(arguments,"callee").get}catch{return d}}}():d,A=zn()(),E=Kn(),T=en(),q=Zt(),k=rn(),C=Br(),I={},J=typeof Uint8Array>"u"||!E?e:E(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":t,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&E?E(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":O,"%ThrowTypeError%":P,"%TypedArray%":J,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":R,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":k,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":T,"%Math.abs%":w,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":f,"%Math.round%":p,"%Math.sign%":b,"%Reflect.getPrototypeOf%":q};if(E)try{null.error}catch(G){var K=E(E(G));W["%Error.prototype%"]=K}var ae=function G($){var z;if($==="%AsyncFunction%")z=u("async function () {}");else if($==="%GeneratorFunction%")z=u("function* () {}");else if($==="%AsyncGeneratorFunction%")z=u("async function* () {}");else if($==="%AsyncGenerator%"){var M=G("%AsyncGeneratorFunction%");M&&(z=M.prototype)}else if($==="%AsyncIteratorPrototype%"){var V=G("%AsyncGenerator%");V&&E&&(z=E(V.prototype))}return W[$]=z,z},oe={__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"]},x=Ce(),Q=Qn(),c=x.call(C,Array.prototype.concat),_=x.call(k,Array.prototype.splice),N=x.call(C,String.prototype.replace),L=x.call(C,String.prototype.slice),Y=x.call(C,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,X=/\\(\\)?/g,ie=function($){var z=L($,0,1),M=L($,-1);if(z==="%"&&M!=="%")throw new O("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&z!=="%")throw new O("invalid intrinsic syntax, expected opening `%`");var V=[];return N($,H,function(Z,ue,ee,re){V[V.length]=ee?N(re,X,"$1"):ue||Z}),V},B=function($,z){var M=$,V;if(Q(oe,M)&&(V=oe[M],M="%"+V[0]+"%"),Q(W,M)){var Z=W[M];if(Z===I&&(Z=ae(M)),typeof Z>"u"&&!z)throw new v("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:V,name:M,value:Z}}throw new O("intrinsic "+$+" does not exist!")};return _r=function($,z){if(typeof $!="string"||$.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!="boolean")throw new v('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,$)===null)throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=ie($),V=M.length>0?M[0]:"",Z=B("%"+V+"%",z),ue=Z.name,ee=Z.value,re=!1,le=Z.alias;le&&(V=le[0],_(M,c([0,1],le)));for(var Se=1,pe=!0;Se<M.length;Se+=1){var ce=M[Se],we=L(ce,0,1),be=L(ce,-1);if((we==='"'||we==="'"||we==="`"||be==='"'||be==="'"||be==="`")&&we!==be)throw new O("property names with quotes must have matching quotes");if((ce==="constructor"||!pe)&&(re=!0),V+="."+ce,ue="%"+V+"%",Q(W,ue))ee=W[ue];else if(ee!=null){if(!(ce in ee)){if(!z)throw new v("base intrinsic for "+$+" exists, but the property is not available.");return}if(l&&Se+1>=M.length){var Pe=l(ee,ce);pe=!!Pe,pe&&"get"in Pe&&!("originalValue"in Pe.get)?ee=Pe.get:ee=ee[ce]}else pe=Q(ee,ce),ee=ee[ce];pe&&!re&&(W[ue]=ee)}}return ee},_r}var Tr,Bt;function nn(){if(Bt)return Tr;Bt=1;var e=jr(),r=tn(),t=r([e("%String.prototype.indexOf%")]);return Tr=function(s,y){var O=e(s,!!y);return typeof O=="function"&&t(s,".prototype.")>-1?r([O]):O},Tr}var kr,jt;function an(){if(jt)return kr;jt=1;var e=jr(),r=nn(),t=Fe(),o=Oe(),s=e("%Map%",!0),y=r("Map.prototype.get",!0),O=r("Map.prototype.set",!0),v=r("Map.prototype.has",!0),R=r("Map.prototype.delete",!0),w=r("Map.prototype.size",!0);return kr=!!s&&function(){var m,g={assert:function(f){if(!g.has(f))throw new o("Side channel does not contain "+t(f))},delete:function(f){if(m){var p=R(m,f);return w(m)===0&&(m=void 0),p}return!1},get:function(f){if(m)return y(m,f)},has:function(f){return m?v(m,f):!1},set:function(f,p){m||(m=new s),O(m,f,p)}};return g},kr}var xr,Wt;function Xn(){if(Wt)return xr;Wt=1;var e=jr(),r=nn(),t=Fe(),o=an(),s=Oe(),y=e("%WeakMap%",!0),O=r("WeakMap.prototype.get",!0),v=r("WeakMap.prototype.set",!0),R=r("WeakMap.prototype.has",!0),w=r("WeakMap.prototype.delete",!0);return xr=y?function(){var m,g,f={assert:function(p){if(!f.has(p))throw new s("Side channel does not contain "+t(p))},delete:function(p){if(y&&p&&(typeof p=="object"||typeof p=="function")){if(m)return w(m,p)}else if(o&&g)return g.delete(p);return!1},get:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?O(m,p):g&&g.get(p)},has:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?R(m,p):!!g&&g.has(p)},set:function(p,b){y&&p&&(typeof p=="object"||typeof p=="function")?(m||(m=new y),v(m,p,b)):o&&(g||(g=o()),g.set(p,b))}};return f}:o,xr}var Dr,Gt;function Zn(){if(Gt)return Dr;Gt=1;var e=Oe(),r=Fe(),t=In(),o=an(),s=Xn(),y=s||o||t;return Dr=function(){var v,R={assert:function(w){if(!R.has(w))throw new e("Side channel does not contain "+r(w))},delete:function(w){return!!v&&v.delete(w)},get:function(w){return v&&v.get(w)},has:function(w){return!!v&&v.has(w)},set:function(w,h){v||(v=y()),v.set(w,h)}};return R},Dr}var $r,zt;function Wr(){if(zt)return $r;zt=1;var e=String.prototype.replace,r=/%20/g,t={RFC1738:"RFC1738",RFC3986:"RFC3986"};return $r={default:t.RFC3986,formatters:{RFC1738:function(o){return e.call(o,r,"+")},RFC3986:function(o){return String(o)}},RFC1738:t.RFC1738,RFC3986:t.RFC3986},$r}var qr,Ht;function on(){if(Ht)return qr;Ht=1;var e=Wr(),r=Object.prototype.hasOwnProperty,t=Array.isArray,o=function(){for(var i=[],u=0;u<256;++u)i.push("%"+((u<16?"0":"")+u.toString(16)).toUpperCase());return i}(),s=function(u){for(;u.length>1;){var l=u.pop(),S=l.obj[l.prop];if(t(S)){for(var d=[],P=0;P<S.length;++P)typeof S[P]<"u"&&d.push(S[P]);l.obj[l.prop]=d}}},y=function(u,l){for(var S=l&&l.plainObjects?{__proto__:null}:{},d=0;d<u.length;++d)typeof u[d]<"u"&&(S[d]=u[d]);return S},O=function i(u,l,S){if(!l)return u;if(typeof l!="object"&&typeof l!="function"){if(t(u))u.push(l);else if(u&&typeof u=="object")(S&&(S.plainObjects||S.allowPrototypes)||!r.call(Object.prototype,l))&&(u[l]=!0);else return[u,l];return u}if(!u||typeof u!="object")return[u].concat(l);var d=u;return t(u)&&!t(l)&&(d=y(u,S)),t(u)&&t(l)?(l.forEach(function(P,A){if(r.call(u,A)){var E=u[A];E&&typeof E=="object"&&P&&typeof P=="object"?u[A]=i(E,P,S):u.push(P)}else u[A]=P}),u):Object.keys(l).reduce(function(P,A){var E=l[A];return r.call(P,A)?P[A]=i(P[A],E,S):P[A]=E,P},d)},v=function(u,l){return Object.keys(l).reduce(function(S,d){return S[d]=l[d],S},u)},R=function(i,u,l){var S=i.replace(/\+/g," ");if(l==="iso-8859-1")return S.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(S)}catch{return S}},w=1024,h=function(u,l,S,d,P){if(u.length===0)return u;var A=u;if(typeof u=="symbol"?A=Symbol.prototype.toString.call(u):typeof u!="string"&&(A=String(u)),S==="iso-8859-1")return escape(A).replace(/%u[0-9a-f]{4}/gi,function(J){return"%26%23"+parseInt(J.slice(2),16)+"%3B"});for(var E="",T=0;T<A.length;T+=w){for(var q=A.length>=w?A.slice(T,T+w):A,k=[],C=0;C<q.length;++C){var I=q.charCodeAt(C);if(I===45||I===46||I===95||I===126||I>=48&&I<=57||I>=65&&I<=90||I>=97&&I<=122||P===e.RFC1738&&(I===40||I===41)){k[k.length]=q.charAt(C);continue}if(I<128){k[k.length]=o[I];continue}if(I<2048){k[k.length]=o[192|I>>6]+o[128|I&63];continue}if(I<55296||I>=57344){k[k.length]=o[224|I>>12]+o[128|I>>6&63]+o[128|I&63];continue}C+=1,I=65536+((I&1023)<<10|q.charCodeAt(C)&1023),k[k.length]=o[240|I>>18]+o[128|I>>12&63]+o[128|I>>6&63]+o[128|I&63]}E+=k.join("")}return E},m=function(u){for(var l=[{obj:{o:u},prop:"o"}],S=[],d=0;d<l.length;++d)for(var P=l[d],A=P.obj[P.prop],E=Object.keys(A),T=0;T<E.length;++T){var q=E[T],k=A[q];typeof k=="object"&&k!==null&&S.indexOf(k)===-1&&(l.push({obj:A,prop:q}),S.push(k))}return s(l),u},g=function(u){return Object.prototype.toString.call(u)==="[object RegExp]"},f=function(u){return!u||typeof u!="object"?!1:!!(u.constructor&&u.constructor.isBuffer&&u.constructor.isBuffer(u))},p=function(u,l){return[].concat(u,l)},b=function(u,l){if(t(u)){for(var S=[],d=0;d<u.length;d+=1)S.push(l(u[d]));return S}return l(u)};return qr={arrayToObject:y,assign:v,combine:p,compact:m,decode:R,encode:h,isBuffer:f,isRegExp:g,maybeMap:b,merge:O},qr}var Nr,Vt;function ea(){if(Vt)return Nr;Vt=1;var e=Zn(),r=on(),t=Wr(),o=Object.prototype.hasOwnProperty,s={brackets:function(i){return i+"[]"},comma:"comma",indices:function(i,u){return i+"["+u+"]"},repeat:function(i){return i}},y=Array.isArray,O=Array.prototype.push,v=function(b,i){O.apply(b,y(i)?i:[i])},R=Date.prototype.toISOString,w=t.default,h={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:w,formatter:t.formatters[w],indices:!1,serializeDate:function(i){return R.call(i)},skipNulls:!1,strictNullHandling:!1},m=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint"},g={},f=function b(i,u,l,S,d,P,A,E,T,q,k,C,I,J,W,K,ae,oe){for(var x=i,Q=oe,c=0,_=!1;(Q=Q.get(g))!==void 0&&!_;){var N=Q.get(i);if(c+=1,typeof N<"u"){if(N===c)throw new RangeError("Cyclic object value");_=!0}typeof Q.get(g)>"u"&&(c=0)}if(typeof q=="function"?x=q(u,x):x instanceof Date?x=I(x):l==="comma"&&y(x)&&(x=r.maybeMap(x,function(ue){return ue instanceof Date?I(ue):ue})),x===null){if(P)return T&&!K?T(u,h.encoder,ae,"key",J):u;x=""}if(m(x)||r.isBuffer(x)){if(T){var L=K?u:T(u,h.encoder,ae,"key",J);return[W(L)+"="+W(T(x,h.encoder,ae,"value",J))]}return[W(u)+"="+W(String(x))]}var Y=[];if(typeof x>"u")return Y;var H;if(l==="comma"&&y(x))K&&T&&(x=r.maybeMap(x,T)),H=[{value:x.length>0?x.join(",")||null:void 0}];else if(y(q))H=q;else{var X=Object.keys(x);H=k?X.sort(k):X}var ie=E?String(u).replace(/\./g,"%2E"):String(u),B=S&&y(x)&&x.length===1?ie+"[]":ie;if(d&&y(x)&&x.length===0)return B+"[]";for(var G=0;G<H.length;++G){var $=H[G],z=typeof $=="object"&&$&&typeof $.value<"u"?$.value:x[$];if(!(A&&z===null)){var M=C&&E?String($).replace(/\./g,"%2E"):String($),V=y(x)?typeof l=="function"?l(B,M):B:B+(C?"."+M:"["+M+"]");oe.set(i,c);var Z=e();Z.set(g,oe),v(Y,b(z,V,l,S,d,P,A,E,l==="comma"&&K&&y(x)?null:T,q,k,C,I,J,W,K,ae,Z))}}return Y},p=function(i){if(!i)return h;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.encodeDotInKeys<"u"&&typeof i.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(i.encoder!==null&&typeof i.encoder<"u"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var u=i.charset||h.charset;if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var l=t.default;if(typeof i.format<"u"){if(!o.call(t.formatters,i.format))throw new TypeError("Unknown format option provided.");l=i.format}var S=t.formatters[l],d=h.filter;(typeof i.filter=="function"||y(i.filter))&&(d=i.filter);var P;if(i.arrayFormat in s?P=i.arrayFormat:"indices"in i?P=i.indices?"indices":"repeat":P=h.arrayFormat,"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var A=typeof i.allowDots>"u"?i.encodeDotInKeys===!0?!0:h.allowDots:!!i.allowDots;return{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:h.addQueryPrefix,allowDots:A,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:P,charset:u,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!i.commaRoundTrip,delimiter:typeof i.delimiter>"u"?h.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:h.encode,encodeDotInKeys:typeof i.encodeDotInKeys=="boolean"?i.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof i.encoder=="function"?i.encoder:h.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:h.encodeValuesOnly,filter:d,format:l,formatter:S,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:h.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:h.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:h.strictNullHandling}};return Nr=function(b,i){var u=b,l=p(i),S,d;typeof l.filter=="function"?(d=l.filter,u=d("",u)):y(l.filter)&&(d=l.filter,S=d);var P=[];if(typeof u!="object"||u===null)return"";var A=s[l.arrayFormat],E=A==="comma"&&l.commaRoundTrip;S||(S=Object.keys(u)),l.sort&&S.sort(l.sort);for(var T=e(),q=0;q<S.length;++q){var k=S[q],C=u[k];l.skipNulls&&C===null||v(P,f(C,k,A,E,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,T))}var I=P.join(l.delimiter),J=l.addQueryPrefix===!0?"?":"";return l.charsetSentinel&&(l.charset==="iso-8859-1"?J+="utf8=%26%2310003%3B&":J+="utf8=%E2%9C%93&"),I.length>0?J+I:""},Nr}var Fr,Jt;function ra(){if(Jt)return Fr;Jt=1;var e=on(),r=Object.prototype.hasOwnProperty,t=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(g){return g.replace(/&#(\d+);/g,function(f,p){return String.fromCharCode(parseInt(p,10))})},y=function(g,f,p){if(g&&typeof g=="string"&&f.comma&&g.indexOf(",")>-1)return g.split(",");if(f.throwOnLimitExceeded&&p>=f.arrayLimit)throw new RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");return g},O="utf8=%26%2310003%3B",v="utf8=%E2%9C%93",R=function(f,p){var b={__proto__:null},i=p.ignoreQueryPrefix?f.replace(/^\?/,""):f;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=p.parameterLimit===1/0?void 0:p.parameterLimit,l=i.split(p.delimiter,p.throwOnLimitExceeded?u+1:u);if(p.throwOnLimitExceeded&&l.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(u===1?"":"s")+" allowed.");var S=-1,d,P=p.charset;if(p.charsetSentinel)for(d=0;d<l.length;++d)l[d].indexOf("utf8=")===0&&(l[d]===v?P="utf-8":l[d]===O&&(P="iso-8859-1"),S=d,d=l.length);for(d=0;d<l.length;++d)if(d!==S){var A=l[d],E=A.indexOf("]="),T=E===-1?A.indexOf("="):E+1,q,k;T===-1?(q=p.decoder(A,o.decoder,P,"key"),k=p.strictNullHandling?null:""):(q=p.decoder(A.slice(0,T),o.decoder,P,"key"),k=e.maybeMap(y(A.slice(T+1),p,t(b[q])?b[q].length:0),function(I){return p.decoder(I,o.decoder,P,"value")})),k&&p.interpretNumericEntities&&P==="iso-8859-1"&&(k=s(String(k))),A.indexOf("[]=")>-1&&(k=t(k)?[k]:k);var C=r.call(b,q);C&&p.duplicates==="combine"?b[q]=e.combine(b[q],k):(!C||p.duplicates==="last")&&(b[q]=k)}return b},w=function(g,f,p,b){var i=0;if(g.length>0&&g[g.length-1]==="[]"){var u=g.slice(0,-1).join("");i=Array.isArray(f)&&f[u]?f[u].length:0}for(var l=b?f:y(f,p,i),S=g.length-1;S>=0;--S){var d,P=g[S];if(P==="[]"&&p.parseArrays)d=p.allowEmptyArrays&&(l===""||p.strictNullHandling&&l===null)?[]:e.combine([],l);else{d=p.plainObjects?{__proto__:null}:{};var A=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,E=p.decodeDotInKeys?A.replace(/%2E/g,"."):A,T=parseInt(E,10);!p.parseArrays&&E===""?d={0:l}:!isNaN(T)&&P!==E&&String(T)===E&&T>=0&&p.parseArrays&&T<=p.arrayLimit?(d=[],d[T]=l):E!=="__proto__"&&(d[E]=l)}l=d}return l},h=function(f,p,b,i){if(f){var u=b.allowDots?f.replace(/\.([^.[]+)/g,"[$1]"):f,l=/(\[[^[\]]*])/,S=/(\[[^[\]]*])/g,d=b.depth>0&&l.exec(u),P=d?u.slice(0,d.index):u,A=[];if(P){if(!b.plainObjects&&r.call(Object.prototype,P)&&!b.allowPrototypes)return;A.push(P)}for(var E=0;b.depth>0&&(d=S.exec(u))!==null&&E<b.depth;){if(E+=1,!b.plainObjects&&r.call(Object.prototype,d[1].slice(1,-1))&&!b.allowPrototypes)return;A.push(d[1])}if(d){if(b.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+b.depth+" and strictDepth is true");A.push("["+u.slice(d.index)+"]")}return w(A,p,b,i)}},m=function(f){if(!f)return o;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.decodeDotInKeys<"u"&&typeof f.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(f.decoder!==null&&typeof f.decoder<"u"&&typeof f.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof f.throwOnLimitExceeded<"u"&&typeof f.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var p=typeof f.charset>"u"?o.charset:f.charset,b=typeof f.duplicates>"u"?o.duplicates:f.duplicates;if(b!=="combine"&&b!=="first"&&b!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof f.allowDots>"u"?f.decodeDotInKeys===!0?!0:o.allowDots:!!f.allowDots;return{allowDots:i,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:typeof f.allowPrototypes=="boolean"?f.allowPrototypes:o.allowPrototypes,allowSparse:typeof f.allowSparse=="boolean"?f.allowSparse:o.allowSparse,arrayLimit:typeof f.arrayLimit=="number"?f.arrayLimit:o.arrayLimit,charset:p,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:o.charsetSentinel,comma:typeof f.comma=="boolean"?f.comma:o.comma,decodeDotInKeys:typeof f.decodeDotInKeys=="boolean"?f.decodeDotInKeys:o.decodeDotInKeys,decoder:typeof f.decoder=="function"?f.decoder:o.decoder,delimiter:typeof f.delimiter=="string"||e.isRegExp(f.delimiter)?f.delimiter:o.delimiter,depth:typeof f.depth=="number"||f.depth===!1?+f.depth:o.depth,duplicates:b,ignoreQueryPrefix:f.ignoreQueryPrefix===!0,interpretNumericEntities:typeof f.interpretNumericEntities=="boolean"?f.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof f.parameterLimit=="number"?f.parameterLimit:o.parameterLimit,parseArrays:f.parseArrays!==!1,plainObjects:typeof f.plainObjects=="boolean"?f.plainObjects:o.plainObjects,strictDepth:typeof f.strictDepth=="boolean"?!!f.strictDepth:o.strictDepth,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:typeof f.throwOnLimitExceeded=="boolean"?f.throwOnLimitExceeded:!1}};return Fr=function(g,f){var p=m(f);if(g===""||g===null||typeof g>"u")return p.plainObjects?{__proto__:null}:{};for(var b=typeof g=="string"?R(g,p):g,i=p.plainObjects?{__proto__:null}:{},u=Object.keys(b),l=0;l<u.length;++l){var S=u[l],d=h(S,b[S],p,typeof g=="string");i=e.merge(i,d,p)}return p.allowSparse===!0?i:e.compact(i)},Fr}var Cr,Yt;function ta(){if(Yt)return Cr;Yt=1;var e=ea(),r=ra(),t=Wr();return Cr={formats:t,parse:r,stringify:e},Cr}var na=ta();const Ur=Sn(na),ge={token:"/lxwork/api/auth/token",permissionTicket:"/lxwork/api/auth/create-permission-ticket",authToken:"/sso/realms/myrealm/protocol/openid-connect/token",refreshToken:"/lxwork/api/auth/refresh",userGroup:"/lxwork/api/auth/users/groups",groups:"/lxwork/api/auth/groups",allCompany:"/lxwork/api/auth/groups/branch"};let Mr=0;async function ve(e,r){const t=await fetch(e,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+fe.getToken()},...r||{}});if(!t.ok){console.dir(t,await t.json());const o=localStorage.getItem("APPID");if(t.status===401&&o&&Mr<10)return Mr+=1,await new fe({APPID:o}).SSOLogin(),await ve(e,r);throw new Error(`HTTP error! status: ${t.status}`)}return Mr=0,await t.json()}const he=()=>({getTokenInfo:e=>ve(`${ge.token}?${Ur.stringify(e)}`),createPermissionTicket:e=>ve(`${ge.permissionTicket}`,{method:"POST",body:JSON.stringify(e)}),getAuthTokenInfo:e=>{const r=new URLSearchParams;return r.append("grant_type",e.grant_type),r.append("ticket",e.ticket),ve(`${ge.authToken}`,{method:"POST",body:r,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Bearer "+fe.getToken()}})},refreshAuthToken:()=>ve(`${ge.refreshToken}`,{}),getCompanyList:()=>ve(`${ge.allCompany}`,{}),getUserGroupList:()=>ve(`${ge.userGroup}`,{}),getGroupDetail:({id:e})=>ve(`${ge.groups}/${e}`)});function Lr(e){try{const t=new URL(e).hostname,o=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,s=/^\[?([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\]?$/;return!!(o.test(t)||s.test(t))}catch{return!1}}function un(e){const r={};return new URL(e).searchParams.forEach((o,s)=>{r[s]=o}),r}function aa(e,r){const t=e.indexOf(r);return t!==-1?e.substring(0,t):e}function ln(e){const r=window.location.href,t=new URL(r),o=new URLSearchParams(t.search);e.forEach(s=>{o.delete(s)}),t.search=o.toString(),window.history.pushState({},"",t.href)}class ke extends Error{}ke.prototype.name="InvalidTokenError";function oa(e){return decodeURIComponent(atob(e).replace(/(.)/g,(r,t)=>{let o=t.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function ia(e){let r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return oa(r)}catch{return atob(r)}}function ua(e,r){if(typeof e!="string")throw new ke("Invalid token specified: must be a string");r||(r={});const t=r.header===!0?0:1,o=e.split(".")[t];if(typeof o!="string")throw new ke(`Invalid token specified: missing part #${t+1}`);let s;try{s=ia(o)}catch(y){throw new ke(`Invalid token specified: invalid base64 for part #${t+1} (${y.message})`)}try{return JSON.parse(s)}catch(y){throw new ke(`Invalid token specified: invalid json for part #${t+1} (${y.message})`)}}class fe{constructor({APPID:r}){et(this,"APPID");this.APPID=r,localStorage.setItem("APPID",this.APPID)}async SSOLogin(){const r=un(location.href),t=["state","code","iss","session_state"],o=t.length;if(Object.keys(r).length!==o){this.login();return}let s=[],y=0;for(;y<o;)Object.keys(r).includes(t[y])&&s.length<=o?s.push(t[y]):s=[],y++;if(s.length===o){fe.removeToken();let O;const v=ne.getItem("login_redirect_uri"),{code:R,state:w}=r;try{O=await he().getTokenInfo({code:R,client_id:this.APPID,state:w,redirect_uri:v}),this.setToken(O);const{ticket:h}=await he().createPermissionTicket({client_id:this.APPID}),m=await he().getAuthTokenInfo({grant_type:"urn:ietf:params:oauth:grant-type:uma-ticket",ticket:h});this.setToken(m,"auth"),ln(t)}catch{fe.removeToken(),window.location.href=v}}else{this.login();return}}login(){const{href:r,origin:t}=window.location,o={redirect_uri:r,client_id:this.APPID,scope:"openid"};ne.setItem("login_redirect_uri",o.redirect_uri),Lr(t)&&window.location.hostname!=="localhost"&&(o.keycloak_host=t+"/sso/");let s=`/lxwork/api/auth/login?${Ur.stringify(o)}`;window.location.replace(s)}logout(){const{href:r,origin:t}=window.location,{id_token:o}=fe.getTokenInfo()||{};ne.removeItem("login_redirect_uri");const s={id_token_hint:o,post_logout_redirect_uri:r};Lr(t)&&window.location.hostname!=="localhost"&&(s.keycloak_host=t+"/sso/");let y=`/lxwork/api/auth/endsession?${Ur.stringify(s)}`;fe.removeToken(),window.location.href=y}setToken(r,t){if(t==="auth"){const o=ne.getItem("SSO-tokenInfo");!r.id_token&&o&&(r.id_token=o.id_token),ne.setItem("tokenInfo",r)}else ne.setItem("SSO-tokenInfo",r)}async getCompanyList(){return await he().getCompanyList()}async getUserBranchGroup(){const r=await he().getUserGroupList(),t=r.find(y=>y.attributes.type.includes("3"));if(t)return t.name;const o=async y=>{if(y.attributes.type.includes("3"))return y.name;if(y.parentId){const O=await he().getGroupDetail({id:y.parentId});if(O)return o(O)}return""};let s="";for(let y=0;y<r.length&&(s=await o(r[y]),!s);y+=1);return s}async refreshToken(r){const{exp:t}=fe.getDecodeToken(),o=Date.now()/1e3;if(r||o>t-200&&o<t){const s=await he().refreshAuthToken();this.setToken(s),this.setToken(s,"auth")}}static getTokenInfo(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const t=ne.getItem("SSO-tokenInfo");return ne.getItem("tokenInfo")||t||null}static getToken(){const r=fe.getTokenInfo();return r==null?void 0:r.access_token}static getRefreshToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const t=ne.getItem("SSO-tokenInfo"),o=ne.getItem("tokenInfo");return(o==null?void 0:o.refresh_token)||(t==null?void 0:t.refresh_token)||""}static getDecodeToken(){const r=fe.getToken();return ua(r)}static removeToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");ne.removeItem("tokenInfo"),ne.removeItem("SSO-tokenInfo")}}exports.AuthLogin=fe;exports.LocalStorageUtil=ne;exports.Tree=Kt;exports.getUrlParams=un;exports.isIpAddress=Lr;exports.removeUrlParam=ln;exports.subBefore=aa;exports.useSSOApi=he;
@@ -2103,14 +2103,14 @@ class se {
2103
2103
  */
2104
2104
  logout() {
2105
2105
  const { href: r, origin: t } = window.location, { id_token: o } = se.getTokenInfo() || {};
2106
- se.removeToken(), le.removeItem("login_redirect_uri");
2106
+ le.removeItem("login_redirect_uri");
2107
2107
  const s = {
2108
2108
  id_token_hint: o,
2109
2109
  post_logout_redirect_uri: r
2110
2110
  };
2111
2111
  Yt(t) && window.location.hostname !== "localhost" && (s.keycloak_host = t + "/sso/");
2112
2112
  let y = `/lxwork/api/auth/endsession?${Lr.stringify(s)}`;
2113
- window.location.href = y;
2113
+ se.removeToken(), window.location.href = y;
2114
2114
  }
2115
2115
  /**
2116
2116
  * 存储Token信息
@@ -22,4 +22,4 @@ React keys must be passed directly to JSX without using spread:
22
22
  <%s key={someKey} {...props} />`,L,B,G,B),X[B+L]=!0)}if(B=null,N!==void 0&&(r(N),B=""+N),O(_)&&(r(_.key),B=""+_.key),"key"in _){N={};for(var $ in _)$!=="key"&&(N[$]=_[$])}else N=_;return B&&v(N,typeof c=="function"?c.displayName||c.name||"Unknown":c),w(c,B,H,Y,s(),N,Z,le)}function m(c){typeof c=="object"&&c!==null&&c.$$typeof===f&&c._store&&(c._store.validated=1)}var g=ye,f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),S=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),C=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,J=Array.isArray,W=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(c){return c()}};var Q,ie={},ue=g["react-stack-bottom-frame"].bind(g,y)(),x=W(o(y)),X={};ke.Fragment=b,ke.jsx=function(c,_,N,L,Y){var H=1e4>C.recentlyCreatedOwnerStacks++;return h(c,_,N,!1,L,Y,H?Error("react-stack-top-frame"):ue,H?W(o(c)):x)},ke.jsxs=function(c,_,N,L,Y){var H=1e4>C.recentlyCreatedOwnerStacks++;return h(c,_,N,!0,L,Y,H?Error("react-stack-top-frame"):ue,H?W(o(c)):x)}}()),ke}var Yr;function vn(){return Yr||(Yr=1,process.env.NODE_ENV==="production"?qe.exports=yn():qe.exports=dn()),qe.exports}var Ne=vn();const Kr=({data:e,onChange:t})=>Ne.jsx("div",{children:e.map(r=>Ne.jsxs("div",{className:"tree-node",children:[Ne.jsx("input",{type:"checkbox",checked:r.selected,disabled:r.disabled,onChange:()=>t==null?void 0:t(r)}),r.name,r.children&&Ne.jsx(Kr,{data:r.children,onChange:t})]},r.id))});class ne{static setItem(t,r){const o=localStorage.getItem("APPID");typeof r=="object"?localStorage.setItem(o+"-"+t,JSON.stringify(r)):localStorage.setItem(o+"-"+t,r)}static getItem(t){const r=localStorage.getItem("APPID"),o=localStorage.getItem(r+"-"+t);if(o)try{return JSON.parse(o)}catch{return o}return null}static removeItem(t){const r=localStorage.getItem("APPID");localStorage.removeItem(r+"-"+t)}static clear(){const t=localStorage.getItem("APPID");Object.keys(localStorage).forEach(r=>{r.startsWith(t+"-")&&localStorage.removeItem(r)})}static clearAll(){localStorage.clear()}}var Be,Qr;function Pe(){return Qr||(Qr=1,Be=TypeError),Be}const hn=pn(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var je,Xr;function Fe(){if(Xr)return je;Xr=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,o=e&&Map.prototype.forEach,s=typeof Set=="function"&&Set.prototype,y=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,O=s&&y&&typeof y.get=="function"?y.get:null,v=s&&Set.prototype.forEach,R=typeof WeakMap=="function"&&WeakMap.prototype,w=R?WeakMap.prototype.has:null,h=typeof WeakSet=="function"&&WeakSet.prototype,m=h?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,f=g?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,b=Object.prototype.toString,i=Function.prototype.toString,u=String.prototype.match,l=String.prototype.slice,S=String.prototype.replace,d=String.prototype.toUpperCase,P=String.prototype.toLowerCase,A=RegExp.prototype.test,E=Array.prototype.concat,T=Array.prototype.join,q=Array.prototype.slice,k=Math.floor,C=typeof BigInt=="function"?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,J=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,W=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Q=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===W||!0)?Symbol.toStringTag:null,ie=Object.prototype.propertyIsEnumerable,ue=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function x(n,a){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||A.call(/e/,a))return a;var F=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var U=n<0?-k(-n):k(n);if(U!==n){var j=String(U),D=l.call(a,j.length+1);return S.call(j,F,"$&_")+"."+S.call(S.call(D,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(a,F,"$&_")}var X=hn,c=X.custom,_=ee(c)?c:null,N={__proto__:null,double:'"',single:"'"},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};je=function n(a,F,U,j){var D=F||{};if(te(D,"quoteStyle")&&!te(N,D.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(te(D,"maxStringLength")&&(typeof D.maxStringLength=="number"?D.maxStringLength<0&&D.maxStringLength!==1/0:D.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var me=te(D,"customInspect")?D.customInspect:!0;if(typeof me!="boolean"&&me!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(te(D,"indent")&&D.indent!==null&&D.indent!==" "&&!(parseInt(D.indent,10)===D.indent&&D.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(te(D,"numericSeparator")&&typeof D.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var be=D.numericSeparator;if(typeof a>"u")return"undefined";if(a===null)return"null";if(typeof a=="boolean")return a?"true":"false";if(typeof a=="string")return Zt(a,D);if(typeof a=="number"){if(a===0)return 1/0/a>0?"0":"-0";var ae=String(a);return be?x(a,ae):ae}if(typeof a=="bigint"){var ge=String(a)+"n";return be?x(a,ge):ge}var Lr=typeof D.depth>"u"?5:D.depth;if(typeof U>"u"&&(U=0),U>=Lr&&Lr>0&&typeof a=="object")return le(a)?"[Array]":"[Object]";var Ie=ta(D,U);if(typeof j>"u")j=[];else if(he(j,a)>=0)return"[Circular]";function pe(_e,Le,aa){if(Le&&(j=q.call(j),j.push(Le)),aa){var fn={depth:D.depth};return te(D,"quoteStyle")&&(fn.quoteStyle=D.quoteStyle),n(_e,fn,U+1,j)}return n(_e,D,U+1,j)}if(typeof a=="function"&&!G(a)){var rn=Ae(a),tn=Me(a,pe);return"[Function"+(rn?": "+rn:" (anonymous)")+"]"+(tn.length>0?" { "+T.call(tn,", ")+" }":"")}if(ee(a)){var nn=W?S.call(String(a),/^(Symbol\(.*\))_[^)]*$/,"$1"):J.call(a);return typeof a=="object"&&!W?De(nn):nn}if(Zn(a)){for(var $e="<"+P.call(String(a.nodeName)),Br=a.attributes||[],Ue=0;Ue<Br.length;Ue++)$e+=" "+Br[Ue].name+"="+Y(H(Br[Ue].value),"double",D);return $e+=">",a.childNodes&&a.childNodes.length&&($e+="..."),$e+="</"+P.call(String(a.nodeName))+">",$e}if(le(a)){if(a.length===0)return"[]";var jr=Me(a,pe);return Ie&&!ra(jr)?"["+Ur(jr,Ie)+"]":"[ "+T.call(jr,", ")+" ]"}if($(a)){var Wr=Me(a,pe);return!("cause"in Error.prototype)&&"cause"in a&&!ie.call(a,"cause")?"{ ["+String(a)+"] "+T.call(E.call("[cause]: "+pe(a.cause),Wr),", ")+" }":Wr.length===0?"["+String(a)+"]":"{ ["+String(a)+"] "+T.call(Wr,", ")+" }"}if(typeof a=="object"&&me){if(_&&typeof a[_]=="function"&&X)return X(a,{depth:Lr-U});if(me!=="symbol"&&typeof a.inspect=="function")return a.inspect()}if(se(a)){var an=[];return o&&o.call(a,function(_e,Le){an.push(pe(Le,a,!0)+" => "+pe(_e,a))}),en("Map",r.call(a),an,Ie)}if(Re(a)){var on=[];return v&&v.call(a,function(_e){on.push(pe(_e,a))}),en("Set",O.call(a),on,Ie)}if(Ee(a))return Mr("WeakMap");if(Xn(a))return Mr("WeakSet");if(Oe(a))return Mr("WeakRef");if(M(a))return De(pe(Number(a)));if(fe(a))return De(pe(C.call(a)));if(V(a))return De(p.call(a));if(z(a))return De(pe(String(a)));if(typeof window<"u"&&a===window)return"{ [object Window] }";if(typeof globalThis<"u"&&a===globalThis||typeof Se<"u"&&a===Se)return"{ [object globalThis] }";if(!B(a)&&!G(a)){var Gr=Me(a,pe),un=ue?ue(a)===Object.prototype:a instanceof Object||a.constructor===Object,zr=a instanceof Object?"":"null prototype",ln=!un&&Q&&Object(a)===a&&Q in a?l.call(ce(a),8,-1):zr?"Object":"",na=un||typeof a.constructor!="function"?"":a.constructor.name?a.constructor.name+" ":"",Hr=na+(ln||zr?"["+T.call(E.call([],ln||[],zr||[]),": ")+"] ":"");return Gr.length===0?Hr+"{}":Ie?Hr+"{"+Ur(Gr,Ie)+"}":Hr+"{ "+T.call(Gr,", ")+" }"}return String(a)};function Y(n,a,F){var U=F.quoteStyle||a,j=N[U];return j+n+j}function H(n){return S.call(String(n),/"/g,"&quot;")}function Z(n){return!Q||!(typeof n=="object"&&(Q in n||typeof n[Q]<"u"))}function le(n){return ce(n)==="[object Array]"&&Z(n)}function B(n){return ce(n)==="[object Date]"&&Z(n)}function G(n){return ce(n)==="[object RegExp]"&&Z(n)}function $(n){return ce(n)==="[object Error]"&&Z(n)}function z(n){return ce(n)==="[object String]"&&Z(n)}function M(n){return ce(n)==="[object Number]"&&Z(n)}function V(n){return ce(n)==="[object Boolean]"&&Z(n)}function ee(n){if(W)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!J)return!1;try{return J.call(n),!0}catch{}return!1}function fe(n){if(!n||typeof n!="object"||!C)return!1;try{return C.call(n),!0}catch{}return!1}var re=Object.prototype.hasOwnProperty||function(n){return n in this};function te(n,a){return re.call(n,a)}function ce(n){return b.call(n)}function Ae(n){if(n.name)return n.name;var a=u.call(i.call(n),/^function\s*([\w$]+)/);return a?a[1]:null}function he(n,a){if(n.indexOf)return n.indexOf(a);for(var F=0,U=n.length;F<U;F++)if(n[F]===a)return F;return-1}function se(n){if(!r||!n||typeof n!="object")return!1;try{r.call(n);try{O.call(n)}catch{return!0}return n instanceof Map}catch{}return!1}function Ee(n){if(!w||!n||typeof n!="object")return!1;try{w.call(n,w);try{m.call(n,m)}catch{return!0}return n instanceof WeakMap}catch{}return!1}function Oe(n){if(!f||!n||typeof n!="object")return!1;try{return f.call(n),!0}catch{}return!1}function Re(n){if(!O||!n||typeof n!="object")return!1;try{O.call(n);try{r.call(n)}catch{return!0}return n instanceof Set}catch{}return!1}function Xn(n){if(!m||!n||typeof n!="object")return!1;try{m.call(n,m);try{w.call(n,w)}catch{return!0}return n instanceof WeakSet}catch{}return!1}function Zn(n){return!n||typeof n!="object"?!1:typeof HTMLElement<"u"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function Zt(n,a){if(n.length>a.maxStringLength){var F=n.length-a.maxStringLength,U="... "+F+" more character"+(F>1?"s":"");return Zt(l.call(n,0,a.maxStringLength),a)+U}var j=L[a.quoteStyle||"single"];j.lastIndex=0;var D=S.call(S.call(n,j,"\\$1"),/[\x00-\x1f]/g,ea);return Y(D,"single",a)}function ea(n){var a=n.charCodeAt(0),F={8:"b",9:"t",10:"n",12:"f",13:"r"}[a];return F?"\\"+F:"\\x"+(a<16?"0":"")+d.call(a.toString(16))}function De(n){return"Object("+n+")"}function Mr(n){return n+" { ? }"}function en(n,a,F,U){var j=U?Ur(F,U):T.call(F,", ");return n+" ("+a+") {"+j+"}"}function ra(n){for(var a=0;a<n.length;a++)if(he(n[a],`
23
23
  `)>=0)return!1;return!0}function ta(n,a){var F;if(n.indent===" ")F=" ";else if(typeof n.indent=="number"&&n.indent>0)F=T.call(Array(n.indent+1)," ");else return null;return{base:F,prev:T.call(Array(a+1),F)}}function Ur(n,a){if(n.length===0)return"";var F=`
24
24
  `+a.prev+a.base;return F+T.call(n,","+F)+`
25
- `+a.prev}function Me(n,a){var F=le(n),U=[];if(F){U.length=n.length;for(var j=0;j<n.length;j++)U[j]=te(n,j)?a(n[j],n):""}var D=typeof I=="function"?I(n):[],me;if(W){me={};for(var be=0;be<D.length;be++)me["$"+D[be]]=D[be]}for(var ae in n)te(n,ae)&&(F&&String(Number(ae))===ae&&ae<n.length||W&&me["$"+ae]instanceof Symbol||(A.call(/[^\w$]/,ae)?U.push(a(ae,n)+": "+a(n[ae],n)):U.push(ae+": "+a(n[ae],n))));if(typeof I=="function")for(var ge=0;ge<D.length;ge++)ie.call(n,D[ge])&&U.push("["+a(D[ge])+"]: "+a(n[D[ge]],n));return U}return je}var We,Zr;function mn(){if(Zr)return We;Zr=1;var e=Fe(),t=Pe(),r=function(v,R,w){for(var h=v,m;(m=h.next)!=null;h=m)if(m.key===R)return h.next=m.next,w||(m.next=v.next,v.next=m),m},o=function(v,R){if(v){var w=r(v,R);return w&&w.value}},s=function(v,R,w){var h=r(v,R);h?h.value=w:v.next={key:R,next:v.next,value:w}},y=function(v,R){return v?!!r(v,R):!1},O=function(v,R){if(v)return r(v,R,!0)};return We=function(){var R,w={assert:function(h){if(!w.has(h))throw new t("Side channel does not contain "+e(h))},delete:function(h){var m=R&&R.next,g=O(R,h);return g&&m&&m===g&&(R=void 0),!!g},get:function(h){return o(R,h)},has:function(h){return y(R,h)},set:function(h,m){R||(R={next:void 0}),s(R,h,m)}};return w},We}var Ge,et;function rt(){return et||(et=1,Ge=Object),Ge}var ze,tt;function gn(){return tt||(tt=1,ze=Error),ze}var He,nt;function Sn(){return nt||(nt=1,He=EvalError),He}var Ve,at;function wn(){return at||(at=1,Ve=RangeError),Ve}var Je,ot;function bn(){return ot||(ot=1,Je=ReferenceError),Je}var Ye,it;function Pn(){return it||(it=1,Ye=SyntaxError),Ye}var Ke,ut;function An(){return ut||(ut=1,Ke=URIError),Ke}var Qe,lt;function En(){return lt||(lt=1,Qe=Math.abs),Qe}var Xe,ft;function On(){return ft||(ft=1,Xe=Math.floor),Xe}var Ze,ct;function Rn(){return ct||(ct=1,Ze=Math.max),Ze}var er,st;function In(){return st||(st=1,er=Math.min),er}var rr,pt;function _n(){return pt||(pt=1,rr=Math.pow),rr}var tr,yt;function Tn(){return yt||(yt=1,tr=Math.round),tr}var nr,dt;function kn(){return dt||(dt=1,nr=Number.isNaN||function(t){return t!==t}),nr}var ar,vt;function xn(){if(vt)return ar;vt=1;var e=kn();return ar=function(r){return e(r)||r===0?r:r<0?-1:1},ar}var or,ht;function Dn(){return ht||(ht=1,or=Object.getOwnPropertyDescriptor),or}var ir,mt;function gt(){if(mt)return ir;mt=1;var e=Dn();if(e)try{e([],"length")}catch{e=null}return ir=e,ir}var ur,St;function $n(){if(St)return ur;St=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return ur=e,ur}var lr,wt;function qn(){return wt||(wt=1,lr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[r]=s;for(var y in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var O=Object.getOwnPropertySymbols(t);if(O.length!==1||O[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(t,r);if(v.value!==s||v.enumerable!==!0)return!1}return!0}),lr}var fr,bt;function Nn(){if(bt)return fr;bt=1;var e=typeof Symbol<"u"&&Symbol,t=qn();return fr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},fr}var cr,Pt;function At(){return Pt||(Pt=1,cr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),cr}var sr,Et;function Ot(){if(Et)return sr;Et=1;var e=rt();return sr=e.getPrototypeOf||null,sr}var pr,Rt;function Fn(){if(Rt)return pr;Rt=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,o="[object Function]",s=function(R,w){for(var h=[],m=0;m<R.length;m+=1)h[m]=R[m];for(var g=0;g<w.length;g+=1)h[g+R.length]=w[g];return h},y=function(R,w){for(var h=[],m=w,g=0;m<R.length;m+=1,g+=1)h[g]=R[m];return h},O=function(v,R){for(var w="",h=0;h<v.length;h+=1)w+=v[h],h+1<v.length&&(w+=R);return w};return pr=function(R){var w=this;if(typeof w!="function"||t.apply(w)!==o)throw new TypeError(e+w);for(var h=y(arguments,1),m,g=function(){if(this instanceof m){var u=w.apply(this,s(h,arguments));return Object(u)===u?u:this}return w.apply(R,s(h,arguments))},f=r(0,w.length-h.length),p=[],b=0;b<f;b++)p[b]="$"+b;if(m=Function("binder","return function ("+O(p,",")+"){ return binder.apply(this,arguments); }")(g),w.prototype){var i=function(){};i.prototype=w.prototype,m.prototype=new i,i.prototype=null}return m},pr}var yr,It;function Ce(){if(It)return yr;It=1;var e=Fn();return yr=Function.prototype.bind||e,yr}var dr,_t;function vr(){return _t||(_t=1,dr=Function.prototype.call),dr}var hr,Tt;function kt(){return Tt||(Tt=1,hr=Function.prototype.apply),hr}var mr,xt;function Cn(){return xt||(xt=1,mr=typeof Reflect<"u"&&Reflect&&Reflect.apply),mr}var gr,Dt;function Mn(){if(Dt)return gr;Dt=1;var e=Ce(),t=kt(),r=vr(),o=Cn();return gr=o||e.call(r,t),gr}var Sr,$t;function qt(){if($t)return Sr;$t=1;var e=Ce(),t=Pe(),r=vr(),o=Mn();return Sr=function(y){if(y.length<1||typeof y[0]!="function")throw new t("a function is required");return o(e,r,y)},Sr}var wr,Nt;function Un(){if(Nt)return wr;Nt=1;var e=qt(),t=gt(),r;try{r=[].__proto__===Array.prototype}catch(O){if(!O||typeof O!="object"||!("code"in O)||O.code!=="ERR_PROTO_ACCESS")throw O}var o=!!r&&t&&t(Object.prototype,"__proto__"),s=Object,y=s.getPrototypeOf;return wr=o&&typeof o.get=="function"?e([o.get]):typeof y=="function"?function(v){return y(v==null?v:s(v))}:!1,wr}var br,Ft;function Ln(){if(Ft)return br;Ft=1;var e=At(),t=Ot(),r=Un();return br=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:r?function(s){return r(s)}:null,br}var Pr,Ct;function Bn(){if(Ct)return Pr;Ct=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Ce();return Pr=r.call(e,t),Pr}var Ar,Mt;function Er(){if(Mt)return Ar;Mt=1;var e,t=rt(),r=gn(),o=Sn(),s=wn(),y=bn(),O=Pn(),v=Pe(),R=An(),w=En(),h=On(),m=Rn(),g=In(),f=_n(),p=Tn(),b=xn(),i=Function,u=function(G){try{return i('"use strict"; return ('+G+").constructor;")()}catch{}},l=gt(),S=$n(),d=function(){throw new v},P=l?function(){try{return arguments.callee,d}catch{try{return l(arguments,"callee").get}catch{return d}}}():d,A=Nn()(),E=Ln(),T=Ot(),q=At(),k=kt(),C=vr(),I={},J=typeof Uint8Array>"u"||!E?e:E(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&E?E(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":O,"%ThrowTypeError%":P,"%TypedArray%":J,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":R,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":k,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":T,"%Math.abs%":w,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":f,"%Math.round%":p,"%Math.sign%":b,"%Reflect.getPrototypeOf%":q};if(E)try{null.error}catch(G){var Q=E(E(G));W["%Error.prototype%"]=Q}var ie=function G($){var z;if($==="%AsyncFunction%")z=u("async function () {}");else if($==="%GeneratorFunction%")z=u("function* () {}");else if($==="%AsyncGeneratorFunction%")z=u("async function* () {}");else if($==="%AsyncGenerator%"){var M=G("%AsyncGeneratorFunction%");M&&(z=M.prototype)}else if($==="%AsyncIteratorPrototype%"){var V=G("%AsyncGenerator%");V&&E&&(z=E(V.prototype))}return W[$]=z,z},ue={__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"]},x=Ce(),X=Bn(),c=x.call(C,Array.prototype.concat),_=x.call(k,Array.prototype.splice),N=x.call(C,String.prototype.replace),L=x.call(C,String.prototype.slice),Y=x.call(C,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,le=function($){var z=L($,0,1),M=L($,-1);if(z==="%"&&M!=="%")throw new O("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&z!=="%")throw new O("invalid intrinsic syntax, expected opening `%`");var V=[];return N($,H,function(ee,fe,re,te){V[V.length]=re?N(te,Z,"$1"):fe||ee}),V},B=function($,z){var M=$,V;if(X(ue,M)&&(V=ue[M],M="%"+V[0]+"%"),X(W,M)){var ee=W[M];if(ee===I&&(ee=ie(M)),typeof ee>"u"&&!z)throw new v("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:V,name:M,value:ee}}throw new O("intrinsic "+$+" does not exist!")};return Ar=function($,z){if(typeof $!="string"||$.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!="boolean")throw new v('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,$)===null)throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=le($),V=M.length>0?M[0]:"",ee=B("%"+V+"%",z),fe=ee.name,re=ee.value,te=!1,ce=ee.alias;ce&&(V=ce[0],_(M,c([0,1],ce)));for(var Ae=1,he=!0;Ae<M.length;Ae+=1){var se=M[Ae],Ee=L(se,0,1),Oe=L(se,-1);if((Ee==='"'||Ee==="'"||Ee==="`"||Oe==='"'||Oe==="'"||Oe==="`")&&Ee!==Oe)throw new O("property names with quotes must have matching quotes");if((se==="constructor"||!he)&&(te=!0),V+="."+se,fe="%"+V+"%",X(W,fe))re=W[fe];else if(re!=null){if(!(se in re)){if(!z)throw new v("base intrinsic for "+$+" exists, but the property is not available.");return}if(l&&Ae+1>=M.length){var Re=l(re,se);he=!!Re,he&&"get"in Re&&!("originalValue"in Re.get)?re=Re.get:re=re[se]}else he=X(re,se),re=re[se];he&&!te&&(W[fe]=re)}}return re},Ar}var Or,Ut;function Lt(){if(Ut)return Or;Ut=1;var e=Er(),t=qt(),r=t([e("%String.prototype.indexOf%")]);return Or=function(s,y){var O=e(s,!!y);return typeof O=="function"&&r(s,".prototype.")>-1?t([O]):O},Or}var Rr,Bt;function jt(){if(Bt)return Rr;Bt=1;var e=Er(),t=Lt(),r=Fe(),o=Pe(),s=e("%Map%",!0),y=t("Map.prototype.get",!0),O=t("Map.prototype.set",!0),v=t("Map.prototype.has",!0),R=t("Map.prototype.delete",!0),w=t("Map.prototype.size",!0);return Rr=!!s&&function(){var m,g={assert:function(f){if(!g.has(f))throw new o("Side channel does not contain "+r(f))},delete:function(f){if(m){var p=R(m,f);return w(m)===0&&(m=void 0),p}return!1},get:function(f){if(m)return y(m,f)},has:function(f){return m?v(m,f):!1},set:function(f,p){m||(m=new s),O(m,f,p)}};return g},Rr}var Ir,Wt;function jn(){if(Wt)return Ir;Wt=1;var e=Er(),t=Lt(),r=Fe(),o=jt(),s=Pe(),y=e("%WeakMap%",!0),O=t("WeakMap.prototype.get",!0),v=t("WeakMap.prototype.set",!0),R=t("WeakMap.prototype.has",!0),w=t("WeakMap.prototype.delete",!0);return Ir=y?function(){var m,g,f={assert:function(p){if(!f.has(p))throw new s("Side channel does not contain "+r(p))},delete:function(p){if(y&&p&&(typeof p=="object"||typeof p=="function")){if(m)return w(m,p)}else if(o&&g)return g.delete(p);return!1},get:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?O(m,p):g&&g.get(p)},has:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?R(m,p):!!g&&g.has(p)},set:function(p,b){y&&p&&(typeof p=="object"||typeof p=="function")?(m||(m=new y),v(m,p,b)):o&&(g||(g=o()),g.set(p,b))}};return f}:o,Ir}var _r,Gt;function Wn(){if(Gt)return _r;Gt=1;var e=Pe(),t=Fe(),r=mn(),o=jt(),s=jn(),y=s||o||r;return _r=function(){var v,R={assert:function(w){if(!R.has(w))throw new e("Side channel does not contain "+t(w))},delete:function(w){return!!v&&v.delete(w)},get:function(w){return v&&v.get(w)},has:function(w){return!!v&&v.has(w)},set:function(w,h){v||(v=y()),v.set(w,h)}};return R},_r}var Tr,zt;function kr(){if(zt)return Tr;zt=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Tr={default:r.RFC3986,formatters:{RFC1738:function(o){return e.call(o,t,"+")},RFC3986:function(o){return String(o)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},Tr}var xr,Ht;function Vt(){if(Ht)return xr;Ht=1;var e=kr(),t=Object.prototype.hasOwnProperty,r=Array.isArray,o=function(){for(var i=[],u=0;u<256;++u)i.push("%"+((u<16?"0":"")+u.toString(16)).toUpperCase());return i}(),s=function(u){for(;u.length>1;){var l=u.pop(),S=l.obj[l.prop];if(r(S)){for(var d=[],P=0;P<S.length;++P)typeof S[P]<"u"&&d.push(S[P]);l.obj[l.prop]=d}}},y=function(u,l){for(var S=l&&l.plainObjects?{__proto__:null}:{},d=0;d<u.length;++d)typeof u[d]<"u"&&(S[d]=u[d]);return S},O=function i(u,l,S){if(!l)return u;if(typeof l!="object"&&typeof l!="function"){if(r(u))u.push(l);else if(u&&typeof u=="object")(S&&(S.plainObjects||S.allowPrototypes)||!t.call(Object.prototype,l))&&(u[l]=!0);else return[u,l];return u}if(!u||typeof u!="object")return[u].concat(l);var d=u;return r(u)&&!r(l)&&(d=y(u,S)),r(u)&&r(l)?(l.forEach(function(P,A){if(t.call(u,A)){var E=u[A];E&&typeof E=="object"&&P&&typeof P=="object"?u[A]=i(E,P,S):u.push(P)}else u[A]=P}),u):Object.keys(l).reduce(function(P,A){var E=l[A];return t.call(P,A)?P[A]=i(P[A],E,S):P[A]=E,P},d)},v=function(u,l){return Object.keys(l).reduce(function(S,d){return S[d]=l[d],S},u)},R=function(i,u,l){var S=i.replace(/\+/g," ");if(l==="iso-8859-1")return S.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(S)}catch{return S}},w=1024,h=function(u,l,S,d,P){if(u.length===0)return u;var A=u;if(typeof u=="symbol"?A=Symbol.prototype.toString.call(u):typeof u!="string"&&(A=String(u)),S==="iso-8859-1")return escape(A).replace(/%u[0-9a-f]{4}/gi,function(J){return"%26%23"+parseInt(J.slice(2),16)+"%3B"});for(var E="",T=0;T<A.length;T+=w){for(var q=A.length>=w?A.slice(T,T+w):A,k=[],C=0;C<q.length;++C){var I=q.charCodeAt(C);if(I===45||I===46||I===95||I===126||I>=48&&I<=57||I>=65&&I<=90||I>=97&&I<=122||P===e.RFC1738&&(I===40||I===41)){k[k.length]=q.charAt(C);continue}if(I<128){k[k.length]=o[I];continue}if(I<2048){k[k.length]=o[192|I>>6]+o[128|I&63];continue}if(I<55296||I>=57344){k[k.length]=o[224|I>>12]+o[128|I>>6&63]+o[128|I&63];continue}C+=1,I=65536+((I&1023)<<10|q.charCodeAt(C)&1023),k[k.length]=o[240|I>>18]+o[128|I>>12&63]+o[128|I>>6&63]+o[128|I&63]}E+=k.join("")}return E},m=function(u){for(var l=[{obj:{o:u},prop:"o"}],S=[],d=0;d<l.length;++d)for(var P=l[d],A=P.obj[P.prop],E=Object.keys(A),T=0;T<E.length;++T){var q=E[T],k=A[q];typeof k=="object"&&k!==null&&S.indexOf(k)===-1&&(l.push({obj:A,prop:q}),S.push(k))}return s(l),u},g=function(u){return Object.prototype.toString.call(u)==="[object RegExp]"},f=function(u){return!u||typeof u!="object"?!1:!!(u.constructor&&u.constructor.isBuffer&&u.constructor.isBuffer(u))},p=function(u,l){return[].concat(u,l)},b=function(u,l){if(r(u)){for(var S=[],d=0;d<u.length;d+=1)S.push(l(u[d]));return S}return l(u)};return xr={arrayToObject:y,assign:v,combine:p,compact:m,decode:R,encode:h,isBuffer:f,isRegExp:g,maybeMap:b,merge:O},xr}var Dr,Jt;function Gn(){if(Jt)return Dr;Jt=1;var e=Wn(),t=Vt(),r=kr(),o=Object.prototype.hasOwnProperty,s={brackets:function(i){return i+"[]"},comma:"comma",indices:function(i,u){return i+"["+u+"]"},repeat:function(i){return i}},y=Array.isArray,O=Array.prototype.push,v=function(b,i){O.apply(b,y(i)?i:[i])},R=Date.prototype.toISOString,w=r.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:w,formatter:r.formatters[w],indices:!1,serializeDate:function(i){return R.call(i)},skipNulls:!1,strictNullHandling:!1},m=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint"},g={},f=function b(i,u,l,S,d,P,A,E,T,q,k,C,I,J,W,Q,ie,ue){for(var x=i,X=ue,c=0,_=!1;(X=X.get(g))!==void 0&&!_;){var N=X.get(i);if(c+=1,typeof N<"u"){if(N===c)throw new RangeError("Cyclic object value");_=!0}typeof X.get(g)>"u"&&(c=0)}if(typeof q=="function"?x=q(u,x):x instanceof Date?x=I(x):l==="comma"&&y(x)&&(x=t.maybeMap(x,function(fe){return fe instanceof Date?I(fe):fe})),x===null){if(P)return T&&!Q?T(u,h.encoder,ie,"key",J):u;x=""}if(m(x)||t.isBuffer(x)){if(T){var L=Q?u:T(u,h.encoder,ie,"key",J);return[W(L)+"="+W(T(x,h.encoder,ie,"value",J))]}return[W(u)+"="+W(String(x))]}var Y=[];if(typeof x>"u")return Y;var H;if(l==="comma"&&y(x))Q&&T&&(x=t.maybeMap(x,T)),H=[{value:x.length>0?x.join(",")||null:void 0}];else if(y(q))H=q;else{var Z=Object.keys(x);H=k?Z.sort(k):Z}var le=E?String(u).replace(/\./g,"%2E"):String(u),B=S&&y(x)&&x.length===1?le+"[]":le;if(d&&y(x)&&x.length===0)return B+"[]";for(var G=0;G<H.length;++G){var $=H[G],z=typeof $=="object"&&$&&typeof $.value<"u"?$.value:x[$];if(!(A&&z===null)){var M=C&&E?String($).replace(/\./g,"%2E"):String($),V=y(x)?typeof l=="function"?l(B,M):B:B+(C?"."+M:"["+M+"]");ue.set(i,c);var ee=e();ee.set(g,ue),v(Y,b(z,V,l,S,d,P,A,E,l==="comma"&&Q&&y(x)?null:T,q,k,C,I,J,W,Q,ie,ee))}}return Y},p=function(i){if(!i)return h;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.encodeDotInKeys<"u"&&typeof i.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(i.encoder!==null&&typeof i.encoder<"u"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var u=i.charset||h.charset;if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var l=r.default;if(typeof i.format<"u"){if(!o.call(r.formatters,i.format))throw new TypeError("Unknown format option provided.");l=i.format}var S=r.formatters[l],d=h.filter;(typeof i.filter=="function"||y(i.filter))&&(d=i.filter);var P;if(i.arrayFormat in s?P=i.arrayFormat:"indices"in i?P=i.indices?"indices":"repeat":P=h.arrayFormat,"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var A=typeof i.allowDots>"u"?i.encodeDotInKeys===!0?!0:h.allowDots:!!i.allowDots;return{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:h.addQueryPrefix,allowDots:A,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:P,charset:u,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!i.commaRoundTrip,delimiter:typeof i.delimiter>"u"?h.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:h.encode,encodeDotInKeys:typeof i.encodeDotInKeys=="boolean"?i.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof i.encoder=="function"?i.encoder:h.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:h.encodeValuesOnly,filter:d,format:l,formatter:S,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:h.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:h.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:h.strictNullHandling}};return Dr=function(b,i){var u=b,l=p(i),S,d;typeof l.filter=="function"?(d=l.filter,u=d("",u)):y(l.filter)&&(d=l.filter,S=d);var P=[];if(typeof u!="object"||u===null)return"";var A=s[l.arrayFormat],E=A==="comma"&&l.commaRoundTrip;S||(S=Object.keys(u)),l.sort&&S.sort(l.sort);for(var T=e(),q=0;q<S.length;++q){var k=S[q],C=u[k];l.skipNulls&&C===null||v(P,f(C,k,A,E,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,T))}var I=P.join(l.delimiter),J=l.addQueryPrefix===!0?"?":"";return l.charsetSentinel&&(l.charset==="iso-8859-1"?J+="utf8=%26%2310003%3B&":J+="utf8=%E2%9C%93&"),I.length>0?J+I:""},Dr}var $r,Yt;function zn(){if(Yt)return $r;Yt=1;var e=Vt(),t=Object.prototype.hasOwnProperty,r=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(g){return g.replace(/&#(\d+);/g,function(f,p){return String.fromCharCode(parseInt(p,10))})},y=function(g,f,p){if(g&&typeof g=="string"&&f.comma&&g.indexOf(",")>-1)return g.split(",");if(f.throwOnLimitExceeded&&p>=f.arrayLimit)throw new RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");return g},O="utf8=%26%2310003%3B",v="utf8=%E2%9C%93",R=function(f,p){var b={__proto__:null},i=p.ignoreQueryPrefix?f.replace(/^\?/,""):f;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=p.parameterLimit===1/0?void 0:p.parameterLimit,l=i.split(p.delimiter,p.throwOnLimitExceeded?u+1:u);if(p.throwOnLimitExceeded&&l.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(u===1?"":"s")+" allowed.");var S=-1,d,P=p.charset;if(p.charsetSentinel)for(d=0;d<l.length;++d)l[d].indexOf("utf8=")===0&&(l[d]===v?P="utf-8":l[d]===O&&(P="iso-8859-1"),S=d,d=l.length);for(d=0;d<l.length;++d)if(d!==S){var A=l[d],E=A.indexOf("]="),T=E===-1?A.indexOf("="):E+1,q,k;T===-1?(q=p.decoder(A,o.decoder,P,"key"),k=p.strictNullHandling?null:""):(q=p.decoder(A.slice(0,T),o.decoder,P,"key"),k=e.maybeMap(y(A.slice(T+1),p,r(b[q])?b[q].length:0),function(I){return p.decoder(I,o.decoder,P,"value")})),k&&p.interpretNumericEntities&&P==="iso-8859-1"&&(k=s(String(k))),A.indexOf("[]=")>-1&&(k=r(k)?[k]:k);var C=t.call(b,q);C&&p.duplicates==="combine"?b[q]=e.combine(b[q],k):(!C||p.duplicates==="last")&&(b[q]=k)}return b},w=function(g,f,p,b){var i=0;if(g.length>0&&g[g.length-1]==="[]"){var u=g.slice(0,-1).join("");i=Array.isArray(f)&&f[u]?f[u].length:0}for(var l=b?f:y(f,p,i),S=g.length-1;S>=0;--S){var d,P=g[S];if(P==="[]"&&p.parseArrays)d=p.allowEmptyArrays&&(l===""||p.strictNullHandling&&l===null)?[]:e.combine([],l);else{d=p.plainObjects?{__proto__:null}:{};var A=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,E=p.decodeDotInKeys?A.replace(/%2E/g,"."):A,T=parseInt(E,10);!p.parseArrays&&E===""?d={0:l}:!isNaN(T)&&P!==E&&String(T)===E&&T>=0&&p.parseArrays&&T<=p.arrayLimit?(d=[],d[T]=l):E!=="__proto__"&&(d[E]=l)}l=d}return l},h=function(f,p,b,i){if(f){var u=b.allowDots?f.replace(/\.([^.[]+)/g,"[$1]"):f,l=/(\[[^[\]]*])/,S=/(\[[^[\]]*])/g,d=b.depth>0&&l.exec(u),P=d?u.slice(0,d.index):u,A=[];if(P){if(!b.plainObjects&&t.call(Object.prototype,P)&&!b.allowPrototypes)return;A.push(P)}for(var E=0;b.depth>0&&(d=S.exec(u))!==null&&E<b.depth;){if(E+=1,!b.plainObjects&&t.call(Object.prototype,d[1].slice(1,-1))&&!b.allowPrototypes)return;A.push(d[1])}if(d){if(b.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+b.depth+" and strictDepth is true");A.push("["+u.slice(d.index)+"]")}return w(A,p,b,i)}},m=function(f){if(!f)return o;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.decodeDotInKeys<"u"&&typeof f.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(f.decoder!==null&&typeof f.decoder<"u"&&typeof f.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof f.throwOnLimitExceeded<"u"&&typeof f.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var p=typeof f.charset>"u"?o.charset:f.charset,b=typeof f.duplicates>"u"?o.duplicates:f.duplicates;if(b!=="combine"&&b!=="first"&&b!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof f.allowDots>"u"?f.decodeDotInKeys===!0?!0:o.allowDots:!!f.allowDots;return{allowDots:i,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:typeof f.allowPrototypes=="boolean"?f.allowPrototypes:o.allowPrototypes,allowSparse:typeof f.allowSparse=="boolean"?f.allowSparse:o.allowSparse,arrayLimit:typeof f.arrayLimit=="number"?f.arrayLimit:o.arrayLimit,charset:p,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:o.charsetSentinel,comma:typeof f.comma=="boolean"?f.comma:o.comma,decodeDotInKeys:typeof f.decodeDotInKeys=="boolean"?f.decodeDotInKeys:o.decodeDotInKeys,decoder:typeof f.decoder=="function"?f.decoder:o.decoder,delimiter:typeof f.delimiter=="string"||e.isRegExp(f.delimiter)?f.delimiter:o.delimiter,depth:typeof f.depth=="number"||f.depth===!1?+f.depth:o.depth,duplicates:b,ignoreQueryPrefix:f.ignoreQueryPrefix===!0,interpretNumericEntities:typeof f.interpretNumericEntities=="boolean"?f.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof f.parameterLimit=="number"?f.parameterLimit:o.parameterLimit,parseArrays:f.parseArrays!==!1,plainObjects:typeof f.plainObjects=="boolean"?f.plainObjects:o.plainObjects,strictDepth:typeof f.strictDepth=="boolean"?!!f.strictDepth:o.strictDepth,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:typeof f.throwOnLimitExceeded=="boolean"?f.throwOnLimitExceeded:!1}};return $r=function(g,f){var p=m(f);if(g===""||g===null||typeof g>"u")return p.plainObjects?{__proto__:null}:{};for(var b=typeof g=="string"?R(g,p):g,i=p.plainObjects?{__proto__:null}:{},u=Object.keys(b),l=0;l<u.length;++l){var S=u[l],d=h(S,b[S],p,typeof g=="string");i=e.merge(i,d,p)}return p.allowSparse===!0?i:e.compact(i)},$r}var qr,Kt;function Hn(){if(Kt)return qr;Kt=1;var e=Gn(),t=zn(),r=kr();return qr={formats:r,parse:t,stringify:e},qr}var Vn=Hn();const Nr=sn(Vn),we={token:"/lxwork/api/auth/token",permissionTicket:"/lxwork/api/auth/create-permission-ticket",authToken:"/sso/realms/myrealm/protocol/openid-connect/token",refreshToken:"/lxwork/api/auth/refresh",userGroup:"/lxwork/api/auth/users/groups",groups:"/lxwork/api/auth/groups",allCompany:"/lxwork/api/auth/groups/branch"};let Fr=0;async function de(e,t){const r=await fetch(e,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+oe.getToken()},...t||{}});if(!r.ok){console.dir(r,await r.json());const o=localStorage.getItem("APPID");if(r.status===401&&o&&Fr<10)return Fr+=1,await new oe({APPID:o}).SSOLogin(),await de(e,t);throw new Error(`HTTP error! status: ${r.status}`)}return Fr=0,await r.json()}const ve=()=>({getTokenInfo:e=>de(`${we.token}?${Nr.stringify(e)}`),createPermissionTicket:e=>de(`${we.permissionTicket}`,{method:"POST",body:JSON.stringify(e)}),getAuthTokenInfo:e=>{const t=new URLSearchParams;return t.append("grant_type",e.grant_type),t.append("ticket",e.ticket),de(`${we.authToken}`,{method:"POST",body:t,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Bearer "+oe.getToken()}})},refreshAuthToken:()=>de(`${we.refreshToken}`,{}),getCompanyList:()=>de(`${we.allCompany}`,{}),getUserGroupList:()=>de(`${we.userGroup}`,{}),getGroupDetail:({id:e})=>de(`${we.groups}/${e}`)});function Cr(e){try{const r=new URL(e).hostname,o=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,s=/^\[?([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\]?$/;return!!(o.test(r)||s.test(r))}catch{return!1}}function Qt(e){const t={};return new URL(e).searchParams.forEach((o,s)=>{t[s]=o}),t}function Jn(e,t){const r=e.indexOf(t);return r!==-1?e.substring(0,r):e}function Xt(e){const t=window.location.href,r=new URL(t),o=new URLSearchParams(r.search);e.forEach(s=>{o.delete(s)}),r.search=o.toString(),window.history.pushState({},"",r.href)}class xe extends Error{}xe.prototype.name="InvalidTokenError";function Yn(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let o=r.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function Kn(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Yn(t)}catch{return atob(t)}}function Qn(e,t){if(typeof e!="string")throw new xe("Invalid token specified: must be a string");t||(t={});const r=t.header===!0?0:1,o=e.split(".")[r];if(typeof o!="string")throw new xe(`Invalid token specified: missing part #${r+1}`);let s;try{s=Kn(o)}catch(y){throw new xe(`Invalid token specified: invalid base64 for part #${r+1} (${y.message})`)}try{return JSON.parse(s)}catch(y){throw new xe(`Invalid token specified: invalid json for part #${r+1} (${y.message})`)}}class oe{constructor({APPID:t}){cn(this,"APPID");this.APPID=t,localStorage.setItem("APPID",this.APPID)}async SSOLogin(){const t=Qt(location.href),r=["state","code","iss","session_state"],o=r.length;if(Object.keys(t).length!==o){this.login();return}let s=[],y=0;for(;y<o;)Object.keys(t).includes(r[y])&&s.length<=o?s.push(r[y]):s=[],y++;if(s.length===o){oe.removeToken();let O;const v=ne.getItem("login_redirect_uri"),{code:R,state:w}=t;try{O=await ve().getTokenInfo({code:R,client_id:this.APPID,state:w,redirect_uri:v}),this.setToken(O);const{ticket:h}=await ve().createPermissionTicket({client_id:this.APPID}),m=await ve().getAuthTokenInfo({grant_type:"urn:ietf:params:oauth:grant-type:uma-ticket",ticket:h});this.setToken(m,"auth"),Xt(r)}catch{oe.removeToken(),window.location.href=v}}else{this.login();return}}login(){const{href:t,origin:r}=window.location,o={redirect_uri:t,client_id:this.APPID,scope:"openid"};ne.setItem("login_redirect_uri",o.redirect_uri),Cr(r)&&window.location.hostname!=="localhost"&&(o.keycloak_host=r+"/sso/");let s=`/lxwork/api/auth/login?${Nr.stringify(o)}`;window.location.replace(s)}logout(){const{href:t,origin:r}=window.location,{id_token:o}=oe.getTokenInfo()||{};oe.removeToken(),ne.removeItem("login_redirect_uri");const s={id_token_hint:o,post_logout_redirect_uri:t};Cr(r)&&window.location.hostname!=="localhost"&&(s.keycloak_host=r+"/sso/");let y=`/lxwork/api/auth/endsession?${Nr.stringify(s)}`;window.location.href=y}setToken(t,r){if(r==="auth"){const o=ne.getItem("SSO-tokenInfo");!t.id_token&&o&&(t.id_token=o.id_token),ne.setItem("tokenInfo",t)}else ne.setItem("SSO-tokenInfo",t)}async getCompanyList(){return await ve().getCompanyList()}async getUserBranchGroup(){const t=await ve().getUserGroupList(),r=t.find(y=>y.attributes.type.includes("3"));if(r)return r.name;const o=async y=>{if(y.attributes.type.includes("3"))return y.name;if(y.parentId){const O=await ve().getGroupDetail({id:y.parentId});if(O)return o(O)}return""};let s="";for(let y=0;y<t.length&&(s=await o(t[y]),!s);y+=1);return s}async refreshToken(t){const{exp:r}=oe.getDecodeToken(),o=Date.now()/1e3;if(t||o>r-200&&o<r){const s=await ve().refreshAuthToken();this.setToken(s),this.setToken(s,"auth")}}static getTokenInfo(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const r=ne.getItem("SSO-tokenInfo");return ne.getItem("tokenInfo")||r||null}static getToken(){const t=oe.getTokenInfo();return t==null?void 0:t.access_token}static getRefreshToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const r=ne.getItem("SSO-tokenInfo"),o=ne.getItem("tokenInfo");return(o==null?void 0:o.refresh_token)||(r==null?void 0:r.refresh_token)||""}static getDecodeToken(){const t=oe.getToken();return Qn(t)}static removeToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");ne.removeItem("tokenInfo"),ne.removeItem("SSO-tokenInfo")}}return K.AuthLogin=oe,K.LocalStorageUtil=ne,K.Tree=Kr,K.getUrlParams=Qt,K.isIpAddress=Cr,K.removeUrlParam=Xt,K.subBefore=Jn,K.useSSOApi=ve,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}),K}({},React);
25
+ `+a.prev}function Me(n,a){var F=le(n),U=[];if(F){U.length=n.length;for(var j=0;j<n.length;j++)U[j]=te(n,j)?a(n[j],n):""}var D=typeof I=="function"?I(n):[],me;if(W){me={};for(var be=0;be<D.length;be++)me["$"+D[be]]=D[be]}for(var ae in n)te(n,ae)&&(F&&String(Number(ae))===ae&&ae<n.length||W&&me["$"+ae]instanceof Symbol||(A.call(/[^\w$]/,ae)?U.push(a(ae,n)+": "+a(n[ae],n)):U.push(ae+": "+a(n[ae],n))));if(typeof I=="function")for(var ge=0;ge<D.length;ge++)ie.call(n,D[ge])&&U.push("["+a(D[ge])+"]: "+a(n[D[ge]],n));return U}return je}var We,Zr;function mn(){if(Zr)return We;Zr=1;var e=Fe(),t=Pe(),r=function(v,R,w){for(var h=v,m;(m=h.next)!=null;h=m)if(m.key===R)return h.next=m.next,w||(m.next=v.next,v.next=m),m},o=function(v,R){if(v){var w=r(v,R);return w&&w.value}},s=function(v,R,w){var h=r(v,R);h?h.value=w:v.next={key:R,next:v.next,value:w}},y=function(v,R){return v?!!r(v,R):!1},O=function(v,R){if(v)return r(v,R,!0)};return We=function(){var R,w={assert:function(h){if(!w.has(h))throw new t("Side channel does not contain "+e(h))},delete:function(h){var m=R&&R.next,g=O(R,h);return g&&m&&m===g&&(R=void 0),!!g},get:function(h){return o(R,h)},has:function(h){return y(R,h)},set:function(h,m){R||(R={next:void 0}),s(R,h,m)}};return w},We}var Ge,et;function rt(){return et||(et=1,Ge=Object),Ge}var ze,tt;function gn(){return tt||(tt=1,ze=Error),ze}var He,nt;function Sn(){return nt||(nt=1,He=EvalError),He}var Ve,at;function wn(){return at||(at=1,Ve=RangeError),Ve}var Je,ot;function bn(){return ot||(ot=1,Je=ReferenceError),Je}var Ye,it;function Pn(){return it||(it=1,Ye=SyntaxError),Ye}var Ke,ut;function An(){return ut||(ut=1,Ke=URIError),Ke}var Qe,lt;function En(){return lt||(lt=1,Qe=Math.abs),Qe}var Xe,ft;function On(){return ft||(ft=1,Xe=Math.floor),Xe}var Ze,ct;function Rn(){return ct||(ct=1,Ze=Math.max),Ze}var er,st;function In(){return st||(st=1,er=Math.min),er}var rr,pt;function _n(){return pt||(pt=1,rr=Math.pow),rr}var tr,yt;function Tn(){return yt||(yt=1,tr=Math.round),tr}var nr,dt;function kn(){return dt||(dt=1,nr=Number.isNaN||function(t){return t!==t}),nr}var ar,vt;function xn(){if(vt)return ar;vt=1;var e=kn();return ar=function(r){return e(r)||r===0?r:r<0?-1:1},ar}var or,ht;function Dn(){return ht||(ht=1,or=Object.getOwnPropertyDescriptor),or}var ir,mt;function gt(){if(mt)return ir;mt=1;var e=Dn();if(e)try{e([],"length")}catch{e=null}return ir=e,ir}var ur,St;function $n(){if(St)return ur;St=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return ur=e,ur}var lr,wt;function qn(){return wt||(wt=1,lr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[r]=s;for(var y in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var O=Object.getOwnPropertySymbols(t);if(O.length!==1||O[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(t,r);if(v.value!==s||v.enumerable!==!0)return!1}return!0}),lr}var fr,bt;function Nn(){if(bt)return fr;bt=1;var e=typeof Symbol<"u"&&Symbol,t=qn();return fr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},fr}var cr,Pt;function At(){return Pt||(Pt=1,cr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),cr}var sr,Et;function Ot(){if(Et)return sr;Et=1;var e=rt();return sr=e.getPrototypeOf||null,sr}var pr,Rt;function Fn(){if(Rt)return pr;Rt=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,o="[object Function]",s=function(R,w){for(var h=[],m=0;m<R.length;m+=1)h[m]=R[m];for(var g=0;g<w.length;g+=1)h[g+R.length]=w[g];return h},y=function(R,w){for(var h=[],m=w,g=0;m<R.length;m+=1,g+=1)h[g]=R[m];return h},O=function(v,R){for(var w="",h=0;h<v.length;h+=1)w+=v[h],h+1<v.length&&(w+=R);return w};return pr=function(R){var w=this;if(typeof w!="function"||t.apply(w)!==o)throw new TypeError(e+w);for(var h=y(arguments,1),m,g=function(){if(this instanceof m){var u=w.apply(this,s(h,arguments));return Object(u)===u?u:this}return w.apply(R,s(h,arguments))},f=r(0,w.length-h.length),p=[],b=0;b<f;b++)p[b]="$"+b;if(m=Function("binder","return function ("+O(p,",")+"){ return binder.apply(this,arguments); }")(g),w.prototype){var i=function(){};i.prototype=w.prototype,m.prototype=new i,i.prototype=null}return m},pr}var yr,It;function Ce(){if(It)return yr;It=1;var e=Fn();return yr=Function.prototype.bind||e,yr}var dr,_t;function vr(){return _t||(_t=1,dr=Function.prototype.call),dr}var hr,Tt;function kt(){return Tt||(Tt=1,hr=Function.prototype.apply),hr}var mr,xt;function Cn(){return xt||(xt=1,mr=typeof Reflect<"u"&&Reflect&&Reflect.apply),mr}var gr,Dt;function Mn(){if(Dt)return gr;Dt=1;var e=Ce(),t=kt(),r=vr(),o=Cn();return gr=o||e.call(r,t),gr}var Sr,$t;function qt(){if($t)return Sr;$t=1;var e=Ce(),t=Pe(),r=vr(),o=Mn();return Sr=function(y){if(y.length<1||typeof y[0]!="function")throw new t("a function is required");return o(e,r,y)},Sr}var wr,Nt;function Un(){if(Nt)return wr;Nt=1;var e=qt(),t=gt(),r;try{r=[].__proto__===Array.prototype}catch(O){if(!O||typeof O!="object"||!("code"in O)||O.code!=="ERR_PROTO_ACCESS")throw O}var o=!!r&&t&&t(Object.prototype,"__proto__"),s=Object,y=s.getPrototypeOf;return wr=o&&typeof o.get=="function"?e([o.get]):typeof y=="function"?function(v){return y(v==null?v:s(v))}:!1,wr}var br,Ft;function Ln(){if(Ft)return br;Ft=1;var e=At(),t=Ot(),r=Un();return br=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:r?function(s){return r(s)}:null,br}var Pr,Ct;function Bn(){if(Ct)return Pr;Ct=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Ce();return Pr=r.call(e,t),Pr}var Ar,Mt;function Er(){if(Mt)return Ar;Mt=1;var e,t=rt(),r=gn(),o=Sn(),s=wn(),y=bn(),O=Pn(),v=Pe(),R=An(),w=En(),h=On(),m=Rn(),g=In(),f=_n(),p=Tn(),b=xn(),i=Function,u=function(G){try{return i('"use strict"; return ('+G+").constructor;")()}catch{}},l=gt(),S=$n(),d=function(){throw new v},P=l?function(){try{return arguments.callee,d}catch{try{return l(arguments,"callee").get}catch{return d}}}():d,A=Nn()(),E=Ln(),T=Ot(),q=At(),k=kt(),C=vr(),I={},J=typeof Uint8Array>"u"||!E?e:E(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&E?E(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":O,"%ThrowTypeError%":P,"%TypedArray%":J,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":R,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":k,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":T,"%Math.abs%":w,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":f,"%Math.round%":p,"%Math.sign%":b,"%Reflect.getPrototypeOf%":q};if(E)try{null.error}catch(G){var Q=E(E(G));W["%Error.prototype%"]=Q}var ie=function G($){var z;if($==="%AsyncFunction%")z=u("async function () {}");else if($==="%GeneratorFunction%")z=u("function* () {}");else if($==="%AsyncGeneratorFunction%")z=u("async function* () {}");else if($==="%AsyncGenerator%"){var M=G("%AsyncGeneratorFunction%");M&&(z=M.prototype)}else if($==="%AsyncIteratorPrototype%"){var V=G("%AsyncGenerator%");V&&E&&(z=E(V.prototype))}return W[$]=z,z},ue={__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"]},x=Ce(),X=Bn(),c=x.call(C,Array.prototype.concat),_=x.call(k,Array.prototype.splice),N=x.call(C,String.prototype.replace),L=x.call(C,String.prototype.slice),Y=x.call(C,RegExp.prototype.exec),H=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,le=function($){var z=L($,0,1),M=L($,-1);if(z==="%"&&M!=="%")throw new O("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&z!=="%")throw new O("invalid intrinsic syntax, expected opening `%`");var V=[];return N($,H,function(ee,fe,re,te){V[V.length]=re?N(te,Z,"$1"):fe||ee}),V},B=function($,z){var M=$,V;if(X(ue,M)&&(V=ue[M],M="%"+V[0]+"%"),X(W,M)){var ee=W[M];if(ee===I&&(ee=ie(M)),typeof ee>"u"&&!z)throw new v("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:V,name:M,value:ee}}throw new O("intrinsic "+$+" does not exist!")};return Ar=function($,z){if(typeof $!="string"||$.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!="boolean")throw new v('"allowMissing" argument must be a boolean');if(Y(/^%?[^%]*%?$/,$)===null)throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=le($),V=M.length>0?M[0]:"",ee=B("%"+V+"%",z),fe=ee.name,re=ee.value,te=!1,ce=ee.alias;ce&&(V=ce[0],_(M,c([0,1],ce)));for(var Ae=1,he=!0;Ae<M.length;Ae+=1){var se=M[Ae],Ee=L(se,0,1),Oe=L(se,-1);if((Ee==='"'||Ee==="'"||Ee==="`"||Oe==='"'||Oe==="'"||Oe==="`")&&Ee!==Oe)throw new O("property names with quotes must have matching quotes");if((se==="constructor"||!he)&&(te=!0),V+="."+se,fe="%"+V+"%",X(W,fe))re=W[fe];else if(re!=null){if(!(se in re)){if(!z)throw new v("base intrinsic for "+$+" exists, but the property is not available.");return}if(l&&Ae+1>=M.length){var Re=l(re,se);he=!!Re,he&&"get"in Re&&!("originalValue"in Re.get)?re=Re.get:re=re[se]}else he=X(re,se),re=re[se];he&&!te&&(W[fe]=re)}}return re},Ar}var Or,Ut;function Lt(){if(Ut)return Or;Ut=1;var e=Er(),t=qt(),r=t([e("%String.prototype.indexOf%")]);return Or=function(s,y){var O=e(s,!!y);return typeof O=="function"&&r(s,".prototype.")>-1?t([O]):O},Or}var Rr,Bt;function jt(){if(Bt)return Rr;Bt=1;var e=Er(),t=Lt(),r=Fe(),o=Pe(),s=e("%Map%",!0),y=t("Map.prototype.get",!0),O=t("Map.prototype.set",!0),v=t("Map.prototype.has",!0),R=t("Map.prototype.delete",!0),w=t("Map.prototype.size",!0);return Rr=!!s&&function(){var m,g={assert:function(f){if(!g.has(f))throw new o("Side channel does not contain "+r(f))},delete:function(f){if(m){var p=R(m,f);return w(m)===0&&(m=void 0),p}return!1},get:function(f){if(m)return y(m,f)},has:function(f){return m?v(m,f):!1},set:function(f,p){m||(m=new s),O(m,f,p)}};return g},Rr}var Ir,Wt;function jn(){if(Wt)return Ir;Wt=1;var e=Er(),t=Lt(),r=Fe(),o=jt(),s=Pe(),y=e("%WeakMap%",!0),O=t("WeakMap.prototype.get",!0),v=t("WeakMap.prototype.set",!0),R=t("WeakMap.prototype.has",!0),w=t("WeakMap.prototype.delete",!0);return Ir=y?function(){var m,g,f={assert:function(p){if(!f.has(p))throw new s("Side channel does not contain "+r(p))},delete:function(p){if(y&&p&&(typeof p=="object"||typeof p=="function")){if(m)return w(m,p)}else if(o&&g)return g.delete(p);return!1},get:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?O(m,p):g&&g.get(p)},has:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?R(m,p):!!g&&g.has(p)},set:function(p,b){y&&p&&(typeof p=="object"||typeof p=="function")?(m||(m=new y),v(m,p,b)):o&&(g||(g=o()),g.set(p,b))}};return f}:o,Ir}var _r,Gt;function Wn(){if(Gt)return _r;Gt=1;var e=Pe(),t=Fe(),r=mn(),o=jt(),s=jn(),y=s||o||r;return _r=function(){var v,R={assert:function(w){if(!R.has(w))throw new e("Side channel does not contain "+t(w))},delete:function(w){return!!v&&v.delete(w)},get:function(w){return v&&v.get(w)},has:function(w){return!!v&&v.has(w)},set:function(w,h){v||(v=y()),v.set(w,h)}};return R},_r}var Tr,zt;function kr(){if(zt)return Tr;zt=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Tr={default:r.RFC3986,formatters:{RFC1738:function(o){return e.call(o,t,"+")},RFC3986:function(o){return String(o)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},Tr}var xr,Ht;function Vt(){if(Ht)return xr;Ht=1;var e=kr(),t=Object.prototype.hasOwnProperty,r=Array.isArray,o=function(){for(var i=[],u=0;u<256;++u)i.push("%"+((u<16?"0":"")+u.toString(16)).toUpperCase());return i}(),s=function(u){for(;u.length>1;){var l=u.pop(),S=l.obj[l.prop];if(r(S)){for(var d=[],P=0;P<S.length;++P)typeof S[P]<"u"&&d.push(S[P]);l.obj[l.prop]=d}}},y=function(u,l){for(var S=l&&l.plainObjects?{__proto__:null}:{},d=0;d<u.length;++d)typeof u[d]<"u"&&(S[d]=u[d]);return S},O=function i(u,l,S){if(!l)return u;if(typeof l!="object"&&typeof l!="function"){if(r(u))u.push(l);else if(u&&typeof u=="object")(S&&(S.plainObjects||S.allowPrototypes)||!t.call(Object.prototype,l))&&(u[l]=!0);else return[u,l];return u}if(!u||typeof u!="object")return[u].concat(l);var d=u;return r(u)&&!r(l)&&(d=y(u,S)),r(u)&&r(l)?(l.forEach(function(P,A){if(t.call(u,A)){var E=u[A];E&&typeof E=="object"&&P&&typeof P=="object"?u[A]=i(E,P,S):u.push(P)}else u[A]=P}),u):Object.keys(l).reduce(function(P,A){var E=l[A];return t.call(P,A)?P[A]=i(P[A],E,S):P[A]=E,P},d)},v=function(u,l){return Object.keys(l).reduce(function(S,d){return S[d]=l[d],S},u)},R=function(i,u,l){var S=i.replace(/\+/g," ");if(l==="iso-8859-1")return S.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(S)}catch{return S}},w=1024,h=function(u,l,S,d,P){if(u.length===0)return u;var A=u;if(typeof u=="symbol"?A=Symbol.prototype.toString.call(u):typeof u!="string"&&(A=String(u)),S==="iso-8859-1")return escape(A).replace(/%u[0-9a-f]{4}/gi,function(J){return"%26%23"+parseInt(J.slice(2),16)+"%3B"});for(var E="",T=0;T<A.length;T+=w){for(var q=A.length>=w?A.slice(T,T+w):A,k=[],C=0;C<q.length;++C){var I=q.charCodeAt(C);if(I===45||I===46||I===95||I===126||I>=48&&I<=57||I>=65&&I<=90||I>=97&&I<=122||P===e.RFC1738&&(I===40||I===41)){k[k.length]=q.charAt(C);continue}if(I<128){k[k.length]=o[I];continue}if(I<2048){k[k.length]=o[192|I>>6]+o[128|I&63];continue}if(I<55296||I>=57344){k[k.length]=o[224|I>>12]+o[128|I>>6&63]+o[128|I&63];continue}C+=1,I=65536+((I&1023)<<10|q.charCodeAt(C)&1023),k[k.length]=o[240|I>>18]+o[128|I>>12&63]+o[128|I>>6&63]+o[128|I&63]}E+=k.join("")}return E},m=function(u){for(var l=[{obj:{o:u},prop:"o"}],S=[],d=0;d<l.length;++d)for(var P=l[d],A=P.obj[P.prop],E=Object.keys(A),T=0;T<E.length;++T){var q=E[T],k=A[q];typeof k=="object"&&k!==null&&S.indexOf(k)===-1&&(l.push({obj:A,prop:q}),S.push(k))}return s(l),u},g=function(u){return Object.prototype.toString.call(u)==="[object RegExp]"},f=function(u){return!u||typeof u!="object"?!1:!!(u.constructor&&u.constructor.isBuffer&&u.constructor.isBuffer(u))},p=function(u,l){return[].concat(u,l)},b=function(u,l){if(r(u)){for(var S=[],d=0;d<u.length;d+=1)S.push(l(u[d]));return S}return l(u)};return xr={arrayToObject:y,assign:v,combine:p,compact:m,decode:R,encode:h,isBuffer:f,isRegExp:g,maybeMap:b,merge:O},xr}var Dr,Jt;function Gn(){if(Jt)return Dr;Jt=1;var e=Wn(),t=Vt(),r=kr(),o=Object.prototype.hasOwnProperty,s={brackets:function(i){return i+"[]"},comma:"comma",indices:function(i,u){return i+"["+u+"]"},repeat:function(i){return i}},y=Array.isArray,O=Array.prototype.push,v=function(b,i){O.apply(b,y(i)?i:[i])},R=Date.prototype.toISOString,w=r.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:w,formatter:r.formatters[w],indices:!1,serializeDate:function(i){return R.call(i)},skipNulls:!1,strictNullHandling:!1},m=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint"},g={},f=function b(i,u,l,S,d,P,A,E,T,q,k,C,I,J,W,Q,ie,ue){for(var x=i,X=ue,c=0,_=!1;(X=X.get(g))!==void 0&&!_;){var N=X.get(i);if(c+=1,typeof N<"u"){if(N===c)throw new RangeError("Cyclic object value");_=!0}typeof X.get(g)>"u"&&(c=0)}if(typeof q=="function"?x=q(u,x):x instanceof Date?x=I(x):l==="comma"&&y(x)&&(x=t.maybeMap(x,function(fe){return fe instanceof Date?I(fe):fe})),x===null){if(P)return T&&!Q?T(u,h.encoder,ie,"key",J):u;x=""}if(m(x)||t.isBuffer(x)){if(T){var L=Q?u:T(u,h.encoder,ie,"key",J);return[W(L)+"="+W(T(x,h.encoder,ie,"value",J))]}return[W(u)+"="+W(String(x))]}var Y=[];if(typeof x>"u")return Y;var H;if(l==="comma"&&y(x))Q&&T&&(x=t.maybeMap(x,T)),H=[{value:x.length>0?x.join(",")||null:void 0}];else if(y(q))H=q;else{var Z=Object.keys(x);H=k?Z.sort(k):Z}var le=E?String(u).replace(/\./g,"%2E"):String(u),B=S&&y(x)&&x.length===1?le+"[]":le;if(d&&y(x)&&x.length===0)return B+"[]";for(var G=0;G<H.length;++G){var $=H[G],z=typeof $=="object"&&$&&typeof $.value<"u"?$.value:x[$];if(!(A&&z===null)){var M=C&&E?String($).replace(/\./g,"%2E"):String($),V=y(x)?typeof l=="function"?l(B,M):B:B+(C?"."+M:"["+M+"]");ue.set(i,c);var ee=e();ee.set(g,ue),v(Y,b(z,V,l,S,d,P,A,E,l==="comma"&&Q&&y(x)?null:T,q,k,C,I,J,W,Q,ie,ee))}}return Y},p=function(i){if(!i)return h;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.encodeDotInKeys<"u"&&typeof i.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(i.encoder!==null&&typeof i.encoder<"u"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var u=i.charset||h.charset;if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var l=r.default;if(typeof i.format<"u"){if(!o.call(r.formatters,i.format))throw new TypeError("Unknown format option provided.");l=i.format}var S=r.formatters[l],d=h.filter;(typeof i.filter=="function"||y(i.filter))&&(d=i.filter);var P;if(i.arrayFormat in s?P=i.arrayFormat:"indices"in i?P=i.indices?"indices":"repeat":P=h.arrayFormat,"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var A=typeof i.allowDots>"u"?i.encodeDotInKeys===!0?!0:h.allowDots:!!i.allowDots;return{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:h.addQueryPrefix,allowDots:A,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:P,charset:u,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!i.commaRoundTrip,delimiter:typeof i.delimiter>"u"?h.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:h.encode,encodeDotInKeys:typeof i.encodeDotInKeys=="boolean"?i.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof i.encoder=="function"?i.encoder:h.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:h.encodeValuesOnly,filter:d,format:l,formatter:S,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:h.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:h.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:h.strictNullHandling}};return Dr=function(b,i){var u=b,l=p(i),S,d;typeof l.filter=="function"?(d=l.filter,u=d("",u)):y(l.filter)&&(d=l.filter,S=d);var P=[];if(typeof u!="object"||u===null)return"";var A=s[l.arrayFormat],E=A==="comma"&&l.commaRoundTrip;S||(S=Object.keys(u)),l.sort&&S.sort(l.sort);for(var T=e(),q=0;q<S.length;++q){var k=S[q],C=u[k];l.skipNulls&&C===null||v(P,f(C,k,A,E,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,T))}var I=P.join(l.delimiter),J=l.addQueryPrefix===!0?"?":"";return l.charsetSentinel&&(l.charset==="iso-8859-1"?J+="utf8=%26%2310003%3B&":J+="utf8=%E2%9C%93&"),I.length>0?J+I:""},Dr}var $r,Yt;function zn(){if(Yt)return $r;Yt=1;var e=Vt(),t=Object.prototype.hasOwnProperty,r=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(g){return g.replace(/&#(\d+);/g,function(f,p){return String.fromCharCode(parseInt(p,10))})},y=function(g,f,p){if(g&&typeof g=="string"&&f.comma&&g.indexOf(",")>-1)return g.split(",");if(f.throwOnLimitExceeded&&p>=f.arrayLimit)throw new RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");return g},O="utf8=%26%2310003%3B",v="utf8=%E2%9C%93",R=function(f,p){var b={__proto__:null},i=p.ignoreQueryPrefix?f.replace(/^\?/,""):f;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=p.parameterLimit===1/0?void 0:p.parameterLimit,l=i.split(p.delimiter,p.throwOnLimitExceeded?u+1:u);if(p.throwOnLimitExceeded&&l.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(u===1?"":"s")+" allowed.");var S=-1,d,P=p.charset;if(p.charsetSentinel)for(d=0;d<l.length;++d)l[d].indexOf("utf8=")===0&&(l[d]===v?P="utf-8":l[d]===O&&(P="iso-8859-1"),S=d,d=l.length);for(d=0;d<l.length;++d)if(d!==S){var A=l[d],E=A.indexOf("]="),T=E===-1?A.indexOf("="):E+1,q,k;T===-1?(q=p.decoder(A,o.decoder,P,"key"),k=p.strictNullHandling?null:""):(q=p.decoder(A.slice(0,T),o.decoder,P,"key"),k=e.maybeMap(y(A.slice(T+1),p,r(b[q])?b[q].length:0),function(I){return p.decoder(I,o.decoder,P,"value")})),k&&p.interpretNumericEntities&&P==="iso-8859-1"&&(k=s(String(k))),A.indexOf("[]=")>-1&&(k=r(k)?[k]:k);var C=t.call(b,q);C&&p.duplicates==="combine"?b[q]=e.combine(b[q],k):(!C||p.duplicates==="last")&&(b[q]=k)}return b},w=function(g,f,p,b){var i=0;if(g.length>0&&g[g.length-1]==="[]"){var u=g.slice(0,-1).join("");i=Array.isArray(f)&&f[u]?f[u].length:0}for(var l=b?f:y(f,p,i),S=g.length-1;S>=0;--S){var d,P=g[S];if(P==="[]"&&p.parseArrays)d=p.allowEmptyArrays&&(l===""||p.strictNullHandling&&l===null)?[]:e.combine([],l);else{d=p.plainObjects?{__proto__:null}:{};var A=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,E=p.decodeDotInKeys?A.replace(/%2E/g,"."):A,T=parseInt(E,10);!p.parseArrays&&E===""?d={0:l}:!isNaN(T)&&P!==E&&String(T)===E&&T>=0&&p.parseArrays&&T<=p.arrayLimit?(d=[],d[T]=l):E!=="__proto__"&&(d[E]=l)}l=d}return l},h=function(f,p,b,i){if(f){var u=b.allowDots?f.replace(/\.([^.[]+)/g,"[$1]"):f,l=/(\[[^[\]]*])/,S=/(\[[^[\]]*])/g,d=b.depth>0&&l.exec(u),P=d?u.slice(0,d.index):u,A=[];if(P){if(!b.plainObjects&&t.call(Object.prototype,P)&&!b.allowPrototypes)return;A.push(P)}for(var E=0;b.depth>0&&(d=S.exec(u))!==null&&E<b.depth;){if(E+=1,!b.plainObjects&&t.call(Object.prototype,d[1].slice(1,-1))&&!b.allowPrototypes)return;A.push(d[1])}if(d){if(b.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+b.depth+" and strictDepth is true");A.push("["+u.slice(d.index)+"]")}return w(A,p,b,i)}},m=function(f){if(!f)return o;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.decodeDotInKeys<"u"&&typeof f.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(f.decoder!==null&&typeof f.decoder<"u"&&typeof f.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof f.throwOnLimitExceeded<"u"&&typeof f.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var p=typeof f.charset>"u"?o.charset:f.charset,b=typeof f.duplicates>"u"?o.duplicates:f.duplicates;if(b!=="combine"&&b!=="first"&&b!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof f.allowDots>"u"?f.decodeDotInKeys===!0?!0:o.allowDots:!!f.allowDots;return{allowDots:i,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:typeof f.allowPrototypes=="boolean"?f.allowPrototypes:o.allowPrototypes,allowSparse:typeof f.allowSparse=="boolean"?f.allowSparse:o.allowSparse,arrayLimit:typeof f.arrayLimit=="number"?f.arrayLimit:o.arrayLimit,charset:p,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:o.charsetSentinel,comma:typeof f.comma=="boolean"?f.comma:o.comma,decodeDotInKeys:typeof f.decodeDotInKeys=="boolean"?f.decodeDotInKeys:o.decodeDotInKeys,decoder:typeof f.decoder=="function"?f.decoder:o.decoder,delimiter:typeof f.delimiter=="string"||e.isRegExp(f.delimiter)?f.delimiter:o.delimiter,depth:typeof f.depth=="number"||f.depth===!1?+f.depth:o.depth,duplicates:b,ignoreQueryPrefix:f.ignoreQueryPrefix===!0,interpretNumericEntities:typeof f.interpretNumericEntities=="boolean"?f.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof f.parameterLimit=="number"?f.parameterLimit:o.parameterLimit,parseArrays:f.parseArrays!==!1,plainObjects:typeof f.plainObjects=="boolean"?f.plainObjects:o.plainObjects,strictDepth:typeof f.strictDepth=="boolean"?!!f.strictDepth:o.strictDepth,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:typeof f.throwOnLimitExceeded=="boolean"?f.throwOnLimitExceeded:!1}};return $r=function(g,f){var p=m(f);if(g===""||g===null||typeof g>"u")return p.plainObjects?{__proto__:null}:{};for(var b=typeof g=="string"?R(g,p):g,i=p.plainObjects?{__proto__:null}:{},u=Object.keys(b),l=0;l<u.length;++l){var S=u[l],d=h(S,b[S],p,typeof g=="string");i=e.merge(i,d,p)}return p.allowSparse===!0?i:e.compact(i)},$r}var qr,Kt;function Hn(){if(Kt)return qr;Kt=1;var e=Gn(),t=zn(),r=kr();return qr={formats:r,parse:t,stringify:e},qr}var Vn=Hn();const Nr=sn(Vn),we={token:"/lxwork/api/auth/token",permissionTicket:"/lxwork/api/auth/create-permission-ticket",authToken:"/sso/realms/myrealm/protocol/openid-connect/token",refreshToken:"/lxwork/api/auth/refresh",userGroup:"/lxwork/api/auth/users/groups",groups:"/lxwork/api/auth/groups",allCompany:"/lxwork/api/auth/groups/branch"};let Fr=0;async function de(e,t){const r=await fetch(e,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+oe.getToken()},...t||{}});if(!r.ok){console.dir(r,await r.json());const o=localStorage.getItem("APPID");if(r.status===401&&o&&Fr<10)return Fr+=1,await new oe({APPID:o}).SSOLogin(),await de(e,t);throw new Error(`HTTP error! status: ${r.status}`)}return Fr=0,await r.json()}const ve=()=>({getTokenInfo:e=>de(`${we.token}?${Nr.stringify(e)}`),createPermissionTicket:e=>de(`${we.permissionTicket}`,{method:"POST",body:JSON.stringify(e)}),getAuthTokenInfo:e=>{const t=new URLSearchParams;return t.append("grant_type",e.grant_type),t.append("ticket",e.ticket),de(`${we.authToken}`,{method:"POST",body:t,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Bearer "+oe.getToken()}})},refreshAuthToken:()=>de(`${we.refreshToken}`,{}),getCompanyList:()=>de(`${we.allCompany}`,{}),getUserGroupList:()=>de(`${we.userGroup}`,{}),getGroupDetail:({id:e})=>de(`${we.groups}/${e}`)});function Cr(e){try{const r=new URL(e).hostname,o=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,s=/^\[?([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\]?$/;return!!(o.test(r)||s.test(r))}catch{return!1}}function Qt(e){const t={};return new URL(e).searchParams.forEach((o,s)=>{t[s]=o}),t}function Jn(e,t){const r=e.indexOf(t);return r!==-1?e.substring(0,r):e}function Xt(e){const t=window.location.href,r=new URL(t),o=new URLSearchParams(r.search);e.forEach(s=>{o.delete(s)}),r.search=o.toString(),window.history.pushState({},"",r.href)}class xe extends Error{}xe.prototype.name="InvalidTokenError";function Yn(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let o=r.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function Kn(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Yn(t)}catch{return atob(t)}}function Qn(e,t){if(typeof e!="string")throw new xe("Invalid token specified: must be a string");t||(t={});const r=t.header===!0?0:1,o=e.split(".")[r];if(typeof o!="string")throw new xe(`Invalid token specified: missing part #${r+1}`);let s;try{s=Kn(o)}catch(y){throw new xe(`Invalid token specified: invalid base64 for part #${r+1} (${y.message})`)}try{return JSON.parse(s)}catch(y){throw new xe(`Invalid token specified: invalid json for part #${r+1} (${y.message})`)}}class oe{constructor({APPID:t}){cn(this,"APPID");this.APPID=t,localStorage.setItem("APPID",this.APPID)}async SSOLogin(){const t=Qt(location.href),r=["state","code","iss","session_state"],o=r.length;if(Object.keys(t).length!==o){this.login();return}let s=[],y=0;for(;y<o;)Object.keys(t).includes(r[y])&&s.length<=o?s.push(r[y]):s=[],y++;if(s.length===o){oe.removeToken();let O;const v=ne.getItem("login_redirect_uri"),{code:R,state:w}=t;try{O=await ve().getTokenInfo({code:R,client_id:this.APPID,state:w,redirect_uri:v}),this.setToken(O);const{ticket:h}=await ve().createPermissionTicket({client_id:this.APPID}),m=await ve().getAuthTokenInfo({grant_type:"urn:ietf:params:oauth:grant-type:uma-ticket",ticket:h});this.setToken(m,"auth"),Xt(r)}catch{oe.removeToken(),window.location.href=v}}else{this.login();return}}login(){const{href:t,origin:r}=window.location,o={redirect_uri:t,client_id:this.APPID,scope:"openid"};ne.setItem("login_redirect_uri",o.redirect_uri),Cr(r)&&window.location.hostname!=="localhost"&&(o.keycloak_host=r+"/sso/");let s=`/lxwork/api/auth/login?${Nr.stringify(o)}`;window.location.replace(s)}logout(){const{href:t,origin:r}=window.location,{id_token:o}=oe.getTokenInfo()||{};ne.removeItem("login_redirect_uri");const s={id_token_hint:o,post_logout_redirect_uri:t};Cr(r)&&window.location.hostname!=="localhost"&&(s.keycloak_host=r+"/sso/");let y=`/lxwork/api/auth/endsession?${Nr.stringify(s)}`;oe.removeToken(),window.location.href=y}setToken(t,r){if(r==="auth"){const o=ne.getItem("SSO-tokenInfo");!t.id_token&&o&&(t.id_token=o.id_token),ne.setItem("tokenInfo",t)}else ne.setItem("SSO-tokenInfo",t)}async getCompanyList(){return await ve().getCompanyList()}async getUserBranchGroup(){const t=await ve().getUserGroupList(),r=t.find(y=>y.attributes.type.includes("3"));if(r)return r.name;const o=async y=>{if(y.attributes.type.includes("3"))return y.name;if(y.parentId){const O=await ve().getGroupDetail({id:y.parentId});if(O)return o(O)}return""};let s="";for(let y=0;y<t.length&&(s=await o(t[y]),!s);y+=1);return s}async refreshToken(t){const{exp:r}=oe.getDecodeToken(),o=Date.now()/1e3;if(t||o>r-200&&o<r){const s=await ve().refreshAuthToken();this.setToken(s),this.setToken(s,"auth")}}static getTokenInfo(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const r=ne.getItem("SSO-tokenInfo");return ne.getItem("tokenInfo")||r||null}static getToken(){const t=oe.getTokenInfo();return t==null?void 0:t.access_token}static getRefreshToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const r=ne.getItem("SSO-tokenInfo"),o=ne.getItem("tokenInfo");return(o==null?void 0:o.refresh_token)||(r==null?void 0:r.refresh_token)||""}static getDecodeToken(){const t=oe.getToken();return Qn(t)}static removeToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");ne.removeItem("tokenInfo"),ne.removeItem("SSO-tokenInfo")}}return K.AuthLogin=oe,K.LocalStorageUtil=ne,K.Tree=Kr,K.getUrlParams=Qt,K.isIpAddress=Cr,K.removeUrlParam=Xt,K.subBefore=Jn,K.useSSOApi=ve,Object.defineProperty(K,Symbol.toStringTag,{value:"Module"}),K}({},React);
@@ -22,4 +22,4 @@ React keys must be passed directly to JSX without using spread:
22
22
  <%s key={someKey} {...props} />`,L,B,G,B),X[B+L]=!0)}if(B=null,N!==void 0&&(r(N),B=""+N),O(_)&&(r(_.key),B=""+_.key),"key"in _){N={};for(var $ in _)$!=="key"&&(N[$]=_[$])}else N=_;return B&&v(N,typeof c=="function"?c.displayName||c.name||"Unknown":c),w(c,B,V,K,s(),N,Z,fe)}function m(c){typeof c=="object"&&c!==null&&c.$$typeof===f&&c._store&&(c._store.validated=1)}var g=ne,f=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),S=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),P=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),k=Symbol.for("react.client.reference"),C=g.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,Y=Array.isArray,W=console.createTask?console.createTask:function(){return null};g={"react-stack-bottom-frame":function(c){return c()}};var Q,ue={},le=g["react-stack-bottom-frame"].bind(g,y)(),x=W(o(y)),X={};ke.Fragment=b,ke.jsx=function(c,_,N,L,K){var V=1e4>C.recentlyCreatedOwnerStacks++;return h(c,_,N,!1,L,K,V?Error("react-stack-top-frame"):le,V?W(o(c)):x)},ke.jsxs=function(c,_,N,L,K){var V=1e4>C.recentlyCreatedOwnerStacks++;return h(c,_,N,!0,L,K,V?Error("react-stack-top-frame"):le,V?W(o(c)):x)}}()),ke}var Yr;function vn(){return Yr||(Yr=1,process.env.NODE_ENV==="production"?qe.exports=yn():qe.exports=dn()),qe.exports}var Ne=vn();const Kr=({data:e,onChange:t})=>Ne.jsx("div",{children:e.map(r=>Ne.jsxs("div",{className:"tree-node",children:[Ne.jsx("input",{type:"checkbox",checked:r.selected,disabled:r.disabled,onChange:()=>t==null?void 0:t(r)}),r.name,r.children&&Ne.jsx(Kr,{data:r.children,onChange:t})]},r.id))});class ae{static setItem(t,r){const o=localStorage.getItem("APPID");typeof r=="object"?localStorage.setItem(o+"-"+t,JSON.stringify(r)):localStorage.setItem(o+"-"+t,r)}static getItem(t){const r=localStorage.getItem("APPID"),o=localStorage.getItem(r+"-"+t);if(o)try{return JSON.parse(o)}catch{return o}return null}static removeItem(t){const r=localStorage.getItem("APPID");localStorage.removeItem(r+"-"+t)}static clear(){const t=localStorage.getItem("APPID");Object.keys(localStorage).forEach(r=>{r.startsWith(t+"-")&&localStorage.removeItem(r)})}static clearAll(){localStorage.clear()}}var Be,Qr;function Pe(){return Qr||(Qr=1,Be=TypeError),Be}const hn=pn(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var je,Xr;function Fe(){if(Xr)return je;Xr=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,o=e&&Map.prototype.forEach,s=typeof Set=="function"&&Set.prototype,y=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,O=s&&y&&typeof y.get=="function"?y.get:null,v=s&&Set.prototype.forEach,R=typeof WeakMap=="function"&&WeakMap.prototype,w=R?WeakMap.prototype.has:null,h=typeof WeakSet=="function"&&WeakSet.prototype,m=h?WeakSet.prototype.has:null,g=typeof WeakRef=="function"&&WeakRef.prototype,f=g?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,b=Object.prototype.toString,i=Function.prototype.toString,u=String.prototype.match,l=String.prototype.slice,S=String.prototype.replace,d=String.prototype.toUpperCase,P=String.prototype.toLowerCase,A=RegExp.prototype.test,E=Array.prototype.concat,T=Array.prototype.join,q=Array.prototype.slice,k=Math.floor,C=typeof BigInt=="function"?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,Y=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,W=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Q=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===W||!0)?Symbol.toStringTag:null,ue=Object.prototype.propertyIsEnumerable,le=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(n){return n.__proto__}:null);function x(n,a){if(n===1/0||n===-1/0||n!==n||n&&n>-1e3&&n<1e3||A.call(/e/,a))return a;var F=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof n=="number"){var U=n<0?-k(-n):k(n);if(U!==n){var j=String(U),D=l.call(a,j.length+1);return S.call(j,F,"$&_")+"."+S.call(S.call(D,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(a,F,"$&_")}var X=hn,c=X.custom,_=ee(c)?c:null,N={__proto__:null,double:'"',single:"'"},L={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};je=function n(a,F,U,j){var D=F||{};if(te(D,"quoteStyle")&&!te(N,D.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(te(D,"maxStringLength")&&(typeof D.maxStringLength=="number"?D.maxStringLength<0&&D.maxStringLength!==1/0:D.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var me=te(D,"customInspect")?D.customInspect:!0;if(typeof me!="boolean"&&me!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(te(D,"indent")&&D.indent!==null&&D.indent!==" "&&!(parseInt(D.indent,10)===D.indent&&D.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(te(D,"numericSeparator")&&typeof D.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var be=D.numericSeparator;if(typeof a>"u")return"undefined";if(a===null)return"null";if(typeof a=="boolean")return a?"true":"false";if(typeof a=="string")return Zt(a,D);if(typeof a=="number"){if(a===0)return 1/0/a>0?"0":"-0";var oe=String(a);return be?x(a,oe):oe}if(typeof a=="bigint"){var ge=String(a)+"n";return be?x(a,ge):ge}var Lr=typeof D.depth>"u"?5:D.depth;if(typeof U>"u"&&(U=0),U>=Lr&&Lr>0&&typeof a=="object")return fe(a)?"[Array]":"[Object]";var Ie=ta(D,U);if(typeof j>"u")j=[];else if(he(j,a)>=0)return"[Circular]";function ye(_e,Le,aa){if(Le&&(j=q.call(j),j.push(Le)),aa){var fn={depth:D.depth};return te(D,"quoteStyle")&&(fn.quoteStyle=D.quoteStyle),n(_e,fn,U+1,j)}return n(_e,D,U+1,j)}if(typeof a=="function"&&!G(a)){var rn=Ae(a),tn=Me(a,ye);return"[Function"+(rn?": "+rn:" (anonymous)")+"]"+(tn.length>0?" { "+T.call(tn,", ")+" }":"")}if(ee(a)){var nn=W?S.call(String(a),/^(Symbol\(.*\))_[^)]*$/,"$1"):Y.call(a);return typeof a=="object"&&!W?De(nn):nn}if(Zn(a)){for(var $e="<"+P.call(String(a.nodeName)),Br=a.attributes||[],Ue=0;Ue<Br.length;Ue++)$e+=" "+Br[Ue].name+"="+K(V(Br[Ue].value),"double",D);return $e+=">",a.childNodes&&a.childNodes.length&&($e+="..."),$e+="</"+P.call(String(a.nodeName))+">",$e}if(fe(a)){if(a.length===0)return"[]";var jr=Me(a,ye);return Ie&&!ra(jr)?"["+Ur(jr,Ie)+"]":"[ "+T.call(jr,", ")+" ]"}if($(a)){var Wr=Me(a,ye);return!("cause"in Error.prototype)&&"cause"in a&&!ue.call(a,"cause")?"{ ["+String(a)+"] "+T.call(E.call("[cause]: "+ye(a.cause),Wr),", ")+" }":Wr.length===0?"["+String(a)+"]":"{ ["+String(a)+"] "+T.call(Wr,", ")+" }"}if(typeof a=="object"&&me){if(_&&typeof a[_]=="function"&&X)return X(a,{depth:Lr-U});if(me!=="symbol"&&typeof a.inspect=="function")return a.inspect()}if(pe(a)){var an=[];return o&&o.call(a,function(_e,Le){an.push(ye(Le,a,!0)+" => "+ye(_e,a))}),en("Map",r.call(a),an,Ie)}if(Re(a)){var on=[];return v&&v.call(a,function(_e){on.push(ye(_e,a))}),en("Set",O.call(a),on,Ie)}if(Ee(a))return Mr("WeakMap");if(Xn(a))return Mr("WeakSet");if(Oe(a))return Mr("WeakRef");if(M(a))return De(ye(Number(a)));if(ce(a))return De(ye(C.call(a)));if(J(a))return De(p.call(a));if(z(a))return De(ye(String(a)));if(typeof window<"u"&&a===window)return"{ [object Window] }";if(typeof globalThis<"u"&&a===globalThis||typeof Se<"u"&&a===Se)return"{ [object globalThis] }";if(!B(a)&&!G(a)){var Gr=Me(a,ye),un=le?le(a)===Object.prototype:a instanceof Object||a.constructor===Object,zr=a instanceof Object?"":"null prototype",ln=!un&&Q&&Object(a)===a&&Q in a?l.call(se(a),8,-1):zr?"Object":"",na=un||typeof a.constructor!="function"?"":a.constructor.name?a.constructor.name+" ":"",Hr=na+(ln||zr?"["+T.call(E.call([],ln||[],zr||[]),": ")+"] ":"");return Gr.length===0?Hr+"{}":Ie?Hr+"{"+Ur(Gr,Ie)+"}":Hr+"{ "+T.call(Gr,", ")+" }"}return String(a)};function K(n,a,F){var U=F.quoteStyle||a,j=N[U];return j+n+j}function V(n){return S.call(String(n),/"/g,"&quot;")}function Z(n){return!Q||!(typeof n=="object"&&(Q in n||typeof n[Q]<"u"))}function fe(n){return se(n)==="[object Array]"&&Z(n)}function B(n){return se(n)==="[object Date]"&&Z(n)}function G(n){return se(n)==="[object RegExp]"&&Z(n)}function $(n){return se(n)==="[object Error]"&&Z(n)}function z(n){return se(n)==="[object String]"&&Z(n)}function M(n){return se(n)==="[object Number]"&&Z(n)}function J(n){return se(n)==="[object Boolean]"&&Z(n)}function ee(n){if(W)return n&&typeof n=="object"&&n instanceof Symbol;if(typeof n=="symbol")return!0;if(!n||typeof n!="object"||!Y)return!1;try{return Y.call(n),!0}catch{}return!1}function ce(n){if(!n||typeof n!="object"||!C)return!1;try{return C.call(n),!0}catch{}return!1}var re=Object.prototype.hasOwnProperty||function(n){return n in this};function te(n,a){return re.call(n,a)}function se(n){return b.call(n)}function Ae(n){if(n.name)return n.name;var a=u.call(i.call(n),/^function\s*([\w$]+)/);return a?a[1]:null}function he(n,a){if(n.indexOf)return n.indexOf(a);for(var F=0,U=n.length;F<U;F++)if(n[F]===a)return F;return-1}function pe(n){if(!r||!n||typeof n!="object")return!1;try{r.call(n);try{O.call(n)}catch{return!0}return n instanceof Map}catch{}return!1}function Ee(n){if(!w||!n||typeof n!="object")return!1;try{w.call(n,w);try{m.call(n,m)}catch{return!0}return n instanceof WeakMap}catch{}return!1}function Oe(n){if(!f||!n||typeof n!="object")return!1;try{return f.call(n),!0}catch{}return!1}function Re(n){if(!O||!n||typeof n!="object")return!1;try{O.call(n);try{r.call(n)}catch{return!0}return n instanceof Set}catch{}return!1}function Xn(n){if(!m||!n||typeof n!="object")return!1;try{m.call(n,m);try{w.call(n,w)}catch{return!0}return n instanceof WeakSet}catch{}return!1}function Zn(n){return!n||typeof n!="object"?!1:typeof HTMLElement<"u"&&n instanceof HTMLElement?!0:typeof n.nodeName=="string"&&typeof n.getAttribute=="function"}function Zt(n,a){if(n.length>a.maxStringLength){var F=n.length-a.maxStringLength,U="... "+F+" more character"+(F>1?"s":"");return Zt(l.call(n,0,a.maxStringLength),a)+U}var j=L[a.quoteStyle||"single"];j.lastIndex=0;var D=S.call(S.call(n,j,"\\$1"),/[\x00-\x1f]/g,ea);return K(D,"single",a)}function ea(n){var a=n.charCodeAt(0),F={8:"b",9:"t",10:"n",12:"f",13:"r"}[a];return F?"\\"+F:"\\x"+(a<16?"0":"")+d.call(a.toString(16))}function De(n){return"Object("+n+")"}function Mr(n){return n+" { ? }"}function en(n,a,F,U){var j=U?Ur(F,U):T.call(F,", ");return n+" ("+a+") {"+j+"}"}function ra(n){for(var a=0;a<n.length;a++)if(he(n[a],`
23
23
  `)>=0)return!1;return!0}function ta(n,a){var F;if(n.indent===" ")F=" ";else if(typeof n.indent=="number"&&n.indent>0)F=T.call(Array(n.indent+1)," ");else return null;return{base:F,prev:T.call(Array(a+1),F)}}function Ur(n,a){if(n.length===0)return"";var F=`
24
24
  `+a.prev+a.base;return F+T.call(n,","+F)+`
25
- `+a.prev}function Me(n,a){var F=fe(n),U=[];if(F){U.length=n.length;for(var j=0;j<n.length;j++)U[j]=te(n,j)?a(n[j],n):""}var D=typeof I=="function"?I(n):[],me;if(W){me={};for(var be=0;be<D.length;be++)me["$"+D[be]]=D[be]}for(var oe in n)te(n,oe)&&(F&&String(Number(oe))===oe&&oe<n.length||W&&me["$"+oe]instanceof Symbol||(A.call(/[^\w$]/,oe)?U.push(a(oe,n)+": "+a(n[oe],n)):U.push(oe+": "+a(n[oe],n))));if(typeof I=="function")for(var ge=0;ge<D.length;ge++)ue.call(n,D[ge])&&U.push("["+a(D[ge])+"]: "+a(n[D[ge]],n));return U}return je}var We,Zr;function mn(){if(Zr)return We;Zr=1;var e=Fe(),t=Pe(),r=function(v,R,w){for(var h=v,m;(m=h.next)!=null;h=m)if(m.key===R)return h.next=m.next,w||(m.next=v.next,v.next=m),m},o=function(v,R){if(v){var w=r(v,R);return w&&w.value}},s=function(v,R,w){var h=r(v,R);h?h.value=w:v.next={key:R,next:v.next,value:w}},y=function(v,R){return v?!!r(v,R):!1},O=function(v,R){if(v)return r(v,R,!0)};return We=function(){var R,w={assert:function(h){if(!w.has(h))throw new t("Side channel does not contain "+e(h))},delete:function(h){var m=R&&R.next,g=O(R,h);return g&&m&&m===g&&(R=void 0),!!g},get:function(h){return o(R,h)},has:function(h){return y(R,h)},set:function(h,m){R||(R={next:void 0}),s(R,h,m)}};return w},We}var Ge,et;function rt(){return et||(et=1,Ge=Object),Ge}var ze,tt;function gn(){return tt||(tt=1,ze=Error),ze}var He,nt;function Sn(){return nt||(nt=1,He=EvalError),He}var Ve,at;function wn(){return at||(at=1,Ve=RangeError),Ve}var Je,ot;function bn(){return ot||(ot=1,Je=ReferenceError),Je}var Ye,it;function Pn(){return it||(it=1,Ye=SyntaxError),Ye}var Ke,ut;function An(){return ut||(ut=1,Ke=URIError),Ke}var Qe,lt;function En(){return lt||(lt=1,Qe=Math.abs),Qe}var Xe,ft;function On(){return ft||(ft=1,Xe=Math.floor),Xe}var Ze,ct;function Rn(){return ct||(ct=1,Ze=Math.max),Ze}var er,st;function In(){return st||(st=1,er=Math.min),er}var rr,pt;function _n(){return pt||(pt=1,rr=Math.pow),rr}var tr,yt;function Tn(){return yt||(yt=1,tr=Math.round),tr}var nr,dt;function kn(){return dt||(dt=1,nr=Number.isNaN||function(t){return t!==t}),nr}var ar,vt;function xn(){if(vt)return ar;vt=1;var e=kn();return ar=function(r){return e(r)||r===0?r:r<0?-1:1},ar}var or,ht;function Dn(){return ht||(ht=1,or=Object.getOwnPropertyDescriptor),or}var ir,mt;function gt(){if(mt)return ir;mt=1;var e=Dn();if(e)try{e([],"length")}catch{e=null}return ir=e,ir}var ur,St;function $n(){if(St)return ur;St=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return ur=e,ur}var lr,wt;function qn(){return wt||(wt=1,lr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[r]=s;for(var y in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var O=Object.getOwnPropertySymbols(t);if(O.length!==1||O[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(t,r);if(v.value!==s||v.enumerable!==!0)return!1}return!0}),lr}var fr,bt;function Nn(){if(bt)return fr;bt=1;var e=typeof Symbol<"u"&&Symbol,t=qn();return fr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},fr}var cr,Pt;function At(){return Pt||(Pt=1,cr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),cr}var sr,Et;function Ot(){if(Et)return sr;Et=1;var e=rt();return sr=e.getPrototypeOf||null,sr}var pr,Rt;function Fn(){if(Rt)return pr;Rt=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,o="[object Function]",s=function(R,w){for(var h=[],m=0;m<R.length;m+=1)h[m]=R[m];for(var g=0;g<w.length;g+=1)h[g+R.length]=w[g];return h},y=function(R,w){for(var h=[],m=w,g=0;m<R.length;m+=1,g+=1)h[g]=R[m];return h},O=function(v,R){for(var w="",h=0;h<v.length;h+=1)w+=v[h],h+1<v.length&&(w+=R);return w};return pr=function(R){var w=this;if(typeof w!="function"||t.apply(w)!==o)throw new TypeError(e+w);for(var h=y(arguments,1),m,g=function(){if(this instanceof m){var u=w.apply(this,s(h,arguments));return Object(u)===u?u:this}return w.apply(R,s(h,arguments))},f=r(0,w.length-h.length),p=[],b=0;b<f;b++)p[b]="$"+b;if(m=Function("binder","return function ("+O(p,",")+"){ return binder.apply(this,arguments); }")(g),w.prototype){var i=function(){};i.prototype=w.prototype,m.prototype=new i,i.prototype=null}return m},pr}var yr,It;function Ce(){if(It)return yr;It=1;var e=Fn();return yr=Function.prototype.bind||e,yr}var dr,_t;function vr(){return _t||(_t=1,dr=Function.prototype.call),dr}var hr,Tt;function kt(){return Tt||(Tt=1,hr=Function.prototype.apply),hr}var mr,xt;function Cn(){return xt||(xt=1,mr=typeof Reflect<"u"&&Reflect&&Reflect.apply),mr}var gr,Dt;function Mn(){if(Dt)return gr;Dt=1;var e=Ce(),t=kt(),r=vr(),o=Cn();return gr=o||e.call(r,t),gr}var Sr,$t;function qt(){if($t)return Sr;$t=1;var e=Ce(),t=Pe(),r=vr(),o=Mn();return Sr=function(y){if(y.length<1||typeof y[0]!="function")throw new t("a function is required");return o(e,r,y)},Sr}var wr,Nt;function Un(){if(Nt)return wr;Nt=1;var e=qt(),t=gt(),r;try{r=[].__proto__===Array.prototype}catch(O){if(!O||typeof O!="object"||!("code"in O)||O.code!=="ERR_PROTO_ACCESS")throw O}var o=!!r&&t&&t(Object.prototype,"__proto__"),s=Object,y=s.getPrototypeOf;return wr=o&&typeof o.get=="function"?e([o.get]):typeof y=="function"?function(v){return y(v==null?v:s(v))}:!1,wr}var br,Ft;function Ln(){if(Ft)return br;Ft=1;var e=At(),t=Ot(),r=Un();return br=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:r?function(s){return r(s)}:null,br}var Pr,Ct;function Bn(){if(Ct)return Pr;Ct=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Ce();return Pr=r.call(e,t),Pr}var Ar,Mt;function Er(){if(Mt)return Ar;Mt=1;var e,t=rt(),r=gn(),o=Sn(),s=wn(),y=bn(),O=Pn(),v=Pe(),R=An(),w=En(),h=On(),m=Rn(),g=In(),f=_n(),p=Tn(),b=xn(),i=Function,u=function(G){try{return i('"use strict"; return ('+G+").constructor;")()}catch{}},l=gt(),S=$n(),d=function(){throw new v},P=l?function(){try{return arguments.callee,d}catch{try{return l(arguments,"callee").get}catch{return d}}}():d,A=Nn()(),E=Ln(),T=Ot(),q=At(),k=kt(),C=vr(),I={},Y=typeof Uint8Array>"u"||!E?e:E(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&E?E(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":O,"%ThrowTypeError%":P,"%TypedArray%":Y,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":R,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":k,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":T,"%Math.abs%":w,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":f,"%Math.round%":p,"%Math.sign%":b,"%Reflect.getPrototypeOf%":q};if(E)try{null.error}catch(G){var Q=E(E(G));W["%Error.prototype%"]=Q}var ue=function G($){var z;if($==="%AsyncFunction%")z=u("async function () {}");else if($==="%GeneratorFunction%")z=u("function* () {}");else if($==="%AsyncGeneratorFunction%")z=u("async function* () {}");else if($==="%AsyncGenerator%"){var M=G("%AsyncGeneratorFunction%");M&&(z=M.prototype)}else if($==="%AsyncIteratorPrototype%"){var J=G("%AsyncGenerator%");J&&E&&(z=E(J.prototype))}return W[$]=z,z},le={__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"]},x=Ce(),X=Bn(),c=x.call(C,Array.prototype.concat),_=x.call(k,Array.prototype.splice),N=x.call(C,String.prototype.replace),L=x.call(C,String.prototype.slice),K=x.call(C,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,fe=function($){var z=L($,0,1),M=L($,-1);if(z==="%"&&M!=="%")throw new O("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&z!=="%")throw new O("invalid intrinsic syntax, expected opening `%`");var J=[];return N($,V,function(ee,ce,re,te){J[J.length]=re?N(te,Z,"$1"):ce||ee}),J},B=function($,z){var M=$,J;if(X(le,M)&&(J=le[M],M="%"+J[0]+"%"),X(W,M)){var ee=W[M];if(ee===I&&(ee=ue(M)),typeof ee>"u"&&!z)throw new v("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:J,name:M,value:ee}}throw new O("intrinsic "+$+" does not exist!")};return Ar=function($,z){if(typeof $!="string"||$.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!="boolean")throw new v('"allowMissing" argument must be a boolean');if(K(/^%?[^%]*%?$/,$)===null)throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=fe($),J=M.length>0?M[0]:"",ee=B("%"+J+"%",z),ce=ee.name,re=ee.value,te=!1,se=ee.alias;se&&(J=se[0],_(M,c([0,1],se)));for(var Ae=1,he=!0;Ae<M.length;Ae+=1){var pe=M[Ae],Ee=L(pe,0,1),Oe=L(pe,-1);if((Ee==='"'||Ee==="'"||Ee==="`"||Oe==='"'||Oe==="'"||Oe==="`")&&Ee!==Oe)throw new O("property names with quotes must have matching quotes");if((pe==="constructor"||!he)&&(te=!0),J+="."+pe,ce="%"+J+"%",X(W,ce))re=W[ce];else if(re!=null){if(!(pe in re)){if(!z)throw new v("base intrinsic for "+$+" exists, but the property is not available.");return}if(l&&Ae+1>=M.length){var Re=l(re,pe);he=!!Re,he&&"get"in Re&&!("originalValue"in Re.get)?re=Re.get:re=re[pe]}else he=X(re,pe),re=re[pe];he&&!te&&(W[ce]=re)}}return re},Ar}var Or,Ut;function Lt(){if(Ut)return Or;Ut=1;var e=Er(),t=qt(),r=t([e("%String.prototype.indexOf%")]);return Or=function(s,y){var O=e(s,!!y);return typeof O=="function"&&r(s,".prototype.")>-1?t([O]):O},Or}var Rr,Bt;function jt(){if(Bt)return Rr;Bt=1;var e=Er(),t=Lt(),r=Fe(),o=Pe(),s=e("%Map%",!0),y=t("Map.prototype.get",!0),O=t("Map.prototype.set",!0),v=t("Map.prototype.has",!0),R=t("Map.prototype.delete",!0),w=t("Map.prototype.size",!0);return Rr=!!s&&function(){var m,g={assert:function(f){if(!g.has(f))throw new o("Side channel does not contain "+r(f))},delete:function(f){if(m){var p=R(m,f);return w(m)===0&&(m=void 0),p}return!1},get:function(f){if(m)return y(m,f)},has:function(f){return m?v(m,f):!1},set:function(f,p){m||(m=new s),O(m,f,p)}};return g},Rr}var Ir,Wt;function jn(){if(Wt)return Ir;Wt=1;var e=Er(),t=Lt(),r=Fe(),o=jt(),s=Pe(),y=e("%WeakMap%",!0),O=t("WeakMap.prototype.get",!0),v=t("WeakMap.prototype.set",!0),R=t("WeakMap.prototype.has",!0),w=t("WeakMap.prototype.delete",!0);return Ir=y?function(){var m,g,f={assert:function(p){if(!f.has(p))throw new s("Side channel does not contain "+r(p))},delete:function(p){if(y&&p&&(typeof p=="object"||typeof p=="function")){if(m)return w(m,p)}else if(o&&g)return g.delete(p);return!1},get:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?O(m,p):g&&g.get(p)},has:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?R(m,p):!!g&&g.has(p)},set:function(p,b){y&&p&&(typeof p=="object"||typeof p=="function")?(m||(m=new y),v(m,p,b)):o&&(g||(g=o()),g.set(p,b))}};return f}:o,Ir}var _r,Gt;function Wn(){if(Gt)return _r;Gt=1;var e=Pe(),t=Fe(),r=mn(),o=jt(),s=jn(),y=s||o||r;return _r=function(){var v,R={assert:function(w){if(!R.has(w))throw new e("Side channel does not contain "+t(w))},delete:function(w){return!!v&&v.delete(w)},get:function(w){return v&&v.get(w)},has:function(w){return!!v&&v.has(w)},set:function(w,h){v||(v=y()),v.set(w,h)}};return R},_r}var Tr,zt;function kr(){if(zt)return Tr;zt=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Tr={default:r.RFC3986,formatters:{RFC1738:function(o){return e.call(o,t,"+")},RFC3986:function(o){return String(o)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},Tr}var xr,Ht;function Vt(){if(Ht)return xr;Ht=1;var e=kr(),t=Object.prototype.hasOwnProperty,r=Array.isArray,o=function(){for(var i=[],u=0;u<256;++u)i.push("%"+((u<16?"0":"")+u.toString(16)).toUpperCase());return i}(),s=function(u){for(;u.length>1;){var l=u.pop(),S=l.obj[l.prop];if(r(S)){for(var d=[],P=0;P<S.length;++P)typeof S[P]<"u"&&d.push(S[P]);l.obj[l.prop]=d}}},y=function(u,l){for(var S=l&&l.plainObjects?{__proto__:null}:{},d=0;d<u.length;++d)typeof u[d]<"u"&&(S[d]=u[d]);return S},O=function i(u,l,S){if(!l)return u;if(typeof l!="object"&&typeof l!="function"){if(r(u))u.push(l);else if(u&&typeof u=="object")(S&&(S.plainObjects||S.allowPrototypes)||!t.call(Object.prototype,l))&&(u[l]=!0);else return[u,l];return u}if(!u||typeof u!="object")return[u].concat(l);var d=u;return r(u)&&!r(l)&&(d=y(u,S)),r(u)&&r(l)?(l.forEach(function(P,A){if(t.call(u,A)){var E=u[A];E&&typeof E=="object"&&P&&typeof P=="object"?u[A]=i(E,P,S):u.push(P)}else u[A]=P}),u):Object.keys(l).reduce(function(P,A){var E=l[A];return t.call(P,A)?P[A]=i(P[A],E,S):P[A]=E,P},d)},v=function(u,l){return Object.keys(l).reduce(function(S,d){return S[d]=l[d],S},u)},R=function(i,u,l){var S=i.replace(/\+/g," ");if(l==="iso-8859-1")return S.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(S)}catch{return S}},w=1024,h=function(u,l,S,d,P){if(u.length===0)return u;var A=u;if(typeof u=="symbol"?A=Symbol.prototype.toString.call(u):typeof u!="string"&&(A=String(u)),S==="iso-8859-1")return escape(A).replace(/%u[0-9a-f]{4}/gi,function(Y){return"%26%23"+parseInt(Y.slice(2),16)+"%3B"});for(var E="",T=0;T<A.length;T+=w){for(var q=A.length>=w?A.slice(T,T+w):A,k=[],C=0;C<q.length;++C){var I=q.charCodeAt(C);if(I===45||I===46||I===95||I===126||I>=48&&I<=57||I>=65&&I<=90||I>=97&&I<=122||P===e.RFC1738&&(I===40||I===41)){k[k.length]=q.charAt(C);continue}if(I<128){k[k.length]=o[I];continue}if(I<2048){k[k.length]=o[192|I>>6]+o[128|I&63];continue}if(I<55296||I>=57344){k[k.length]=o[224|I>>12]+o[128|I>>6&63]+o[128|I&63];continue}C+=1,I=65536+((I&1023)<<10|q.charCodeAt(C)&1023),k[k.length]=o[240|I>>18]+o[128|I>>12&63]+o[128|I>>6&63]+o[128|I&63]}E+=k.join("")}return E},m=function(u){for(var l=[{obj:{o:u},prop:"o"}],S=[],d=0;d<l.length;++d)for(var P=l[d],A=P.obj[P.prop],E=Object.keys(A),T=0;T<E.length;++T){var q=E[T],k=A[q];typeof k=="object"&&k!==null&&S.indexOf(k)===-1&&(l.push({obj:A,prop:q}),S.push(k))}return s(l),u},g=function(u){return Object.prototype.toString.call(u)==="[object RegExp]"},f=function(u){return!u||typeof u!="object"?!1:!!(u.constructor&&u.constructor.isBuffer&&u.constructor.isBuffer(u))},p=function(u,l){return[].concat(u,l)},b=function(u,l){if(r(u)){for(var S=[],d=0;d<u.length;d+=1)S.push(l(u[d]));return S}return l(u)};return xr={arrayToObject:y,assign:v,combine:p,compact:m,decode:R,encode:h,isBuffer:f,isRegExp:g,maybeMap:b,merge:O},xr}var Dr,Jt;function Gn(){if(Jt)return Dr;Jt=1;var e=Wn(),t=Vt(),r=kr(),o=Object.prototype.hasOwnProperty,s={brackets:function(i){return i+"[]"},comma:"comma",indices:function(i,u){return i+"["+u+"]"},repeat:function(i){return i}},y=Array.isArray,O=Array.prototype.push,v=function(b,i){O.apply(b,y(i)?i:[i])},R=Date.prototype.toISOString,w=r.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:w,formatter:r.formatters[w],indices:!1,serializeDate:function(i){return R.call(i)},skipNulls:!1,strictNullHandling:!1},m=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint"},g={},f=function b(i,u,l,S,d,P,A,E,T,q,k,C,I,Y,W,Q,ue,le){for(var x=i,X=le,c=0,_=!1;(X=X.get(g))!==void 0&&!_;){var N=X.get(i);if(c+=1,typeof N<"u"){if(N===c)throw new RangeError("Cyclic object value");_=!0}typeof X.get(g)>"u"&&(c=0)}if(typeof q=="function"?x=q(u,x):x instanceof Date?x=I(x):l==="comma"&&y(x)&&(x=t.maybeMap(x,function(ce){return ce instanceof Date?I(ce):ce})),x===null){if(P)return T&&!Q?T(u,h.encoder,ue,"key",Y):u;x=""}if(m(x)||t.isBuffer(x)){if(T){var L=Q?u:T(u,h.encoder,ue,"key",Y);return[W(L)+"="+W(T(x,h.encoder,ue,"value",Y))]}return[W(u)+"="+W(String(x))]}var K=[];if(typeof x>"u")return K;var V;if(l==="comma"&&y(x))Q&&T&&(x=t.maybeMap(x,T)),V=[{value:x.length>0?x.join(",")||null:void 0}];else if(y(q))V=q;else{var Z=Object.keys(x);V=k?Z.sort(k):Z}var fe=E?String(u).replace(/\./g,"%2E"):String(u),B=S&&y(x)&&x.length===1?fe+"[]":fe;if(d&&y(x)&&x.length===0)return B+"[]";for(var G=0;G<V.length;++G){var $=V[G],z=typeof $=="object"&&$&&typeof $.value<"u"?$.value:x[$];if(!(A&&z===null)){var M=C&&E?String($).replace(/\./g,"%2E"):String($),J=y(x)?typeof l=="function"?l(B,M):B:B+(C?"."+M:"["+M+"]");le.set(i,c);var ee=e();ee.set(g,le),v(K,b(z,J,l,S,d,P,A,E,l==="comma"&&Q&&y(x)?null:T,q,k,C,I,Y,W,Q,ue,ee))}}return K},p=function(i){if(!i)return h;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.encodeDotInKeys<"u"&&typeof i.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(i.encoder!==null&&typeof i.encoder<"u"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var u=i.charset||h.charset;if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var l=r.default;if(typeof i.format<"u"){if(!o.call(r.formatters,i.format))throw new TypeError("Unknown format option provided.");l=i.format}var S=r.formatters[l],d=h.filter;(typeof i.filter=="function"||y(i.filter))&&(d=i.filter);var P;if(i.arrayFormat in s?P=i.arrayFormat:"indices"in i?P=i.indices?"indices":"repeat":P=h.arrayFormat,"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var A=typeof i.allowDots>"u"?i.encodeDotInKeys===!0?!0:h.allowDots:!!i.allowDots;return{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:h.addQueryPrefix,allowDots:A,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:P,charset:u,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!i.commaRoundTrip,delimiter:typeof i.delimiter>"u"?h.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:h.encode,encodeDotInKeys:typeof i.encodeDotInKeys=="boolean"?i.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof i.encoder=="function"?i.encoder:h.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:h.encodeValuesOnly,filter:d,format:l,formatter:S,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:h.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:h.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:h.strictNullHandling}};return Dr=function(b,i){var u=b,l=p(i),S,d;typeof l.filter=="function"?(d=l.filter,u=d("",u)):y(l.filter)&&(d=l.filter,S=d);var P=[];if(typeof u!="object"||u===null)return"";var A=s[l.arrayFormat],E=A==="comma"&&l.commaRoundTrip;S||(S=Object.keys(u)),l.sort&&S.sort(l.sort);for(var T=e(),q=0;q<S.length;++q){var k=S[q],C=u[k];l.skipNulls&&C===null||v(P,f(C,k,A,E,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,T))}var I=P.join(l.delimiter),Y=l.addQueryPrefix===!0?"?":"";return l.charsetSentinel&&(l.charset==="iso-8859-1"?Y+="utf8=%26%2310003%3B&":Y+="utf8=%E2%9C%93&"),I.length>0?Y+I:""},Dr}var $r,Yt;function zn(){if(Yt)return $r;Yt=1;var e=Vt(),t=Object.prototype.hasOwnProperty,r=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(g){return g.replace(/&#(\d+);/g,function(f,p){return String.fromCharCode(parseInt(p,10))})},y=function(g,f,p){if(g&&typeof g=="string"&&f.comma&&g.indexOf(",")>-1)return g.split(",");if(f.throwOnLimitExceeded&&p>=f.arrayLimit)throw new RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");return g},O="utf8=%26%2310003%3B",v="utf8=%E2%9C%93",R=function(f,p){var b={__proto__:null},i=p.ignoreQueryPrefix?f.replace(/^\?/,""):f;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=p.parameterLimit===1/0?void 0:p.parameterLimit,l=i.split(p.delimiter,p.throwOnLimitExceeded?u+1:u);if(p.throwOnLimitExceeded&&l.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(u===1?"":"s")+" allowed.");var S=-1,d,P=p.charset;if(p.charsetSentinel)for(d=0;d<l.length;++d)l[d].indexOf("utf8=")===0&&(l[d]===v?P="utf-8":l[d]===O&&(P="iso-8859-1"),S=d,d=l.length);for(d=0;d<l.length;++d)if(d!==S){var A=l[d],E=A.indexOf("]="),T=E===-1?A.indexOf("="):E+1,q,k;T===-1?(q=p.decoder(A,o.decoder,P,"key"),k=p.strictNullHandling?null:""):(q=p.decoder(A.slice(0,T),o.decoder,P,"key"),k=e.maybeMap(y(A.slice(T+1),p,r(b[q])?b[q].length:0),function(I){return p.decoder(I,o.decoder,P,"value")})),k&&p.interpretNumericEntities&&P==="iso-8859-1"&&(k=s(String(k))),A.indexOf("[]=")>-1&&(k=r(k)?[k]:k);var C=t.call(b,q);C&&p.duplicates==="combine"?b[q]=e.combine(b[q],k):(!C||p.duplicates==="last")&&(b[q]=k)}return b},w=function(g,f,p,b){var i=0;if(g.length>0&&g[g.length-1]==="[]"){var u=g.slice(0,-1).join("");i=Array.isArray(f)&&f[u]?f[u].length:0}for(var l=b?f:y(f,p,i),S=g.length-1;S>=0;--S){var d,P=g[S];if(P==="[]"&&p.parseArrays)d=p.allowEmptyArrays&&(l===""||p.strictNullHandling&&l===null)?[]:e.combine([],l);else{d=p.plainObjects?{__proto__:null}:{};var A=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,E=p.decodeDotInKeys?A.replace(/%2E/g,"."):A,T=parseInt(E,10);!p.parseArrays&&E===""?d={0:l}:!isNaN(T)&&P!==E&&String(T)===E&&T>=0&&p.parseArrays&&T<=p.arrayLimit?(d=[],d[T]=l):E!=="__proto__"&&(d[E]=l)}l=d}return l},h=function(f,p,b,i){if(f){var u=b.allowDots?f.replace(/\.([^.[]+)/g,"[$1]"):f,l=/(\[[^[\]]*])/,S=/(\[[^[\]]*])/g,d=b.depth>0&&l.exec(u),P=d?u.slice(0,d.index):u,A=[];if(P){if(!b.plainObjects&&t.call(Object.prototype,P)&&!b.allowPrototypes)return;A.push(P)}for(var E=0;b.depth>0&&(d=S.exec(u))!==null&&E<b.depth;){if(E+=1,!b.plainObjects&&t.call(Object.prototype,d[1].slice(1,-1))&&!b.allowPrototypes)return;A.push(d[1])}if(d){if(b.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+b.depth+" and strictDepth is true");A.push("["+u.slice(d.index)+"]")}return w(A,p,b,i)}},m=function(f){if(!f)return o;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.decodeDotInKeys<"u"&&typeof f.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(f.decoder!==null&&typeof f.decoder<"u"&&typeof f.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof f.throwOnLimitExceeded<"u"&&typeof f.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var p=typeof f.charset>"u"?o.charset:f.charset,b=typeof f.duplicates>"u"?o.duplicates:f.duplicates;if(b!=="combine"&&b!=="first"&&b!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof f.allowDots>"u"?f.decodeDotInKeys===!0?!0:o.allowDots:!!f.allowDots;return{allowDots:i,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:typeof f.allowPrototypes=="boolean"?f.allowPrototypes:o.allowPrototypes,allowSparse:typeof f.allowSparse=="boolean"?f.allowSparse:o.allowSparse,arrayLimit:typeof f.arrayLimit=="number"?f.arrayLimit:o.arrayLimit,charset:p,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:o.charsetSentinel,comma:typeof f.comma=="boolean"?f.comma:o.comma,decodeDotInKeys:typeof f.decodeDotInKeys=="boolean"?f.decodeDotInKeys:o.decodeDotInKeys,decoder:typeof f.decoder=="function"?f.decoder:o.decoder,delimiter:typeof f.delimiter=="string"||e.isRegExp(f.delimiter)?f.delimiter:o.delimiter,depth:typeof f.depth=="number"||f.depth===!1?+f.depth:o.depth,duplicates:b,ignoreQueryPrefix:f.ignoreQueryPrefix===!0,interpretNumericEntities:typeof f.interpretNumericEntities=="boolean"?f.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof f.parameterLimit=="number"?f.parameterLimit:o.parameterLimit,parseArrays:f.parseArrays!==!1,plainObjects:typeof f.plainObjects=="boolean"?f.plainObjects:o.plainObjects,strictDepth:typeof f.strictDepth=="boolean"?!!f.strictDepth:o.strictDepth,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:typeof f.throwOnLimitExceeded=="boolean"?f.throwOnLimitExceeded:!1}};return $r=function(g,f){var p=m(f);if(g===""||g===null||typeof g>"u")return p.plainObjects?{__proto__:null}:{};for(var b=typeof g=="string"?R(g,p):g,i=p.plainObjects?{__proto__:null}:{},u=Object.keys(b),l=0;l<u.length;++l){var S=u[l],d=h(S,b[S],p,typeof g=="string");i=e.merge(i,d,p)}return p.allowSparse===!0?i:e.compact(i)},$r}var qr,Kt;function Hn(){if(Kt)return qr;Kt=1;var e=Gn(),t=zn(),r=kr();return qr={formats:r,parse:t,stringify:e},qr}var Vn=Hn();const Nr=sn(Vn),we={token:"/lxwork/api/auth/token",permissionTicket:"/lxwork/api/auth/create-permission-ticket",authToken:"/sso/realms/myrealm/protocol/openid-connect/token",refreshToken:"/lxwork/api/auth/refresh",userGroup:"/lxwork/api/auth/users/groups",groups:"/lxwork/api/auth/groups",allCompany:"/lxwork/api/auth/groups/branch"};let Fr=0;async function de(e,t){const r=await fetch(e,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+ie.getToken()},...t||{}});if(!r.ok){console.dir(r,await r.json());const o=localStorage.getItem("APPID");if(r.status===401&&o&&Fr<10)return Fr+=1,await new ie({APPID:o}).SSOLogin(),await de(e,t);throw new Error(`HTTP error! status: ${r.status}`)}return Fr=0,await r.json()}const ve=()=>({getTokenInfo:e=>de(`${we.token}?${Nr.stringify(e)}`),createPermissionTicket:e=>de(`${we.permissionTicket}`,{method:"POST",body:JSON.stringify(e)}),getAuthTokenInfo:e=>{const t=new URLSearchParams;return t.append("grant_type",e.grant_type),t.append("ticket",e.ticket),de(`${we.authToken}`,{method:"POST",body:t,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Bearer "+ie.getToken()}})},refreshAuthToken:()=>de(`${we.refreshToken}`,{}),getCompanyList:()=>de(`${we.allCompany}`,{}),getUserGroupList:()=>de(`${we.userGroup}`,{}),getGroupDetail:({id:e})=>de(`${we.groups}/${e}`)});function Cr(e){try{const r=new URL(e).hostname,o=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,s=/^\[?([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\]?$/;return!!(o.test(r)||s.test(r))}catch{return!1}}function Qt(e){const t={};return new URL(e).searchParams.forEach((o,s)=>{t[s]=o}),t}function Jn(e,t){const r=e.indexOf(t);return r!==-1?e.substring(0,r):e}function Xt(e){const t=window.location.href,r=new URL(t),o=new URLSearchParams(r.search);e.forEach(s=>{o.delete(s)}),r.search=o.toString(),window.history.pushState({},"",r.href)}class xe extends Error{}xe.prototype.name="InvalidTokenError";function Yn(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let o=r.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function Kn(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Yn(t)}catch{return atob(t)}}function Qn(e,t){if(typeof e!="string")throw new xe("Invalid token specified: must be a string");t||(t={});const r=t.header===!0?0:1,o=e.split(".")[r];if(typeof o!="string")throw new xe(`Invalid token specified: missing part #${r+1}`);let s;try{s=Kn(o)}catch(y){throw new xe(`Invalid token specified: invalid base64 for part #${r+1} (${y.message})`)}try{return JSON.parse(s)}catch(y){throw new xe(`Invalid token specified: invalid json for part #${r+1} (${y.message})`)}}class ie{constructor({APPID:t}){cn(this,"APPID");this.APPID=t,localStorage.setItem("APPID",this.APPID)}async SSOLogin(){const t=Qt(location.href),r=["state","code","iss","session_state"],o=r.length;if(Object.keys(t).length!==o){this.login();return}let s=[],y=0;for(;y<o;)Object.keys(t).includes(r[y])&&s.length<=o?s.push(r[y]):s=[],y++;if(s.length===o){ie.removeToken();let O;const v=ae.getItem("login_redirect_uri"),{code:R,state:w}=t;try{O=await ve().getTokenInfo({code:R,client_id:this.APPID,state:w,redirect_uri:v}),this.setToken(O);const{ticket:h}=await ve().createPermissionTicket({client_id:this.APPID}),m=await ve().getAuthTokenInfo({grant_type:"urn:ietf:params:oauth:grant-type:uma-ticket",ticket:h});this.setToken(m,"auth"),Xt(r)}catch{ie.removeToken(),window.location.href=v}}else{this.login();return}}login(){const{href:t,origin:r}=window.location,o={redirect_uri:t,client_id:this.APPID,scope:"openid"};ae.setItem("login_redirect_uri",o.redirect_uri),Cr(r)&&window.location.hostname!=="localhost"&&(o.keycloak_host=r+"/sso/");let s=`/lxwork/api/auth/login?${Nr.stringify(o)}`;window.location.replace(s)}logout(){const{href:t,origin:r}=window.location,{id_token:o}=ie.getTokenInfo()||{};ie.removeToken(),ae.removeItem("login_redirect_uri");const s={id_token_hint:o,post_logout_redirect_uri:t};Cr(r)&&window.location.hostname!=="localhost"&&(s.keycloak_host=r+"/sso/");let y=`/lxwork/api/auth/endsession?${Nr.stringify(s)}`;window.location.href=y}setToken(t,r){if(r==="auth"){const o=ae.getItem("SSO-tokenInfo");!t.id_token&&o&&(t.id_token=o.id_token),ae.setItem("tokenInfo",t)}else ae.setItem("SSO-tokenInfo",t)}async getCompanyList(){return await ve().getCompanyList()}async getUserBranchGroup(){const t=await ve().getUserGroupList(),r=t.find(y=>y.attributes.type.includes("3"));if(r)return r.name;const o=async y=>{if(y.attributes.type.includes("3"))return y.name;if(y.parentId){const O=await ve().getGroupDetail({id:y.parentId});if(O)return o(O)}return""};let s="";for(let y=0;y<t.length&&(s=await o(t[y]),!s);y+=1);return s}async refreshToken(t){const{exp:r}=ie.getDecodeToken(),o=Date.now()/1e3;if(t||o>r-200&&o<r){const s=await ve().refreshAuthToken();this.setToken(s),this.setToken(s,"auth")}}static getTokenInfo(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const r=ae.getItem("SSO-tokenInfo");return ae.getItem("tokenInfo")||r||null}static getToken(){const t=ie.getTokenInfo();return t==null?void 0:t.access_token}static getRefreshToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const r=ae.getItem("SSO-tokenInfo"),o=ae.getItem("tokenInfo");return(o==null?void 0:o.refresh_token)||(r==null?void 0:r.refresh_token)||""}static getDecodeToken(){const t=ie.getToken();return Qn(t)}static removeToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");ae.removeItem("tokenInfo"),ae.removeItem("SSO-tokenInfo")}}H.AuthLogin=ie,H.LocalStorageUtil=ae,H.Tree=Kr,H.getUrlParams=Qt,H.isIpAddress=Cr,H.removeUrlParam=Xt,H.subBefore=Jn,H.useSSOApi=ve,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
25
+ `+a.prev}function Me(n,a){var F=fe(n),U=[];if(F){U.length=n.length;for(var j=0;j<n.length;j++)U[j]=te(n,j)?a(n[j],n):""}var D=typeof I=="function"?I(n):[],me;if(W){me={};for(var be=0;be<D.length;be++)me["$"+D[be]]=D[be]}for(var oe in n)te(n,oe)&&(F&&String(Number(oe))===oe&&oe<n.length||W&&me["$"+oe]instanceof Symbol||(A.call(/[^\w$]/,oe)?U.push(a(oe,n)+": "+a(n[oe],n)):U.push(oe+": "+a(n[oe],n))));if(typeof I=="function")for(var ge=0;ge<D.length;ge++)ue.call(n,D[ge])&&U.push("["+a(D[ge])+"]: "+a(n[D[ge]],n));return U}return je}var We,Zr;function mn(){if(Zr)return We;Zr=1;var e=Fe(),t=Pe(),r=function(v,R,w){for(var h=v,m;(m=h.next)!=null;h=m)if(m.key===R)return h.next=m.next,w||(m.next=v.next,v.next=m),m},o=function(v,R){if(v){var w=r(v,R);return w&&w.value}},s=function(v,R,w){var h=r(v,R);h?h.value=w:v.next={key:R,next:v.next,value:w}},y=function(v,R){return v?!!r(v,R):!1},O=function(v,R){if(v)return r(v,R,!0)};return We=function(){var R,w={assert:function(h){if(!w.has(h))throw new t("Side channel does not contain "+e(h))},delete:function(h){var m=R&&R.next,g=O(R,h);return g&&m&&m===g&&(R=void 0),!!g},get:function(h){return o(R,h)},has:function(h){return y(R,h)},set:function(h,m){R||(R={next:void 0}),s(R,h,m)}};return w},We}var Ge,et;function rt(){return et||(et=1,Ge=Object),Ge}var ze,tt;function gn(){return tt||(tt=1,ze=Error),ze}var He,nt;function Sn(){return nt||(nt=1,He=EvalError),He}var Ve,at;function wn(){return at||(at=1,Ve=RangeError),Ve}var Je,ot;function bn(){return ot||(ot=1,Je=ReferenceError),Je}var Ye,it;function Pn(){return it||(it=1,Ye=SyntaxError),Ye}var Ke,ut;function An(){return ut||(ut=1,Ke=URIError),Ke}var Qe,lt;function En(){return lt||(lt=1,Qe=Math.abs),Qe}var Xe,ft;function On(){return ft||(ft=1,Xe=Math.floor),Xe}var Ze,ct;function Rn(){return ct||(ct=1,Ze=Math.max),Ze}var er,st;function In(){return st||(st=1,er=Math.min),er}var rr,pt;function _n(){return pt||(pt=1,rr=Math.pow),rr}var tr,yt;function Tn(){return yt||(yt=1,tr=Math.round),tr}var nr,dt;function kn(){return dt||(dt=1,nr=Number.isNaN||function(t){return t!==t}),nr}var ar,vt;function xn(){if(vt)return ar;vt=1;var e=kn();return ar=function(r){return e(r)||r===0?r:r<0?-1:1},ar}var or,ht;function Dn(){return ht||(ht=1,or=Object.getOwnPropertyDescriptor),or}var ir,mt;function gt(){if(mt)return ir;mt=1;var e=Dn();if(e)try{e([],"length")}catch{e=null}return ir=e,ir}var ur,St;function $n(){if(St)return ur;St=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return ur=e,ur}var lr,wt;function qn(){return wt||(wt=1,lr=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),o=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(o)!=="[object Symbol]")return!1;var s=42;t[r]=s;for(var y in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var O=Object.getOwnPropertySymbols(t);if(O.length!==1||O[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var v=Object.getOwnPropertyDescriptor(t,r);if(v.value!==s||v.enumerable!==!0)return!1}return!0}),lr}var fr,bt;function Nn(){if(bt)return fr;bt=1;var e=typeof Symbol<"u"&&Symbol,t=qn();return fr=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},fr}var cr,Pt;function At(){return Pt||(Pt=1,cr=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),cr}var sr,Et;function Ot(){if(Et)return sr;Et=1;var e=rt();return sr=e.getPrototypeOf||null,sr}var pr,Rt;function Fn(){if(Rt)return pr;Rt=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,o="[object Function]",s=function(R,w){for(var h=[],m=0;m<R.length;m+=1)h[m]=R[m];for(var g=0;g<w.length;g+=1)h[g+R.length]=w[g];return h},y=function(R,w){for(var h=[],m=w,g=0;m<R.length;m+=1,g+=1)h[g]=R[m];return h},O=function(v,R){for(var w="",h=0;h<v.length;h+=1)w+=v[h],h+1<v.length&&(w+=R);return w};return pr=function(R){var w=this;if(typeof w!="function"||t.apply(w)!==o)throw new TypeError(e+w);for(var h=y(arguments,1),m,g=function(){if(this instanceof m){var u=w.apply(this,s(h,arguments));return Object(u)===u?u:this}return w.apply(R,s(h,arguments))},f=r(0,w.length-h.length),p=[],b=0;b<f;b++)p[b]="$"+b;if(m=Function("binder","return function ("+O(p,",")+"){ return binder.apply(this,arguments); }")(g),w.prototype){var i=function(){};i.prototype=w.prototype,m.prototype=new i,i.prototype=null}return m},pr}var yr,It;function Ce(){if(It)return yr;It=1;var e=Fn();return yr=Function.prototype.bind||e,yr}var dr,_t;function vr(){return _t||(_t=1,dr=Function.prototype.call),dr}var hr,Tt;function kt(){return Tt||(Tt=1,hr=Function.prototype.apply),hr}var mr,xt;function Cn(){return xt||(xt=1,mr=typeof Reflect<"u"&&Reflect&&Reflect.apply),mr}var gr,Dt;function Mn(){if(Dt)return gr;Dt=1;var e=Ce(),t=kt(),r=vr(),o=Cn();return gr=o||e.call(r,t),gr}var Sr,$t;function qt(){if($t)return Sr;$t=1;var e=Ce(),t=Pe(),r=vr(),o=Mn();return Sr=function(y){if(y.length<1||typeof y[0]!="function")throw new t("a function is required");return o(e,r,y)},Sr}var wr,Nt;function Un(){if(Nt)return wr;Nt=1;var e=qt(),t=gt(),r;try{r=[].__proto__===Array.prototype}catch(O){if(!O||typeof O!="object"||!("code"in O)||O.code!=="ERR_PROTO_ACCESS")throw O}var o=!!r&&t&&t(Object.prototype,"__proto__"),s=Object,y=s.getPrototypeOf;return wr=o&&typeof o.get=="function"?e([o.get]):typeof y=="function"?function(v){return y(v==null?v:s(v))}:!1,wr}var br,Ft;function Ln(){if(Ft)return br;Ft=1;var e=At(),t=Ot(),r=Un();return br=e?function(s){return e(s)}:t?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return t(s)}:r?function(s){return r(s)}:null,br}var Pr,Ct;function Bn(){if(Ct)return Pr;Ct=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=Ce();return Pr=r.call(e,t),Pr}var Ar,Mt;function Er(){if(Mt)return Ar;Mt=1;var e,t=rt(),r=gn(),o=Sn(),s=wn(),y=bn(),O=Pn(),v=Pe(),R=An(),w=En(),h=On(),m=Rn(),g=In(),f=_n(),p=Tn(),b=xn(),i=Function,u=function(G){try{return i('"use strict"; return ('+G+").constructor;")()}catch{}},l=gt(),S=$n(),d=function(){throw new v},P=l?function(){try{return arguments.callee,d}catch{try{return l(arguments,"callee").get}catch{return d}}}():d,A=Nn()(),E=Ln(),T=Ot(),q=At(),k=kt(),C=vr(),I={},Y=typeof Uint8Array>"u"||!E?e:E(Uint8Array),W={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&E?E([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":I,"%AsyncGenerator%":I,"%AsyncGeneratorFunction%":I,"%AsyncIteratorPrototype%":I,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":o,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":I,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&E?E(E([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!E?e:E(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":l,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":s,"%ReferenceError%":y,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!E?e:E(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&E?E(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":O,"%ThrowTypeError%":P,"%TypedArray%":Y,"%TypeError%":v,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":R,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":C,"%Function.prototype.apply%":k,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":T,"%Math.abs%":w,"%Math.floor%":h,"%Math.max%":m,"%Math.min%":g,"%Math.pow%":f,"%Math.round%":p,"%Math.sign%":b,"%Reflect.getPrototypeOf%":q};if(E)try{null.error}catch(G){var Q=E(E(G));W["%Error.prototype%"]=Q}var ue=function G($){var z;if($==="%AsyncFunction%")z=u("async function () {}");else if($==="%GeneratorFunction%")z=u("function* () {}");else if($==="%AsyncGeneratorFunction%")z=u("async function* () {}");else if($==="%AsyncGenerator%"){var M=G("%AsyncGeneratorFunction%");M&&(z=M.prototype)}else if($==="%AsyncIteratorPrototype%"){var J=G("%AsyncGenerator%");J&&E&&(z=E(J.prototype))}return W[$]=z,z},le={__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"]},x=Ce(),X=Bn(),c=x.call(C,Array.prototype.concat),_=x.call(k,Array.prototype.splice),N=x.call(C,String.prototype.replace),L=x.call(C,String.prototype.slice),K=x.call(C,RegExp.prototype.exec),V=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Z=/\\(\\)?/g,fe=function($){var z=L($,0,1),M=L($,-1);if(z==="%"&&M!=="%")throw new O("invalid intrinsic syntax, expected closing `%`");if(M==="%"&&z!=="%")throw new O("invalid intrinsic syntax, expected opening `%`");var J=[];return N($,V,function(ee,ce,re,te){J[J.length]=re?N(te,Z,"$1"):ce||ee}),J},B=function($,z){var M=$,J;if(X(le,M)&&(J=le[M],M="%"+J[0]+"%"),X(W,M)){var ee=W[M];if(ee===I&&(ee=ue(M)),typeof ee>"u"&&!z)throw new v("intrinsic "+$+" exists, but is not available. Please file an issue!");return{alias:J,name:M,value:ee}}throw new O("intrinsic "+$+" does not exist!")};return Ar=function($,z){if(typeof $!="string"||$.length===0)throw new v("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof z!="boolean")throw new v('"allowMissing" argument must be a boolean');if(K(/^%?[^%]*%?$/,$)===null)throw new O("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var M=fe($),J=M.length>0?M[0]:"",ee=B("%"+J+"%",z),ce=ee.name,re=ee.value,te=!1,se=ee.alias;se&&(J=se[0],_(M,c([0,1],se)));for(var Ae=1,he=!0;Ae<M.length;Ae+=1){var pe=M[Ae],Ee=L(pe,0,1),Oe=L(pe,-1);if((Ee==='"'||Ee==="'"||Ee==="`"||Oe==='"'||Oe==="'"||Oe==="`")&&Ee!==Oe)throw new O("property names with quotes must have matching quotes");if((pe==="constructor"||!he)&&(te=!0),J+="."+pe,ce="%"+J+"%",X(W,ce))re=W[ce];else if(re!=null){if(!(pe in re)){if(!z)throw new v("base intrinsic for "+$+" exists, but the property is not available.");return}if(l&&Ae+1>=M.length){var Re=l(re,pe);he=!!Re,he&&"get"in Re&&!("originalValue"in Re.get)?re=Re.get:re=re[pe]}else he=X(re,pe),re=re[pe];he&&!te&&(W[ce]=re)}}return re},Ar}var Or,Ut;function Lt(){if(Ut)return Or;Ut=1;var e=Er(),t=qt(),r=t([e("%String.prototype.indexOf%")]);return Or=function(s,y){var O=e(s,!!y);return typeof O=="function"&&r(s,".prototype.")>-1?t([O]):O},Or}var Rr,Bt;function jt(){if(Bt)return Rr;Bt=1;var e=Er(),t=Lt(),r=Fe(),o=Pe(),s=e("%Map%",!0),y=t("Map.prototype.get",!0),O=t("Map.prototype.set",!0),v=t("Map.prototype.has",!0),R=t("Map.prototype.delete",!0),w=t("Map.prototype.size",!0);return Rr=!!s&&function(){var m,g={assert:function(f){if(!g.has(f))throw new o("Side channel does not contain "+r(f))},delete:function(f){if(m){var p=R(m,f);return w(m)===0&&(m=void 0),p}return!1},get:function(f){if(m)return y(m,f)},has:function(f){return m?v(m,f):!1},set:function(f,p){m||(m=new s),O(m,f,p)}};return g},Rr}var Ir,Wt;function jn(){if(Wt)return Ir;Wt=1;var e=Er(),t=Lt(),r=Fe(),o=jt(),s=Pe(),y=e("%WeakMap%",!0),O=t("WeakMap.prototype.get",!0),v=t("WeakMap.prototype.set",!0),R=t("WeakMap.prototype.has",!0),w=t("WeakMap.prototype.delete",!0);return Ir=y?function(){var m,g,f={assert:function(p){if(!f.has(p))throw new s("Side channel does not contain "+r(p))},delete:function(p){if(y&&p&&(typeof p=="object"||typeof p=="function")){if(m)return w(m,p)}else if(o&&g)return g.delete(p);return!1},get:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?O(m,p):g&&g.get(p)},has:function(p){return y&&p&&(typeof p=="object"||typeof p=="function")&&m?R(m,p):!!g&&g.has(p)},set:function(p,b){y&&p&&(typeof p=="object"||typeof p=="function")?(m||(m=new y),v(m,p,b)):o&&(g||(g=o()),g.set(p,b))}};return f}:o,Ir}var _r,Gt;function Wn(){if(Gt)return _r;Gt=1;var e=Pe(),t=Fe(),r=mn(),o=jt(),s=jn(),y=s||o||r;return _r=function(){var v,R={assert:function(w){if(!R.has(w))throw new e("Side channel does not contain "+t(w))},delete:function(w){return!!v&&v.delete(w)},get:function(w){return v&&v.get(w)},has:function(w){return!!v&&v.has(w)},set:function(w,h){v||(v=y()),v.set(w,h)}};return R},_r}var Tr,zt;function kr(){if(zt)return Tr;zt=1;var e=String.prototype.replace,t=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};return Tr={default:r.RFC3986,formatters:{RFC1738:function(o){return e.call(o,t,"+")},RFC3986:function(o){return String(o)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986},Tr}var xr,Ht;function Vt(){if(Ht)return xr;Ht=1;var e=kr(),t=Object.prototype.hasOwnProperty,r=Array.isArray,o=function(){for(var i=[],u=0;u<256;++u)i.push("%"+((u<16?"0":"")+u.toString(16)).toUpperCase());return i}(),s=function(u){for(;u.length>1;){var l=u.pop(),S=l.obj[l.prop];if(r(S)){for(var d=[],P=0;P<S.length;++P)typeof S[P]<"u"&&d.push(S[P]);l.obj[l.prop]=d}}},y=function(u,l){for(var S=l&&l.plainObjects?{__proto__:null}:{},d=0;d<u.length;++d)typeof u[d]<"u"&&(S[d]=u[d]);return S},O=function i(u,l,S){if(!l)return u;if(typeof l!="object"&&typeof l!="function"){if(r(u))u.push(l);else if(u&&typeof u=="object")(S&&(S.plainObjects||S.allowPrototypes)||!t.call(Object.prototype,l))&&(u[l]=!0);else return[u,l];return u}if(!u||typeof u!="object")return[u].concat(l);var d=u;return r(u)&&!r(l)&&(d=y(u,S)),r(u)&&r(l)?(l.forEach(function(P,A){if(t.call(u,A)){var E=u[A];E&&typeof E=="object"&&P&&typeof P=="object"?u[A]=i(E,P,S):u.push(P)}else u[A]=P}),u):Object.keys(l).reduce(function(P,A){var E=l[A];return t.call(P,A)?P[A]=i(P[A],E,S):P[A]=E,P},d)},v=function(u,l){return Object.keys(l).reduce(function(S,d){return S[d]=l[d],S},u)},R=function(i,u,l){var S=i.replace(/\+/g," ");if(l==="iso-8859-1")return S.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(S)}catch{return S}},w=1024,h=function(u,l,S,d,P){if(u.length===0)return u;var A=u;if(typeof u=="symbol"?A=Symbol.prototype.toString.call(u):typeof u!="string"&&(A=String(u)),S==="iso-8859-1")return escape(A).replace(/%u[0-9a-f]{4}/gi,function(Y){return"%26%23"+parseInt(Y.slice(2),16)+"%3B"});for(var E="",T=0;T<A.length;T+=w){for(var q=A.length>=w?A.slice(T,T+w):A,k=[],C=0;C<q.length;++C){var I=q.charCodeAt(C);if(I===45||I===46||I===95||I===126||I>=48&&I<=57||I>=65&&I<=90||I>=97&&I<=122||P===e.RFC1738&&(I===40||I===41)){k[k.length]=q.charAt(C);continue}if(I<128){k[k.length]=o[I];continue}if(I<2048){k[k.length]=o[192|I>>6]+o[128|I&63];continue}if(I<55296||I>=57344){k[k.length]=o[224|I>>12]+o[128|I>>6&63]+o[128|I&63];continue}C+=1,I=65536+((I&1023)<<10|q.charCodeAt(C)&1023),k[k.length]=o[240|I>>18]+o[128|I>>12&63]+o[128|I>>6&63]+o[128|I&63]}E+=k.join("")}return E},m=function(u){for(var l=[{obj:{o:u},prop:"o"}],S=[],d=0;d<l.length;++d)for(var P=l[d],A=P.obj[P.prop],E=Object.keys(A),T=0;T<E.length;++T){var q=E[T],k=A[q];typeof k=="object"&&k!==null&&S.indexOf(k)===-1&&(l.push({obj:A,prop:q}),S.push(k))}return s(l),u},g=function(u){return Object.prototype.toString.call(u)==="[object RegExp]"},f=function(u){return!u||typeof u!="object"?!1:!!(u.constructor&&u.constructor.isBuffer&&u.constructor.isBuffer(u))},p=function(u,l){return[].concat(u,l)},b=function(u,l){if(r(u)){for(var S=[],d=0;d<u.length;d+=1)S.push(l(u[d]));return S}return l(u)};return xr={arrayToObject:y,assign:v,combine:p,compact:m,decode:R,encode:h,isBuffer:f,isRegExp:g,maybeMap:b,merge:O},xr}var Dr,Jt;function Gn(){if(Jt)return Dr;Jt=1;var e=Wn(),t=Vt(),r=kr(),o=Object.prototype.hasOwnProperty,s={brackets:function(i){return i+"[]"},comma:"comma",indices:function(i,u){return i+"["+u+"]"},repeat:function(i){return i}},y=Array.isArray,O=Array.prototype.push,v=function(b,i){O.apply(b,y(i)?i:[i])},R=Date.prototype.toISOString,w=r.default,h={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:t.encode,encodeValuesOnly:!1,filter:void 0,format:w,formatter:r.formatters[w],indices:!1,serializeDate:function(i){return R.call(i)},skipNulls:!1,strictNullHandling:!1},m=function(i){return typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="symbol"||typeof i=="bigint"},g={},f=function b(i,u,l,S,d,P,A,E,T,q,k,C,I,Y,W,Q,ue,le){for(var x=i,X=le,c=0,_=!1;(X=X.get(g))!==void 0&&!_;){var N=X.get(i);if(c+=1,typeof N<"u"){if(N===c)throw new RangeError("Cyclic object value");_=!0}typeof X.get(g)>"u"&&(c=0)}if(typeof q=="function"?x=q(u,x):x instanceof Date?x=I(x):l==="comma"&&y(x)&&(x=t.maybeMap(x,function(ce){return ce instanceof Date?I(ce):ce})),x===null){if(P)return T&&!Q?T(u,h.encoder,ue,"key",Y):u;x=""}if(m(x)||t.isBuffer(x)){if(T){var L=Q?u:T(u,h.encoder,ue,"key",Y);return[W(L)+"="+W(T(x,h.encoder,ue,"value",Y))]}return[W(u)+"="+W(String(x))]}var K=[];if(typeof x>"u")return K;var V;if(l==="comma"&&y(x))Q&&T&&(x=t.maybeMap(x,T)),V=[{value:x.length>0?x.join(",")||null:void 0}];else if(y(q))V=q;else{var Z=Object.keys(x);V=k?Z.sort(k):Z}var fe=E?String(u).replace(/\./g,"%2E"):String(u),B=S&&y(x)&&x.length===1?fe+"[]":fe;if(d&&y(x)&&x.length===0)return B+"[]";for(var G=0;G<V.length;++G){var $=V[G],z=typeof $=="object"&&$&&typeof $.value<"u"?$.value:x[$];if(!(A&&z===null)){var M=C&&E?String($).replace(/\./g,"%2E"):String($),J=y(x)?typeof l=="function"?l(B,M):B:B+(C?"."+M:"["+M+"]");le.set(i,c);var ee=e();ee.set(g,le),v(K,b(z,J,l,S,d,P,A,E,l==="comma"&&Q&&y(x)?null:T,q,k,C,I,Y,W,Q,ue,ee))}}return K},p=function(i){if(!i)return h;if(typeof i.allowEmptyArrays<"u"&&typeof i.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof i.encodeDotInKeys<"u"&&typeof i.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(i.encoder!==null&&typeof i.encoder<"u"&&typeof i.encoder!="function")throw new TypeError("Encoder has to be a function.");var u=i.charset||h.charset;if(typeof i.charset<"u"&&i.charset!=="utf-8"&&i.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var l=r.default;if(typeof i.format<"u"){if(!o.call(r.formatters,i.format))throw new TypeError("Unknown format option provided.");l=i.format}var S=r.formatters[l],d=h.filter;(typeof i.filter=="function"||y(i.filter))&&(d=i.filter);var P;if(i.arrayFormat in s?P=i.arrayFormat:"indices"in i?P=i.indices?"indices":"repeat":P=h.arrayFormat,"commaRoundTrip"in i&&typeof i.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var A=typeof i.allowDots>"u"?i.encodeDotInKeys===!0?!0:h.allowDots:!!i.allowDots;return{addQueryPrefix:typeof i.addQueryPrefix=="boolean"?i.addQueryPrefix:h.addQueryPrefix,allowDots:A,allowEmptyArrays:typeof i.allowEmptyArrays=="boolean"?!!i.allowEmptyArrays:h.allowEmptyArrays,arrayFormat:P,charset:u,charsetSentinel:typeof i.charsetSentinel=="boolean"?i.charsetSentinel:h.charsetSentinel,commaRoundTrip:!!i.commaRoundTrip,delimiter:typeof i.delimiter>"u"?h.delimiter:i.delimiter,encode:typeof i.encode=="boolean"?i.encode:h.encode,encodeDotInKeys:typeof i.encodeDotInKeys=="boolean"?i.encodeDotInKeys:h.encodeDotInKeys,encoder:typeof i.encoder=="function"?i.encoder:h.encoder,encodeValuesOnly:typeof i.encodeValuesOnly=="boolean"?i.encodeValuesOnly:h.encodeValuesOnly,filter:d,format:l,formatter:S,serializeDate:typeof i.serializeDate=="function"?i.serializeDate:h.serializeDate,skipNulls:typeof i.skipNulls=="boolean"?i.skipNulls:h.skipNulls,sort:typeof i.sort=="function"?i.sort:null,strictNullHandling:typeof i.strictNullHandling=="boolean"?i.strictNullHandling:h.strictNullHandling}};return Dr=function(b,i){var u=b,l=p(i),S,d;typeof l.filter=="function"?(d=l.filter,u=d("",u)):y(l.filter)&&(d=l.filter,S=d);var P=[];if(typeof u!="object"||u===null)return"";var A=s[l.arrayFormat],E=A==="comma"&&l.commaRoundTrip;S||(S=Object.keys(u)),l.sort&&S.sort(l.sort);for(var T=e(),q=0;q<S.length;++q){var k=S[q],C=u[k];l.skipNulls&&C===null||v(P,f(C,k,A,E,l.allowEmptyArrays,l.strictNullHandling,l.skipNulls,l.encodeDotInKeys,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,T))}var I=P.join(l.delimiter),Y=l.addQueryPrefix===!0?"?":"";return l.charsetSentinel&&(l.charset==="iso-8859-1"?Y+="utf8=%26%2310003%3B&":Y+="utf8=%E2%9C%93&"),I.length>0?Y+I:""},Dr}var $r,Yt;function zn(){if(Yt)return $r;Yt=1;var e=Vt(),t=Object.prototype.hasOwnProperty,r=Array.isArray,o={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:e.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},s=function(g){return g.replace(/&#(\d+);/g,function(f,p){return String.fromCharCode(parseInt(p,10))})},y=function(g,f,p){if(g&&typeof g=="string"&&f.comma&&g.indexOf(",")>-1)return g.split(",");if(f.throwOnLimitExceeded&&p>=f.arrayLimit)throw new RangeError("Array limit exceeded. Only "+f.arrayLimit+" element"+(f.arrayLimit===1?"":"s")+" allowed in an array.");return g},O="utf8=%26%2310003%3B",v="utf8=%E2%9C%93",R=function(f,p){var b={__proto__:null},i=p.ignoreQueryPrefix?f.replace(/^\?/,""):f;i=i.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var u=p.parameterLimit===1/0?void 0:p.parameterLimit,l=i.split(p.delimiter,p.throwOnLimitExceeded?u+1:u);if(p.throwOnLimitExceeded&&l.length>u)throw new RangeError("Parameter limit exceeded. Only "+u+" parameter"+(u===1?"":"s")+" allowed.");var S=-1,d,P=p.charset;if(p.charsetSentinel)for(d=0;d<l.length;++d)l[d].indexOf("utf8=")===0&&(l[d]===v?P="utf-8":l[d]===O&&(P="iso-8859-1"),S=d,d=l.length);for(d=0;d<l.length;++d)if(d!==S){var A=l[d],E=A.indexOf("]="),T=E===-1?A.indexOf("="):E+1,q,k;T===-1?(q=p.decoder(A,o.decoder,P,"key"),k=p.strictNullHandling?null:""):(q=p.decoder(A.slice(0,T),o.decoder,P,"key"),k=e.maybeMap(y(A.slice(T+1),p,r(b[q])?b[q].length:0),function(I){return p.decoder(I,o.decoder,P,"value")})),k&&p.interpretNumericEntities&&P==="iso-8859-1"&&(k=s(String(k))),A.indexOf("[]=")>-1&&(k=r(k)?[k]:k);var C=t.call(b,q);C&&p.duplicates==="combine"?b[q]=e.combine(b[q],k):(!C||p.duplicates==="last")&&(b[q]=k)}return b},w=function(g,f,p,b){var i=0;if(g.length>0&&g[g.length-1]==="[]"){var u=g.slice(0,-1).join("");i=Array.isArray(f)&&f[u]?f[u].length:0}for(var l=b?f:y(f,p,i),S=g.length-1;S>=0;--S){var d,P=g[S];if(P==="[]"&&p.parseArrays)d=p.allowEmptyArrays&&(l===""||p.strictNullHandling&&l===null)?[]:e.combine([],l);else{d=p.plainObjects?{__proto__:null}:{};var A=P.charAt(0)==="["&&P.charAt(P.length-1)==="]"?P.slice(1,-1):P,E=p.decodeDotInKeys?A.replace(/%2E/g,"."):A,T=parseInt(E,10);!p.parseArrays&&E===""?d={0:l}:!isNaN(T)&&P!==E&&String(T)===E&&T>=0&&p.parseArrays&&T<=p.arrayLimit?(d=[],d[T]=l):E!=="__proto__"&&(d[E]=l)}l=d}return l},h=function(f,p,b,i){if(f){var u=b.allowDots?f.replace(/\.([^.[]+)/g,"[$1]"):f,l=/(\[[^[\]]*])/,S=/(\[[^[\]]*])/g,d=b.depth>0&&l.exec(u),P=d?u.slice(0,d.index):u,A=[];if(P){if(!b.plainObjects&&t.call(Object.prototype,P)&&!b.allowPrototypes)return;A.push(P)}for(var E=0;b.depth>0&&(d=S.exec(u))!==null&&E<b.depth;){if(E+=1,!b.plainObjects&&t.call(Object.prototype,d[1].slice(1,-1))&&!b.allowPrototypes)return;A.push(d[1])}if(d){if(b.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+b.depth+" and strictDepth is true");A.push("["+u.slice(d.index)+"]")}return w(A,p,b,i)}},m=function(f){if(!f)return o;if(typeof f.allowEmptyArrays<"u"&&typeof f.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof f.decodeDotInKeys<"u"&&typeof f.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(f.decoder!==null&&typeof f.decoder<"u"&&typeof f.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof f.charset<"u"&&f.charset!=="utf-8"&&f.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof f.throwOnLimitExceeded<"u"&&typeof f.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var p=typeof f.charset>"u"?o.charset:f.charset,b=typeof f.duplicates>"u"?o.duplicates:f.duplicates;if(b!=="combine"&&b!=="first"&&b!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var i=typeof f.allowDots>"u"?f.decodeDotInKeys===!0?!0:o.allowDots:!!f.allowDots;return{allowDots:i,allowEmptyArrays:typeof f.allowEmptyArrays=="boolean"?!!f.allowEmptyArrays:o.allowEmptyArrays,allowPrototypes:typeof f.allowPrototypes=="boolean"?f.allowPrototypes:o.allowPrototypes,allowSparse:typeof f.allowSparse=="boolean"?f.allowSparse:o.allowSparse,arrayLimit:typeof f.arrayLimit=="number"?f.arrayLimit:o.arrayLimit,charset:p,charsetSentinel:typeof f.charsetSentinel=="boolean"?f.charsetSentinel:o.charsetSentinel,comma:typeof f.comma=="boolean"?f.comma:o.comma,decodeDotInKeys:typeof f.decodeDotInKeys=="boolean"?f.decodeDotInKeys:o.decodeDotInKeys,decoder:typeof f.decoder=="function"?f.decoder:o.decoder,delimiter:typeof f.delimiter=="string"||e.isRegExp(f.delimiter)?f.delimiter:o.delimiter,depth:typeof f.depth=="number"||f.depth===!1?+f.depth:o.depth,duplicates:b,ignoreQueryPrefix:f.ignoreQueryPrefix===!0,interpretNumericEntities:typeof f.interpretNumericEntities=="boolean"?f.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:typeof f.parameterLimit=="number"?f.parameterLimit:o.parameterLimit,parseArrays:f.parseArrays!==!1,plainObjects:typeof f.plainObjects=="boolean"?f.plainObjects:o.plainObjects,strictDepth:typeof f.strictDepth=="boolean"?!!f.strictDepth:o.strictDepth,strictNullHandling:typeof f.strictNullHandling=="boolean"?f.strictNullHandling:o.strictNullHandling,throwOnLimitExceeded:typeof f.throwOnLimitExceeded=="boolean"?f.throwOnLimitExceeded:!1}};return $r=function(g,f){var p=m(f);if(g===""||g===null||typeof g>"u")return p.plainObjects?{__proto__:null}:{};for(var b=typeof g=="string"?R(g,p):g,i=p.plainObjects?{__proto__:null}:{},u=Object.keys(b),l=0;l<u.length;++l){var S=u[l],d=h(S,b[S],p,typeof g=="string");i=e.merge(i,d,p)}return p.allowSparse===!0?i:e.compact(i)},$r}var qr,Kt;function Hn(){if(Kt)return qr;Kt=1;var e=Gn(),t=zn(),r=kr();return qr={formats:r,parse:t,stringify:e},qr}var Vn=Hn();const Nr=sn(Vn),we={token:"/lxwork/api/auth/token",permissionTicket:"/lxwork/api/auth/create-permission-ticket",authToken:"/sso/realms/myrealm/protocol/openid-connect/token",refreshToken:"/lxwork/api/auth/refresh",userGroup:"/lxwork/api/auth/users/groups",groups:"/lxwork/api/auth/groups",allCompany:"/lxwork/api/auth/groups/branch"};let Fr=0;async function de(e,t){const r=await fetch(e,{headers:{"Content-Type":"application/json",Authorization:"Bearer "+ie.getToken()},...t||{}});if(!r.ok){console.dir(r,await r.json());const o=localStorage.getItem("APPID");if(r.status===401&&o&&Fr<10)return Fr+=1,await new ie({APPID:o}).SSOLogin(),await de(e,t);throw new Error(`HTTP error! status: ${r.status}`)}return Fr=0,await r.json()}const ve=()=>({getTokenInfo:e=>de(`${we.token}?${Nr.stringify(e)}`),createPermissionTicket:e=>de(`${we.permissionTicket}`,{method:"POST",body:JSON.stringify(e)}),getAuthTokenInfo:e=>{const t=new URLSearchParams;return t.append("grant_type",e.grant_type),t.append("ticket",e.ticket),de(`${we.authToken}`,{method:"POST",body:t,headers:{"Content-Type":"application/x-www-form-urlencoded",Authorization:"Bearer "+ie.getToken()}})},refreshAuthToken:()=>de(`${we.refreshToken}`,{}),getCompanyList:()=>de(`${we.allCompany}`,{}),getUserGroupList:()=>de(`${we.userGroup}`,{}),getGroupDetail:({id:e})=>de(`${we.groups}/${e}`)});function Cr(e){try{const r=new URL(e).hostname,o=/^(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,s=/^\[?([a-fA-F0-9]{1,4}:){7}[a-fA-F0-9]{1,4}\]?$/;return!!(o.test(r)||s.test(r))}catch{return!1}}function Qt(e){const t={};return new URL(e).searchParams.forEach((o,s)=>{t[s]=o}),t}function Jn(e,t){const r=e.indexOf(t);return r!==-1?e.substring(0,r):e}function Xt(e){const t=window.location.href,r=new URL(t),o=new URLSearchParams(r.search);e.forEach(s=>{o.delete(s)}),r.search=o.toString(),window.history.pushState({},"",r.href)}class xe extends Error{}xe.prototype.name="InvalidTokenError";function Yn(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,r)=>{let o=r.charCodeAt(0).toString(16).toUpperCase();return o.length<2&&(o="0"+o),"%"+o}))}function Kn(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return Yn(t)}catch{return atob(t)}}function Qn(e,t){if(typeof e!="string")throw new xe("Invalid token specified: must be a string");t||(t={});const r=t.header===!0?0:1,o=e.split(".")[r];if(typeof o!="string")throw new xe(`Invalid token specified: missing part #${r+1}`);let s;try{s=Kn(o)}catch(y){throw new xe(`Invalid token specified: invalid base64 for part #${r+1} (${y.message})`)}try{return JSON.parse(s)}catch(y){throw new xe(`Invalid token specified: invalid json for part #${r+1} (${y.message})`)}}class ie{constructor({APPID:t}){cn(this,"APPID");this.APPID=t,localStorage.setItem("APPID",this.APPID)}async SSOLogin(){const t=Qt(location.href),r=["state","code","iss","session_state"],o=r.length;if(Object.keys(t).length!==o){this.login();return}let s=[],y=0;for(;y<o;)Object.keys(t).includes(r[y])&&s.length<=o?s.push(r[y]):s=[],y++;if(s.length===o){ie.removeToken();let O;const v=ae.getItem("login_redirect_uri"),{code:R,state:w}=t;try{O=await ve().getTokenInfo({code:R,client_id:this.APPID,state:w,redirect_uri:v}),this.setToken(O);const{ticket:h}=await ve().createPermissionTicket({client_id:this.APPID}),m=await ve().getAuthTokenInfo({grant_type:"urn:ietf:params:oauth:grant-type:uma-ticket",ticket:h});this.setToken(m,"auth"),Xt(r)}catch{ie.removeToken(),window.location.href=v}}else{this.login();return}}login(){const{href:t,origin:r}=window.location,o={redirect_uri:t,client_id:this.APPID,scope:"openid"};ae.setItem("login_redirect_uri",o.redirect_uri),Cr(r)&&window.location.hostname!=="localhost"&&(o.keycloak_host=r+"/sso/");let s=`/lxwork/api/auth/login?${Nr.stringify(o)}`;window.location.replace(s)}logout(){const{href:t,origin:r}=window.location,{id_token:o}=ie.getTokenInfo()||{};ae.removeItem("login_redirect_uri");const s={id_token_hint:o,post_logout_redirect_uri:t};Cr(r)&&window.location.hostname!=="localhost"&&(s.keycloak_host=r+"/sso/");let y=`/lxwork/api/auth/endsession?${Nr.stringify(s)}`;ie.removeToken(),window.location.href=y}setToken(t,r){if(r==="auth"){const o=ae.getItem("SSO-tokenInfo");!t.id_token&&o&&(t.id_token=o.id_token),ae.setItem("tokenInfo",t)}else ae.setItem("SSO-tokenInfo",t)}async getCompanyList(){return await ve().getCompanyList()}async getUserBranchGroup(){const t=await ve().getUserGroupList(),r=t.find(y=>y.attributes.type.includes("3"));if(r)return r.name;const o=async y=>{if(y.attributes.type.includes("3"))return y.name;if(y.parentId){const O=await ve().getGroupDetail({id:y.parentId});if(O)return o(O)}return""};let s="";for(let y=0;y<t.length&&(s=await o(t[y]),!s);y+=1);return s}async refreshToken(t){const{exp:r}=ie.getDecodeToken(),o=Date.now()/1e3;if(t||o>r-200&&o<r){const s=await ve().refreshAuthToken();this.setToken(s),this.setToken(s,"auth")}}static getTokenInfo(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const r=ae.getItem("SSO-tokenInfo");return ae.getItem("tokenInfo")||r||null}static getToken(){const t=ie.getTokenInfo();return t==null?void 0:t.access_token}static getRefreshToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");const r=ae.getItem("SSO-tokenInfo"),o=ae.getItem("tokenInfo");return(o==null?void 0:o.refresh_token)||(r==null?void 0:r.refresh_token)||""}static getDecodeToken(){const t=ie.getToken();return Qn(t)}static removeToken(){if(!localStorage.getItem("APPID"))throw new Error("APPID is not found, Please instantiate AuthLogin first.");ae.removeItem("tokenInfo"),ae.removeItem("SSO-tokenInfo")}}H.AuthLogin=ie,H.LocalStorageUtil=ae,H.Tree=Kr,H.getUrlParams=Qt,H.isIpAddress=Cr,H.removeUrlParam=Xt,H.subBefore=Jn,H.useSSOApi=ve,Object.defineProperty(H,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "little-wheels",
3
- "version": "1.1.13",
3
+ "version": "1.1.14",
4
4
  "description": "这是一个基于react自用轮子库",
5
5
  "repository": {
6
6
  "type": "git",