@shlinkio/shlink-frontend-kit 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/index.js +211 -211
- package/dist/index.umd.cjs +5 -5
- package/package.json +19 -15
package/dist/index.umd.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(function(p,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react/jsx-runtime"),require("@fortawesome/free-solid-svg-icons"),require("@fortawesome/react-fontawesome"),require("reactstrap"),require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@fortawesome/free-solid-svg-icons","@fortawesome/react-fontawesome","reactstrap","react","react-router-dom"],u):(p=typeof globalThis<"u"?globalThis:p||self,u(p["shlink-frontend-kit"]={},p.jsxRuntime,p.freeSolidSvgIcons,p.reactFontawesome,p.reactstrap,p.react,p.reactRouterDom))})(this,function(p,u,te,ue,S,
|
|
1
|
+
(function(p,u){typeof exports=="object"&&typeof module<"u"?u(exports,require("react/jsx-runtime"),require("@fortawesome/free-solid-svg-icons"),require("@fortawesome/react-fontawesome"),require("reactstrap"),require("react"),require("react-router-dom")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","@fortawesome/free-solid-svg-icons","@fortawesome/react-fontawesome","reactstrap","react","react-router-dom"],u):(p=typeof globalThis<"u"?globalThis:p||self,u(p["shlink-frontend-kit"]={},p.jsxRuntime,p.freeSolidSvgIcons,p.reactFontawesome,p.reactstrap,p.react,p.reactRouterDom))})(this,function(p,u,te,ue,S,N,Ur){"use strict";const yo="";function je(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}function Br(r){if(r.__esModule)return r;var e=r.default;if(typeof e=="function"){var t=function n(){return this instanceof n?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(r).forEach(function(n){var a=Object.getOwnPropertyDescriptor(r,n);Object.defineProperty(t,n,a.get?a:{enumerable:!0,get:function(){return r[n]}})}),t}var Je={exports:{}};/*!
|
|
2
2
|
Copyright (c) 2018 Jed Watson.
|
|
3
3
|
Licensed under the MIT License (MIT), see
|
|
4
4
|
http://jedwatson.github.io/classnames
|
|
5
|
-
*/(function(r){(function(){var e={}.hasOwnProperty;function t(){for(var n=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var l=typeof o;if(l==="string"||l==="number")n.push(o);else if(Array.isArray(o)){if(o.length){var i=t.apply(null,o);i&&n.push(i)}}else if(l==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var c in o)e.call(o,c)&&o[c]&&n.push(c)}}}return n.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t})()})(Je);var Gr=Je.exports;const I=je(Gr),Hr=r=>({error:"border-danger",default:""})[r],Wr=r=>({error:"text-danger",default:"text-muted"})[r],qr=({className:r,children:e,loading:t=!1,type:n="default",fullWidth:a=!1})=>{const o=I({"col-md-12":a,"col-md-10 offset-md-1":!a});return u.jsx(S.Row,{className:I("g-0",r),children:u.jsx("div",{className:o,children:u.jsx(S.Card,{className:Hr(n),body:!0,children:u.jsxs("h3",{className:I("text-center mb-0",Wr(n)),children:[t&&u.jsx(ue.FontAwesomeIcon,{icon:te.faCircleNotch,spin:!0}),t&&u.jsx("span",{className:"ms-2",children:e??"Loading..."}),!t&&e]})})})})},Ye=({title:r,children:e,bodyClassName:t,...n})=>u.jsxs(S.Card,{...n,children:[r&&u.jsx(S.CardHeader,{role:"heading",children:r}),u.jsx(S.CardBody,{className:t,children:e})]}),Vr=({children:r,type:e,className:t,small:n=!1})=>u.jsx(S.Row,{className:t,children:u.jsx("div",{className:I({"col-md-10 offset-md-1":!n,"col-12":n}),children:u.jsx(Ye,{role:"document",className:I("text-center",{"bg-main":e==="success","bg-danger":e==="error","bg-warning":e==="warning","text-white":e!=="warning"}),bodyClassName:I({"p-2":n}),children:r})})});let se;const zr=new Uint8Array(16);function Qr(){if(!se&&(se=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!se))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return se(zr)}const w=[];for(let r=0;r<256;++r)w.push((r+256).toString(16).slice(1));function jr(r,e=0){return(w[r[e+0]]+w[r[e+1]]+w[r[e+2]]+w[r[e+3]]+"-"+w[r[e+4]]+w[r[e+5]]+"-"+w[r[e+6]]+w[r[e+7]]+"-"+w[r[e+8]]+w[r[e+9]]+"-"+w[r[e+10]]+w[r[e+11]]+w[r[e+12]]+w[r[e+13]]+w[r[e+14]]+w[r[e+15]]).toLowerCase()}const Ke={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Jr(r,e,t){if(Ke.randomUUID&&!e&&!r)return Ke.randomUUID();r=r||{};const n=r.random||(r.rng||Qr)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return jr(n)}const Xe=(r=!1)=>{const[e,t]=T.useState(r);return[e,()=>t(!e),()=>t(!0),()=>t(!1)]},Ae=()=>{const{current:r}=T.useRef(`dom-${Jr()}`);return r},Yr=()=>T.useRef(null),Ze=({checked:r=!1,onChange:e,className:t,children:n,type:a,inline:o=!1})=>{const l=Ae(),i=s=>e==null?void 0:e(s.target.checked,s),c={"form-switch":a==="switch","form-checkbox":a==="checkbox"},f=o?{display:"inline-block"}:{};return u.jsxs("span",{className:I("form-check",c,t),style:f,children:[u.jsx("input",{type:"checkbox",className:"form-check-input",id:l,checked:r,onChange:i}),u.jsx("label",{className:"form-check-label",htmlFor:l,children:n})]})},Kr=r=>u.jsx(Ze,{type:"checkbox",...r}),Xr=r=>u.jsx(Ze,{type:"switch",...r}),er=({children:r,label:e,className:t="",labelClassName:n="",noMargin:a=!1,id:o})=>u.jsxs("div",{className:`${t} ${a?"":"mb-3"}`,children:[u.jsx("label",{className:`form-label ${n}`,htmlFor:o,children:e}),r]}),Zr=({children:r,value:e,onChange:t,type:n,required:a,placeholder:o,className:l,labelClassName:i})=>{const c=Ae();return u.jsx(er,{label:u.jsxs(u.Fragment,{children:[r,":"]}),className:l??"",labelClassName:i,id:c,children:u.jsx("input",{id:c,className:"form-control",type:n??"text",value:e,required:a??!0,placeholder:o,onChange:f=>t(f.target.value)})})},mo="",et=500;let pe;const rr=()=>{pe&&clearTimeout(pe),pe=null},rt=({onChange:r,className:e,large:t=!0,noBorder:n=!1,initialValue:a="",setTimeout_:o=setTimeout})=>{const[l,i]=T.useState(a),c=(f,s=et)=>{i(f),rr(),pe=o(()=>{r(f),rr()},s)};return u.jsxs("div",{className:I("search-field",e),children:[u.jsx("input",{type:"text",className:I("form-control search-field__input",{"form-control-lg":t,"search-field__input--no-border":n}),placeholder:"Search...",value:l,onChange:f=>c(f.target.value)}),u.jsx(ue.FontAwesomeIcon,{icon:te.faSearch,className:"search-field__icon"}),u.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:l==="",id:"search-field__close",onClick:()=>c("",0)})]})},ho="",tr=({text:r,disabled:e=!1,className:t,children:n,dropdownClassName:a,noCaret:o,end:l=!1,minWidth:i,inline:c,size:f})=>{const[s,v]=Xe(),y=I("dropdown-btn__toggle",t,{"btn-block":!c,"dropdown-btn__toggle--with-caret":!o}),g={minWidth:i&&`${i}px`};return u.jsxs(S.Dropdown,{isOpen:s,toggle:v,disabled:e,className:a,children:[u.jsx(S.DropdownToggle,{size:f,caret:!o,className:y,color:"primary",children:r}),u.jsx(S.DropdownMenu,{className:"w-100",end:l,style:g,children:n})]})},tt=({children:r,minWidth:e})=>u.jsx(tr,{text:u.jsx(ue.FontAwesomeIcon,{className:"px-1",icon:te.faEllipsisV}),size:"sm",minWidth:e,end:!0,noCaret:!0,inline:!0,children:r}),go="",nr=({children:r,...e})=>u.jsx(S.NavLink,{className:"nav-pills__nav-link",tag:Br.NavLink,...e,children:r}),nt=({children:r,fill:e=!1,className:t=""})=>u.jsx(S.Card,{className:`nav-pills__nav p-0 overflow-hidden ${t}`,body:!0,children:u.jsx(S.Nav,{pills:!0,fill:e,children:T.Children.map(r,n=>{if(!T.isValidElement(n)||n.type!==nr)throw new Error("Only NavPillItem children are allowed inside NavPills.");return n})})}),or=(r,e,t)=>r!==e?"ASC":t?{ASC:"DESC",DESC:void 0}[t]:"ASC",ot=(r,{field:e,dir:t})=>!e||!t?r:r.sort((n,a)=>{const o=t==="ASC"?1:-1,l=t==="ASC"?-1:1;return n[e]>a[e]?o:l}),at=r=>r.dir?`${r.field}-${r.dir}`:void 0,it=r=>{const[e,t]=r.split("-");return{field:e,dir:t}},lt=r=>{const[e,t]=T.useState(r),n=T.useCallback((a,o)=>t({field:a,dir:o}),[]);return[e,n]},So="";function ct({items:r,order:e,onChange:t,isButton:n=!0,right:a=!1,prefixed:o=!0}){const l=i=>()=>{const c=or(i,e.field,e.dir);t(c?i:void 0,c)};return u.jsxs(S.UncontrolledDropdown,{children:[u.jsxs(S.DropdownToggle,{caret:!0,color:n?"primary":"link",className:I({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":n,"btn-sm p-0":!n}),children:[!n&&u.jsx(u.Fragment,{children:"Order by"}),n&&!e.field&&u.jsx("i",{children:"Order by..."}),n&&e.field&&u.jsxs(u.Fragment,{children:[o&&"Order by: ",r[e.field]," - ",u.jsx("small",{children:e.dir??"DESC"})]})]}),u.jsxs(S.DropdownMenu,{end:a,className:I("w-100",{"ordering-dropdown__menu--link":!n}),children:[Object.entries(r).map(([i,c])=>u.jsxs(S.DropdownItem,{active:e.field===i,onClick:l(i),children:[c,e.field===i&&u.jsx(ue.FontAwesomeIcon,{icon:e.dir==="ASC"?te.faSortAmountUp:te.faSortAmountDown,className:"ordering-dropdown__sort-icon"})]},i)),u.jsx(S.DropdownItem,{divider:!0}),u.jsx(S.DropdownItem,{disabled:!e.field,onClick:()=>t(),children:u.jsx("i",{children:"Clear selection"})})]})]})}const ft="#4696e5",ut="rgba(70, 150, 229, 0.4)",st="#f77f28",pt="rgba(247, 127, 40, 0.4)",yt="white",dt="#161b22",vt=r=>{var e;return(e=document.querySelector("html"))==null?void 0:e.setAttribute("data-theme",r)},mt=()=>{var r;return((r=document.querySelector("html"))==null?void 0:r.getAttribute("data-theme"))==="dark"};var ht=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==a||l.enumerable!==!0)return!1}return!0},ar=typeof Symbol<"u"&&Symbol,gt=ht,St=function(){return typeof ar!="function"||typeof Symbol!="function"||typeof ar("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:gt()},ir={foo:{}},bt=Object,Ot=function(){return{__proto__:ir}.foo===ir.foo&&!({__proto__:null}instanceof bt)},wt="Function.prototype.bind called on incompatible ",Pe=Array.prototype.slice,At=Object.prototype.toString,Pt="[object Function]",Et=function(e){var t=this;if(typeof t!="function"||At.call(t)!==Pt)throw new TypeError(wt+t);for(var n=Pe.call(arguments,1),a,o=function(){if(this instanceof a){var s=t.apply(this,n.concat(Pe.call(arguments)));return Object(s)===s?s:this}else return t.apply(e,n.concat(Pe.call(arguments)))},l=Math.max(0,t.length-n.length),i=[],c=0;c<l;c++)i.push("$"+c);if(a=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var f=function(){};f.prototype=t.prototype,a.prototype=new f,f.prototype=null}return a},It=Et,Ee=Function.prototype.bind||It,Nt=Ee,_t=Nt.call(Function.call,Object.prototype.hasOwnProperty),d,q=SyntaxError,lr=Function,V=TypeError,Ie=function(r){try{return lr('"use strict"; return ('+r+").constructor;")()}catch{}},k=Object.getOwnPropertyDescriptor;if(k)try{k({},"")}catch{k=null}var Ne=function(){throw new V},Ft=k?function(){try{return arguments.callee,Ne}catch{try{return k(arguments,"callee").get}catch{return Ne}}}():Ne,z=St(),$t=Ot(),b=Object.getPrototypeOf||($t?function(r){return r.__proto__}:null),Q={},Ct=typeof Uint8Array>"u"||!b?d:b(Uint8Array),G={"%AggregateError%":typeof AggregateError>"u"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?d:ArrayBuffer,"%ArrayIteratorPrototype%":z&&b?b([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":Q,"%AsyncGenerator%":Q,"%AsyncGeneratorFunction%":Q,"%AsyncIteratorPrototype%":Q,"%Atomics%":typeof Atomics>"u"?d:Atomics,"%BigInt%":typeof BigInt>"u"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?d:Float32Array,"%Float64Array%":typeof Float64Array>"u"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?d:FinalizationRegistry,"%Function%":lr,"%GeneratorFunction%":Q,"%Int8Array%":typeof Int8Array>"u"?d:Int8Array,"%Int16Array%":typeof Int16Array>"u"?d:Int16Array,"%Int32Array%":typeof Int32Array>"u"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":z&&b?b(b([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map>"u"?d:Map,"%MapIteratorPrototype%":typeof Map>"u"||!z||!b?d:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?d:Promise,"%Proxy%":typeof Proxy>"u"?d:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?d:Set,"%SetIteratorPrototype%":typeof Set>"u"||!z||!b?d:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":z&&b?b(""[Symbol.iterator]()):d,"%Symbol%":z?Symbol:d,"%SyntaxError%":q,"%ThrowTypeError%":Ft,"%TypedArray%":Ct,"%TypeError%":V,"%Uint8Array%":typeof Uint8Array>"u"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?d:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?d:WeakMap,"%WeakRef%":typeof WeakRef>"u"?d:WeakRef,"%WeakSet%":typeof WeakSet>"u"?d:WeakSet};if(b)try{null.error}catch(r){var Dt=b(b(r));G["%Error.prototype%"]=Dt}var xt=function r(e){var t;if(e==="%AsyncFunction%")t=Ie("async function () {}");else if(e==="%GeneratorFunction%")t=Ie("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Ie("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&b&&(t=b(a.prototype))}return G[e]=t,t},cr={"%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"]},ne=Ee,ye=_t,Tt=ne.call(Function.call,Array.prototype.concat),Mt=ne.call(Function.apply,Array.prototype.splice),fr=ne.call(Function.call,String.prototype.replace),de=ne.call(Function.call,String.prototype.slice),Rt=ne.call(Function.call,RegExp.prototype.exec),Lt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Ut=/\\(\\)?/g,Bt=function(e){var t=de(e,0,1),n=de(e,-1);if(t==="%"&&n!=="%")throw new q("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new q("invalid intrinsic syntax, expected opening `%`");var a=[];return fr(e,Lt,function(o,l,i,c){a[a.length]=i?fr(c,Ut,"$1"):l||o}),a},kt=function(e,t){var n=e,a;if(ye(cr,n)&&(a=cr[n],n="%"+a[0]+"%"),ye(G,n)){var o=G[n];if(o===Q&&(o=xt(n)),typeof o>"u"&&!t)throw new V("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new q("intrinsic "+e+" does not exist!")},_e=function(e,t){if(typeof e!="string"||e.length===0)throw new V("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new V('"allowMissing" argument must be a boolean');if(Rt(/^%?[^%]*%?$/,e)===null)throw new q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Bt(e),a=n.length>0?n[0]:"",o=kt("%"+a+"%",t),l=o.name,i=o.value,c=!1,f=o.alias;f&&(a=f[0],Mt(n,Tt([0,1],f)));for(var s=1,v=!0;s<n.length;s+=1){var y=n[s],g=de(y,0,1),h=de(y,-1);if((g==='"'||g==="'"||g==="`"||h==='"'||h==="'"||h==="`")&&g!==h)throw new q("property names with quotes must have matching quotes");if((y==="constructor"||!v)&&(c=!0),a+="."+y,l="%"+a+"%",ye(G,l))i=G[l];else if(i!=null){if(!(y in i)){if(!t)throw new V("base intrinsic for "+e+" exists, but the property is not available.");return}if(k&&s+1>=n.length){var E=k(i,y);v=!!E,v&&"get"in E&&!("originalValue"in E.get)?i=E.get:i=i[y]}else v=ye(i,y),i=i[y];v&&!c&&(G[l]=i)}}return i},ur={exports:{}};(function(r){var e=Ee,t=_e,n=t("%Function.prototype.apply%"),a=t("%Function.prototype.call%"),o=t("%Reflect.apply%",!0)||e.call(a,n),l=t("%Object.getOwnPropertyDescriptor%",!0),i=t("%Object.defineProperty%",!0),c=t("%Math.max%");if(i)try{i({},"a",{value:1})}catch{i=null}r.exports=function(v){var y=o(e,a,arguments);if(l&&i){var g=l(y,"length");g.configurable&&i(y,"length",{value:1+c(0,v.length-(arguments.length-1))})}return y};var f=function(){return o(e,n,arguments)};i?i(r.exports,"apply",{value:f}):r.exports.apply=f})(ur);var Gt=ur.exports,sr=_e,pr=Gt,Ht=pr(sr("String.prototype.indexOf")),Wt=function(e,t){var n=sr(e,!!t);return typeof n=="function"&&Ht(e,".prototype.")>-1?pr(n):n};const qt=kr(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Fe=typeof Map=="function"&&Map.prototype,$e=Object.getOwnPropertyDescriptor&&Fe?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ve=Fe&&$e&&typeof $e.get=="function"?$e.get:null,yr=Fe&&Map.prototype.forEach,Ce=typeof Set=="function"&&Set.prototype,De=Object.getOwnPropertyDescriptor&&Ce?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,me=Ce&&De&&typeof De.get=="function"?De.get:null,dr=Ce&&Set.prototype.forEach,Vt=typeof WeakMap=="function"&&WeakMap.prototype,oe=Vt?WeakMap.prototype.has:null,zt=typeof WeakSet=="function"&&WeakSet.prototype,ae=zt?WeakSet.prototype.has:null,Qt=typeof WeakRef=="function"&&WeakRef.prototype,vr=Qt?WeakRef.prototype.deref:null,jt=Boolean.prototype.valueOf,Jt=Object.prototype.toString,Yt=Function.prototype.toString,Kt=String.prototype.match,xe=String.prototype.slice,M=String.prototype.replace,Xt=String.prototype.toUpperCase,mr=String.prototype.toLowerCase,hr=RegExp.prototype.test,gr=Array.prototype.concat,_=Array.prototype.join,Zt=Array.prototype.slice,Sr=Math.floor,Te=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Me=Object.getOwnPropertySymbols,Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,j=typeof Symbol=="function"&&typeof Symbol.iterator=="object",A=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||"symbol")?Symbol.toStringTag:null,br=Object.prototype.propertyIsEnumerable,Or=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function wr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||hr.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-Sr(-r):Sr(r);if(n!==r){var a=String(n),o=xe.call(e,a.length+1);return M.call(a,t,"$&_")+"."+M.call(M.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return M.call(e,t,"$&_")}var Le=qt,Ar=Le.custom,Pr=Nr(Ar)?Ar:null,en=function r(e,t,n,a){var o=t||{};if(R(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(R(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=R(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(R(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(R(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Fr(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return i?wr(e,c):c}if(typeof e=="bigint"){var f=String(e)+"n";return i?wr(e,f):f}var s=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=s&&s>0&&typeof e=="object")return Ue(e)?"[Array]":"[Object]";var v=Sn(o,n);if(typeof a>"u")a=[];else if(_r(a,e)>=0)return"[Circular]";function y(x,ee,we){if(ee&&(a=Zt.call(a),a.push(ee)),we){var re={depth:o.depth};return R(o,"quoteStyle")&&(re.quoteStyle=o.quoteStyle),r(x,re,n+1,a)}return r(x,o,n+1,a)}if(typeof e=="function"&&!Ir(e)){var g=un(e),h=he(e,y);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(h.length>0?" { "+_.call(h,", ")+" }":"")}if(Nr(e)){var E=j?M.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Re.call(e);return typeof e=="object"&&!j?ie(E):E}if(mn(e)){for(var C="<"+mr.call(String(e.nodeName)),m=e.attributes||[],D=0;D<m.length;D++)C+=" "+m[D].name+"="+Er(rn(m[D].value),"double",o);return C+=">",e.childNodes&&e.childNodes.length&&(C+="..."),C+="</"+mr.call(String(e.nodeName))+">",C}if(Ue(e)){if(e.length===0)return"[]";var U=he(e,y);return v&&!gn(U)?"["+ke(U,v)+"]":"[ "+_.call(U,", ")+" ]"}if(nn(e)){var K=he(e,y);return!("cause"in Error.prototype)&&"cause"in e&&!br.call(e,"cause")?"{ ["+String(e)+"] "+_.call(gr.call("[cause]: "+y(e.cause),K),", ")+" }":K.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+_.call(K,", ")+" }"}if(typeof e=="object"&&l){if(Pr&&typeof e[Pr]=="function"&&Le)return Le(e,{depth:s-n});if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(sn(e)){var ce=[];return yr&&yr.call(e,function(x,ee){ce.push(y(ee,e,!0)+" => "+y(x,e))}),$r("Map",ve.call(e),ce,v)}if(dn(e)){var Oe=[];return dr&&dr.call(e,function(x){Oe.push(y(x,e))}),$r("Set",me.call(e),Oe,v)}if(pn(e))return Be("WeakMap");if(vn(e))return Be("WeakSet");if(yn(e))return Be("WeakRef");if(an(e))return ie(y(Number(e)));if(cn(e))return ie(y(Te.call(e)));if(ln(e))return ie(jt.call(e));if(on(e))return ie(y(String(e)));if(!tn(e)&&!Ir(e)){var W=he(e,y),B=Or?Or(e)===Object.prototype:e instanceof Object||e.constructor===Object,X=e instanceof Object?"":"null prototype",Z=!B&&A&&Object(e)===e&&A in e?xe.call(L(e),8,-1):X?"Object":"",fe=B||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",N=fe+(Z||X?"["+_.call(gr.call([],Z||[],X||[]),": ")+"] ":"");return W.length===0?N+"{}":v?N+"{"+ke(W,v)+"}":N+"{ "+_.call(W,", ")+" }"}return String(e)};function Er(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function rn(r){return M.call(String(r),/"/g,""")}function Ue(r){return L(r)==="[object Array]"&&(!A||!(typeof r=="object"&&A in r))}function tn(r){return L(r)==="[object Date]"&&(!A||!(typeof r=="object"&&A in r))}function Ir(r){return L(r)==="[object RegExp]"&&(!A||!(typeof r=="object"&&A in r))}function nn(r){return L(r)==="[object Error]"&&(!A||!(typeof r=="object"&&A in r))}function on(r){return L(r)==="[object String]"&&(!A||!(typeof r=="object"&&A in r))}function an(r){return L(r)==="[object Number]"&&(!A||!(typeof r=="object"&&A in r))}function ln(r){return L(r)==="[object Boolean]"&&(!A||!(typeof r=="object"&&A in r))}function Nr(r){if(j)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!Re)return!1;try{return Re.call(r),!0}catch{}return!1}function cn(r){if(!r||typeof r!="object"||!Te)return!1;try{return Te.call(r),!0}catch{}return!1}var fn=Object.prototype.hasOwnProperty||function(r){return r in this};function R(r,e){return fn.call(r,e)}function L(r){return Jt.call(r)}function un(r){if(r.name)return r.name;var e=Kt.call(Yt.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function _r(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function sn(r){if(!ve||!r||typeof r!="object")return!1;try{ve.call(r);try{me.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function pn(r){if(!oe||!r||typeof r!="object")return!1;try{oe.call(r,oe);try{ae.call(r,ae)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function yn(r){if(!vr||!r||typeof r!="object")return!1;try{return vr.call(r),!0}catch{}return!1}function dn(r){if(!me||!r||typeof r!="object")return!1;try{me.call(r);try{ve.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function vn(r){if(!ae||!r||typeof r!="object")return!1;try{ae.call(r,ae);try{oe.call(r,oe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function mn(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function Fr(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return Fr(xe.call(r,0,e.maxStringLength),e)+n}var a=M.call(M.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,hn);return Er(a,"single",e)}function hn(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+Xt.call(e.toString(16))}function ie(r){return"Object("+r+")"}function Be(r){return r+" { ? }"}function $r(r,e,t,n){var a=n?ke(t,n):_.call(t,", ");return r+" ("+e+") {"+a+"}"}function gn(r){for(var e=0;e<r.length;e++)if(_r(r[e],`
|
|
6
|
-
`)>=0)return!1;return!0}function Sn(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=
|
|
7
|
-
`+e.prev+e.base;return t+
|
|
8
|
-
`+e.prev}function he(r,e){var t=Ue(r),n=[];if(t){n.length=r.length;for(var a=0;a<r.length;a++)n[a]=R(r,a)?e(r[a],r):""}var o=typeof Me=="function"?Me(r):[],l;if(j){l={};for(var i=0;i<o.length;i++)l["$"+o[i]]=o[i]}for(var c in r)R(r,c)&&(t&&String(Number(c))===c&&c<r.length||j&&l["$"+c]instanceof Symbol||(hr.call(/[^\w$]/,c)?n.push(e(c,r)+": "+e(r[c],r)):n.push(c+": "+e(r[c],r))));if(typeof Me=="function")for(var f=0;f<o.length;f++)br.call(r,o[f])&&n.push("["+e(o[f])+"]: "+e(r[o[f]],r));return n}var Ge=_e,J=Wt,bn=en,On=Ge("%TypeError%"),ge=Ge("%WeakMap%",!0),Se=Ge("%Map%",!0),wn=J("WeakMap.prototype.get",!0),An=J("WeakMap.prototype.set",!0),Pn=J("WeakMap.prototype.has",!0),En=J("Map.prototype.get",!0),In=J("Map.prototype.set",!0),Nn=J("Map.prototype.has",!0),He=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},_n=function(r,e){var t=He(r,e);return t&&t.value},Fn=function(r,e,t){var n=He(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},$n=function(r,e){return!!He(r,e)},Cn=function(){var e,t,n,a={assert:function(o){if(!a.has(o))throw new On("Side channel does not contain "+bn(o))},get:function(o){if(ge&&o&&(typeof o=="object"||typeof o=="function")){if(e)return wn(e,o)}else if(Se){if(t)return En(t,o)}else if(n)return _n(n,o)},has:function(o){if(ge&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Pn(e,o)}else if(Se){if(t)return Nn(t,o)}else if(n)return $n(n,o);return!1},set:function(o,l){ge&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new ge),An(e,o,l)):Se?(t||(t=new Se),In(t,o,l)):(n||(n={key:{},next:null}),Fn(n,o,l))}};return a},Dn=String.prototype.replace,xn=/%20/g,We={RFC1738:"RFC1738",RFC3986:"RFC3986"},qe={default:We.RFC3986,formatters:{RFC1738:function(r){return Dn.call(r,xn,"+")},RFC3986:function(r){return String(r)}},RFC1738:We.RFC1738,RFC3986:We.RFC3986},Tn=qe,Ve=Object.prototype.hasOwnProperty,H=Array.isArray,F=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),Mn=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(H(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);t.obj[t.prop]=a}}},Cr=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)typeof e[a]<"u"&&(n[a]=e[a]);return n},Rn=function r(e,t,n){if(!t)return e;if(typeof t!="object"){if(H(e))e.push(t);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Ve.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var a=e;return H(e)&&!H(t)&&(a=Cr(e,n)),H(e)&&H(t)?(t.forEach(function(o,l){if(Ve.call(e,l)){var i=e[l];i&&typeof i=="object"&&o&&typeof o=="object"?e[l]=r(i,o,n):e.push(o)}else e[l]=o}),e):Object.keys(t).reduce(function(o,l){var i=t[l];return Ve.call(o,l)?o[l]=r(o[l],i,n):o[l]=i,o},a)},Ln=function(e,t){return Object.keys(t).reduce(function(n,a){return n[a]=t[a],n},e)},Un=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Bn=function(e,t,n,a,o){if(e.length===0)return e;var l=e;if(typeof e=="symbol"?l=Symbol.prototype.toString.call(e):typeof e!="string"&&(l=String(e)),n==="iso-8859-1")return escape(l).replace(/%u[0-9a-f]{4}/gi,function(s){return"%26%23"+parseInt(s.slice(2),16)+"%3B"});for(var i="",c=0;c<l.length;++c){var f=l.charCodeAt(c);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===Tn.RFC1738&&(f===40||f===41)){i+=l.charAt(c);continue}if(f<128){i=i+F[f];continue}if(f<2048){i=i+(F[192|f>>6]+F[128|f&63]);continue}if(f<55296||f>=57344){i=i+(F[224|f>>12]+F[128|f>>6&63]+F[128|f&63]);continue}c+=1,f=65536+((f&1023)<<10|l.charCodeAt(c)&1023),i+=F[240|f>>18]+F[128|f>>12&63]+F[128|f>>6&63]+F[128|f&63]}return i},kn=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var o=t[a],l=o.obj[o.prop],i=Object.keys(l),c=0;c<i.length;++c){var f=i[c],s=l[f];typeof s=="object"&&s!==null&&n.indexOf(s)===-1&&(t.push({obj:l,prop:f}),n.push(s))}return Mn(t),e},Gn=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Hn=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Wn=function(e,t){return[].concat(e,t)},qn=function(e,t){if(H(e)){for(var n=[],a=0;a<e.length;a+=1)n.push(t(e[a]));return n}return t(e)},Dr={arrayToObject:Cr,assign:Ln,combine:Wn,compact:kn,decode:Un,encode:Bn,isBuffer:Hn,isRegExp:Gn,maybeMap:qn,merge:Rn},xr=Cn,be=Dr,le=qe,Vn=Object.prototype.hasOwnProperty,Tr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},$=Array.isArray,zn=Array.prototype.push,Mr=function(r,e){zn.apply(r,$(e)?e:[e])},Qn=Date.prototype.toISOString,Rr=le.default,P={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:be.encode,encodeValuesOnly:!1,format:Rr,formatter:le.formatters[Rr],indices:!1,serializeDate:function(e){return Qn.call(e)},skipNulls:!1,strictNullHandling:!1},jn=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},ze={},Jn=function r(e,t,n,a,o,l,i,c,f,s,v,y,g,h,E,C){for(var m=e,D=C,U=0,K=!1;(D=D.get(ze))!==void 0&&!K;){var ce=D.get(e);if(U+=1,typeof ce<"u"){if(ce===U)throw new RangeError("Cyclic object value");K=!0}typeof D.get(ze)>"u"&&(U=0)}if(typeof c=="function"?m=c(t,m):m instanceof Date?m=v(m):n==="comma"&&$(m)&&(m=be.maybeMap(m,function(re){return re instanceof Date?v(re):re})),m===null){if(o)return i&&!h?i(t,P.encoder,E,"key",y):t;m=""}if(jn(m)||be.isBuffer(m)){if(i){var Oe=h?t:i(t,P.encoder,E,"key",y);return[g(Oe)+"="+g(i(m,P.encoder,E,"value",y))]}return[g(t)+"="+g(String(m))]}var W=[];if(typeof m>"u")return W;var B;if(n==="comma"&&$(m))h&&i&&(m=be.maybeMap(m,i)),B=[{value:m.length>0?m.join(",")||null:void 0}];else if($(c))B=c;else{var X=Object.keys(m);B=f?X.sort(f):X}for(var Z=a&&$(m)&&m.length===1?t+"[]":t,fe=0;fe<B.length;++fe){var N=B[fe],x=typeof N=="object"&&typeof N.value<"u"?N.value:m[N];if(!(l&&x===null)){var ee=$(m)?typeof n=="function"?n(Z,N):Z:Z+(s?"."+N:"["+N+"]");C.set(e,U);var we=xr();we.set(ze,C),Mr(W,r(x,ee,n,a,o,l,n==="comma"&&h&&$(m)?null:i,c,f,s,v,y,g,h,E,we))}}return W},Yn=function(e){if(!e)return P;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||P.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=le.default;if(typeof e.format<"u"){if(!Vn.call(le.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=le.formatters[n],o=P.filter;return(typeof e.filter=="function"||$(e.filter))&&(o=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:P.addQueryPrefix,allowDots:typeof e.allowDots>"u"?P.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:P.charsetSentinel,delimiter:typeof e.delimiter>"u"?P.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:P.encode,encoder:typeof e.encoder=="function"?e.encoder:P.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:P.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:P.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:P.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:P.strictNullHandling}},Kn=function(r,e){var t=r,n=Yn(e),a,o;typeof n.filter=="function"?(o=n.filter,t=o("",t)):$(n.filter)&&(o=n.filter,a=o);var l=[];if(typeof t!="object"||t===null)return"";var i;e&&e.arrayFormat in Tr?i=e.arrayFormat:e&&"indices"in e?i=e.indices?"indices":"repeat":i="indices";var c=Tr[i];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=c==="comma"&&e&&e.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var s=xr(),v=0;v<a.length;++v){var y=a[v];n.skipNulls&&t[y]===null||Mr(l,Jn(t[y],y,c,f,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,s))}var g=l.join(n.delimiter),h=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),g.length>0?h+g:""},Y=Dr,Qe=Object.prototype.hasOwnProperty,Xn=Array.isArray,O={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Y.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Zn=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Lr=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},eo="utf8=%26%2310003%3B",ro="utf8=%E2%9C%93",to=function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,l=a.split(t.delimiter,o),i=-1,c,f=t.charset;if(t.charsetSentinel)for(c=0;c<l.length;++c)l[c].indexOf("utf8=")===0&&(l[c]===ro?f="utf-8":l[c]===eo&&(f="iso-8859-1"),i=c,c=l.length);for(c=0;c<l.length;++c)if(c!==i){var s=l[c],v=s.indexOf("]="),y=v===-1?s.indexOf("="):v+1,g,h;y===-1?(g=t.decoder(s,O.decoder,f,"key"),h=t.strictNullHandling?null:""):(g=t.decoder(s.slice(0,y),O.decoder,f,"key"),h=Y.maybeMap(Lr(s.slice(y+1),t),function(E){return t.decoder(E,O.decoder,f,"value")})),h&&t.interpretNumericEntities&&f==="iso-8859-1"&&(h=Zn(h)),s.indexOf("[]=")>-1&&(h=Xn(h)?[h]:h),Qe.call(n,g)?n[g]=Y.combine(n[g],h):n[g]=h}return n},no=function(r,e,t,n){for(var a=n?e:Lr(e,t),o=r.length-1;o>=0;--o){var l,i=r[o];if(i==="[]"&&t.parseArrays)l=[].concat(a);else{l=t.plainObjects?Object.create(null):{};var c=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,f=parseInt(c,10);!t.parseArrays&&c===""?l={0:a}:!isNaN(f)&&i!==c&&String(f)===c&&f>=0&&t.parseArrays&&f<=t.arrayLimit?(l=[],l[f]=a):c!=="__proto__"&&(l[c]=a)}a=l}return a},oo=function(e,t,n,a){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,c=n.depth>0&&l.exec(o),f=c?o.slice(0,c.index):o,s=[];if(f){if(!n.plainObjects&&Qe.call(Object.prototype,f)&&!n.allowPrototypes)return;s.push(f)}for(var v=0;n.depth>0&&(c=i.exec(o))!==null&&v<n.depth;){if(v+=1,!n.plainObjects&&Qe.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(c[1])}return c&&s.push("["+o.slice(c.index)+"]"),no(s,t,n,a)}},ao=function(e){if(!e)return O;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?O.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?O.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:O.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:O.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:O.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:O.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:O.comma,decoder:typeof e.decoder=="function"?e.decoder:O.decoder,delimiter:typeof e.delimiter=="string"||Y.isRegExp(e.delimiter)?e.delimiter:O.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:O.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:O.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:O.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:O.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:O.strictNullHandling}},io=function(r,e){var t=ao(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?to(r,t):r,a=t.plainObjects?Object.create(null):{},o=Object.keys(n),l=0;l<o.length;++l){var i=o[l],c=oo(i,n[i],t,typeof r=="string");a=Y.merge(a,c,t)}return t.allowSparse===!0?a:Y.compact(a)},lo=Kn,co=io,fo=qe,uo={formats:fo,parse:co,stringify:lo};const Ur=je(uo),so=r=>Ur.parse(r,{ignoreQueryPrefix:!0}),po=r=>Ur.stringify(r,{arrayFormat:"brackets"});p.Checkbox=Kr,p.DropdownBtn=tr,p.HIGHLIGHTED_COLOR=st,p.HIGHLIGHTED_COLOR_ALPHA=pt,p.InputFormGroup=Zr,p.LabeledFormGroup=er,p.MAIN_COLOR=ft,p.MAIN_COLOR_ALPHA=ut,p.Message=qr,p.NavPillItem=nr,p.NavPills=nt,p.OrderingDropdown=ct,p.PRIMARY_DARK_COLOR=dt,p.PRIMARY_LIGHT_COLOR=yt,p.Result=Vr,p.RowDropdownBtn=tt,p.SearchField=rt,p.SimpleCard=Ye,p.ToggleSwitch=Xr,p.changeThemeInMarkup=vt,p.determineOrderDir=or,p.isDarkThemeEnabled=mt,p.orderToString=at,p.parseQuery=so,p.sortList=ot,p.stringToOrder=it,p.stringifyQuery=po,p.useDomId=Ae,p.useElementRef=Yr,p.useOrder=lt,p.useToggle=Xe,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
|
5
|
+
*/(function(r){(function(){var e={}.hasOwnProperty;function t(){for(var n=[],a=0;a<arguments.length;a++){var o=arguments[a];if(o){var l=typeof o;if(l==="string"||l==="number")n.push(o);else if(Array.isArray(o)){if(o.length){var i=t.apply(null,o);i&&n.push(i)}}else if(l==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){n.push(o.toString());continue}for(var c in o)e.call(o,c)&&o[c]&&n.push(c)}}}return n.join(" ")}r.exports?(t.default=t,r.exports=t):window.classNames=t})()})(Je);var Gr=Je.exports;const I=je(Gr),Hr=r=>({error:"border-danger",default:""})[r],Wr=r=>({error:"text-danger",default:"text-muted"})[r],qr=({className:r,children:e,loading:t=!1,type:n="default",fullWidth:a=!1})=>{const o=I({"col-md-12":a,"col-md-10 offset-md-1":!a});return u.jsx(S.Row,{className:I("g-0",r),children:u.jsx("div",{className:o,children:u.jsx(S.Card,{className:Hr(n),body:!0,children:u.jsxs("h3",{className:I("text-center mb-0",Wr(n)),children:[t&&u.jsx(ue.FontAwesomeIcon,{icon:te.faCircleNotch,spin:!0}),t&&u.jsx("span",{className:"ms-2",children:e??"Loading..."}),!t&&e]})})})})},Ye=({title:r,children:e,bodyClassName:t,...n})=>u.jsxs(S.Card,{...n,children:[r&&u.jsx(S.CardHeader,{role:"heading",children:r}),u.jsx(S.CardBody,{className:t,children:e})]}),Vr=({children:r,type:e,className:t,small:n=!1})=>u.jsx(S.Row,{className:t,children:u.jsx("div",{className:I({"col-md-10 offset-md-1":!n,"col-12":n}),children:u.jsx(Ye,{role:"document",className:I("text-center",{"bg-main":e==="success","bg-danger":e==="error","bg-warning":e==="warning","text-white":e!=="warning"}),bodyClassName:I({"p-2":n}),children:r})})});let se;const zr=new Uint8Array(16);function Qr(){if(!se&&(se=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!se))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return se(zr)}const w=[];for(let r=0;r<256;++r)w.push((r+256).toString(16).slice(1));function jr(r,e=0){return(w[r[e+0]]+w[r[e+1]]+w[r[e+2]]+w[r[e+3]]+"-"+w[r[e+4]]+w[r[e+5]]+"-"+w[r[e+6]]+w[r[e+7]]+"-"+w[r[e+8]]+w[r[e+9]]+"-"+w[r[e+10]]+w[r[e+11]]+w[r[e+12]]+w[r[e+13]]+w[r[e+14]]+w[r[e+15]]).toLowerCase()}const Ke={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function Jr(r,e,t){if(Ke.randomUUID&&!e&&!r)return Ke.randomUUID();r=r||{};const n=r.random||(r.rng||Qr)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){t=t||0;for(let a=0;a<16;++a)e[t+a]=n[a];return e}return jr(n)}const Xe=(r=!1)=>{const[e,t]=N.useState(r),n=N.useCallback(()=>t(l=>!l),[]),a=N.useCallback(()=>t(!0),[]),o=N.useCallback(()=>t(!1),[]);return[e,n,a,o]},Ae=()=>{const{current:r}=N.useRef(`dom-${Jr()}`);return r},Yr=()=>N.useRef(null),Ze=({checked:r=!1,onChange:e,className:t,children:n,type:a,inline:o=!1})=>{const l=Ae(),i=s=>e==null?void 0:e(s.target.checked,s),c={"form-switch":a==="switch","form-checkbox":a==="checkbox"},f=o?{display:"inline-block"}:{};return u.jsxs("span",{className:I("form-check",c,t),style:f,children:[u.jsx("input",{type:"checkbox",className:"form-check-input",id:l,checked:r,onChange:i}),u.jsx("label",{className:"form-check-label",htmlFor:l,children:n})]})},Kr=r=>u.jsx(Ze,{type:"checkbox",...r}),Xr=r=>u.jsx(Ze,{type:"switch",...r}),er=({children:r,label:e,className:t="",labelClassName:n="",noMargin:a=!1,id:o})=>u.jsxs("div",{className:`${t} ${a?"":"mb-3"}`,children:[u.jsx("label",{className:`form-label ${n}`,htmlFor:o,children:e}),r]}),Zr=({children:r,value:e,onChange:t,type:n,required:a,placeholder:o,className:l,labelClassName:i})=>{const c=Ae();return u.jsx(er,{label:u.jsxs(u.Fragment,{children:[r,":"]}),className:l??"",labelClassName:i,id:c,children:u.jsx("input",{id:c,className:"form-control",type:n??"text",value:e,required:a??!0,placeholder:o,onChange:f=>t(f.target.value)})})},mo="",et=500;let pe;const rr=()=>{pe&&clearTimeout(pe),pe=null},rt=({onChange:r,className:e,large:t=!0,noBorder:n=!1,initialValue:a="",setTimeout_:o=setTimeout})=>{const[l,i]=N.useState(a),c=(f,s=et)=>{i(f),rr(),pe=o(()=>{r(f),rr()},s)};return u.jsxs("div",{className:I("search-field",e),children:[u.jsx("input",{type:"text",className:I("form-control search-field__input",{"form-control-lg":t,"search-field__input--no-border":n}),placeholder:"Search...",value:l,onChange:f=>c(f.target.value)}),u.jsx(ue.FontAwesomeIcon,{icon:te.faSearch,className:"search-field__icon"}),u.jsx("button",{"aria-label":"Clear search",type:"button",className:"close search-field__close btn-close",hidden:l==="",id:"search-field__close",onClick:()=>c("",0)})]})},ho="",tr=({text:r,disabled:e=!1,className:t,children:n,dropdownClassName:a,noCaret:o,end:l=!1,minWidth:i,inline:c,size:f})=>{const[s,v]=Xe(),y=I("dropdown-btn__toggle",t,{"btn-block":!c,"dropdown-btn__toggle--with-caret":!o}),g={minWidth:i&&`${i}px`};return u.jsxs(S.Dropdown,{isOpen:s,toggle:v,disabled:e,className:a,children:[u.jsx(S.DropdownToggle,{size:f,caret:!o,className:y,color:"primary",children:r}),u.jsx(S.DropdownMenu,{className:"w-100",end:l,style:g,children:n})]})},tt=({children:r,minWidth:e})=>u.jsx(tr,{text:u.jsx(ue.FontAwesomeIcon,{className:"px-1",icon:te.faEllipsisV}),size:"sm",minWidth:e,end:!0,noCaret:!0,inline:!0,children:r}),go="",nr=({children:r,...e})=>u.jsx(S.NavLink,{className:"nav-pills__nav-link",tag:Ur.NavLink,...e,children:r}),nt=({children:r,fill:e=!1,className:t=""})=>u.jsx(S.Card,{className:`nav-pills__nav p-0 overflow-hidden ${t}`,body:!0,children:u.jsx(S.Nav,{pills:!0,fill:e,children:N.Children.map(r,n=>{if(!N.isValidElement(n)||n.type!==nr)throw new Error("Only NavPillItem children are allowed inside NavPills.");return n})})}),or=(r,e,t)=>r!==e?"ASC":t?{ASC:"DESC",DESC:void 0}[t]:"ASC",ot=(r,{field:e,dir:t})=>!e||!t?r:r.sort((n,a)=>{const o=t==="ASC"?1:-1,l=t==="ASC"?-1:1;return n[e]>a[e]?o:l}),at=r=>r.dir?`${r.field}-${r.dir}`:void 0,it=r=>{const[e,t]=r.split("-");return{field:e,dir:t}},lt=r=>{const[e,t]=N.useState(r),n=N.useCallback((a,o)=>t({field:a,dir:o}),[]);return[e,n]},So="";function ct({items:r,order:e,onChange:t,isButton:n=!0,right:a=!1,prefixed:o=!0}){const l=i=>()=>{const c=or(i,e.field,e.dir);t(c?i:void 0,c)};return u.jsxs(S.UncontrolledDropdown,{children:[u.jsxs(S.DropdownToggle,{caret:!0,color:n?"primary":"link",className:I({"dropdown-btn__toggle btn-block pe-4 overflow-hidden":n,"btn-sm p-0":!n}),children:[!n&&u.jsx(u.Fragment,{children:"Order by"}),n&&!e.field&&u.jsx("i",{children:"Order by..."}),n&&e.field&&u.jsxs(u.Fragment,{children:[o&&"Order by: ",r[e.field]," - ",u.jsx("small",{children:e.dir??"DESC"})]})]}),u.jsxs(S.DropdownMenu,{end:a,className:I("w-100",{"ordering-dropdown__menu--link":!n}),children:[Object.entries(r).map(([i,c])=>u.jsxs(S.DropdownItem,{active:e.field===i,onClick:l(i),children:[c,e.field===i&&u.jsx(ue.FontAwesomeIcon,{icon:e.dir==="ASC"?te.faSortAmountUp:te.faSortAmountDown,className:"ordering-dropdown__sort-icon"})]},i)),u.jsx(S.DropdownItem,{divider:!0}),u.jsx(S.DropdownItem,{disabled:!e.field,onClick:()=>t(),children:u.jsx("i",{children:"Clear selection"})})]})]})}const ft="#4696e5",ut="rgba(70, 150, 229, 0.4)",st="#f77f28",pt="rgba(247, 127, 40, 0.4)",yt="white",dt="#161b22",vt=r=>{var e;return(e=document.querySelector("html"))==null?void 0:e.setAttribute("data-theme",r)},mt=()=>{var r;return((r=document.querySelector("html"))==null?void 0:r.getAttribute("data-theme"))==="dark"};var ht=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var a=42;e[t]=a;for(t in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var l=Object.getOwnPropertyDescriptor(e,t);if(l.value!==a||l.enumerable!==!0)return!1}return!0},ar=typeof Symbol<"u"&&Symbol,gt=ht,St=function(){return typeof ar!="function"||typeof Symbol!="function"||typeof ar("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:gt()},ir={foo:{}},bt=Object,Ot=function(){return{__proto__:ir}.foo===ir.foo&&!({__proto__:null}instanceof bt)},wt="Function.prototype.bind called on incompatible ",Pe=Array.prototype.slice,At=Object.prototype.toString,Pt="[object Function]",Et=function(e){var t=this;if(typeof t!="function"||At.call(t)!==Pt)throw new TypeError(wt+t);for(var n=Pe.call(arguments,1),a,o=function(){if(this instanceof a){var s=t.apply(this,n.concat(Pe.call(arguments)));return Object(s)===s?s:this}else return t.apply(e,n.concat(Pe.call(arguments)))},l=Math.max(0,t.length-n.length),i=[],c=0;c<l;c++)i.push("$"+c);if(a=Function("binder","return function ("+i.join(",")+"){ return binder.apply(this,arguments); }")(o),t.prototype){var f=function(){};f.prototype=t.prototype,a.prototype=new f,f.prototype=null}return a},It=Et,Ee=Function.prototype.bind||It,Nt=Ee,_t=Nt.call(Function.call,Object.prototype.hasOwnProperty),d,q=SyntaxError,lr=Function,V=TypeError,Ie=function(r){try{return lr('"use strict"; return ('+r+").constructor;")()}catch{}},B=Object.getOwnPropertyDescriptor;if(B)try{B({},"")}catch{B=null}var Ne=function(){throw new V},Ft=B?function(){try{return arguments.callee,Ne}catch{try{return B(arguments,"callee").get}catch{return Ne}}}():Ne,z=St(),$t=Ot(),b=Object.getPrototypeOf||($t?function(r){return r.__proto__}:null),Q={},Ct=typeof Uint8Array>"u"||!b?d:b(Uint8Array),G={"%AggregateError%":typeof AggregateError>"u"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?d:ArrayBuffer,"%ArrayIteratorPrototype%":z&&b?b([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":Q,"%AsyncGenerator%":Q,"%AsyncGeneratorFunction%":Q,"%AsyncIteratorPrototype%":Q,"%Atomics%":typeof Atomics>"u"?d:Atomics,"%BigInt%":typeof BigInt>"u"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?d:Float32Array,"%Float64Array%":typeof Float64Array>"u"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?d:FinalizationRegistry,"%Function%":lr,"%GeneratorFunction%":Q,"%Int8Array%":typeof Int8Array>"u"?d:Int8Array,"%Int16Array%":typeof Int16Array>"u"?d:Int16Array,"%Int32Array%":typeof Int32Array>"u"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":z&&b?b(b([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map>"u"?d:Map,"%MapIteratorPrototype%":typeof Map>"u"||!z||!b?d:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?d:Promise,"%Proxy%":typeof Proxy>"u"?d:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?d:Set,"%SetIteratorPrototype%":typeof Set>"u"||!z||!b?d:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":z&&b?b(""[Symbol.iterator]()):d,"%Symbol%":z?Symbol:d,"%SyntaxError%":q,"%ThrowTypeError%":Ft,"%TypedArray%":Ct,"%TypeError%":V,"%Uint8Array%":typeof Uint8Array>"u"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?d:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?d:WeakMap,"%WeakRef%":typeof WeakRef>"u"?d:WeakRef,"%WeakSet%":typeof WeakSet>"u"?d:WeakSet};if(b)try{null.error}catch(r){var Dt=b(b(r));G["%Error.prototype%"]=Dt}var xt=function r(e){var t;if(e==="%AsyncFunction%")t=Ie("async function () {}");else if(e==="%GeneratorFunction%")t=Ie("function* () {}");else if(e==="%AsyncGeneratorFunction%")t=Ie("async function* () {}");else if(e==="%AsyncGenerator%"){var n=r("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var a=r("%AsyncGenerator%");a&&b&&(t=b(a.prototype))}return G[e]=t,t},cr={"%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"]},ne=Ee,ye=_t,Tt=ne.call(Function.call,Array.prototype.concat),Mt=ne.call(Function.apply,Array.prototype.splice),fr=ne.call(Function.call,String.prototype.replace),de=ne.call(Function.call,String.prototype.slice),Rt=ne.call(Function.call,RegExp.prototype.exec),Lt=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,kt=/\\(\\)?/g,Ut=function(e){var t=de(e,0,1),n=de(e,-1);if(t==="%"&&n!=="%")throw new q("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new q("invalid intrinsic syntax, expected opening `%`");var a=[];return fr(e,Lt,function(o,l,i,c){a[a.length]=i?fr(c,kt,"$1"):l||o}),a},Bt=function(e,t){var n=e,a;if(ye(cr,n)&&(a=cr[n],n="%"+a[0]+"%"),ye(G,n)){var o=G[n];if(o===Q&&(o=xt(n)),typeof o>"u"&&!t)throw new V("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:a,name:n,value:o}}throw new q("intrinsic "+e+" does not exist!")},_e=function(e,t){if(typeof e!="string"||e.length===0)throw new V("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new V('"allowMissing" argument must be a boolean');if(Rt(/^%?[^%]*%?$/,e)===null)throw new q("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=Ut(e),a=n.length>0?n[0]:"",o=Bt("%"+a+"%",t),l=o.name,i=o.value,c=!1,f=o.alias;f&&(a=f[0],Mt(n,Tt([0,1],f)));for(var s=1,v=!0;s<n.length;s+=1){var y=n[s],g=de(y,0,1),h=de(y,-1);if((g==='"'||g==="'"||g==="`"||h==='"'||h==="'"||h==="`")&&g!==h)throw new q("property names with quotes must have matching quotes");if((y==="constructor"||!v)&&(c=!0),a+="."+y,l="%"+a+"%",ye(G,l))i=G[l];else if(i!=null){if(!(y in i)){if(!t)throw new V("base intrinsic for "+e+" exists, but the property is not available.");return}if(B&&s+1>=n.length){var E=B(i,y);v=!!E,v&&"get"in E&&!("originalValue"in E.get)?i=E.get:i=i[y]}else v=ye(i,y),i=i[y];v&&!c&&(G[l]=i)}}return i},ur={exports:{}};(function(r){var e=Ee,t=_e,n=t("%Function.prototype.apply%"),a=t("%Function.prototype.call%"),o=t("%Reflect.apply%",!0)||e.call(a,n),l=t("%Object.getOwnPropertyDescriptor%",!0),i=t("%Object.defineProperty%",!0),c=t("%Math.max%");if(i)try{i({},"a",{value:1})}catch{i=null}r.exports=function(v){var y=o(e,a,arguments);if(l&&i){var g=l(y,"length");g.configurable&&i(y,"length",{value:1+c(0,v.length-(arguments.length-1))})}return y};var f=function(){return o(e,n,arguments)};i?i(r.exports,"apply",{value:f}):r.exports.apply=f})(ur);var Gt=ur.exports,sr=_e,pr=Gt,Ht=pr(sr("String.prototype.indexOf")),Wt=function(e,t){var n=sr(e,!!t);return typeof n=="function"&&Ht(e,".prototype.")>-1?pr(n):n};const qt=Br(Object.freeze(Object.defineProperty({__proto__:null,default:{}},Symbol.toStringTag,{value:"Module"})));var Fe=typeof Map=="function"&&Map.prototype,$e=Object.getOwnPropertyDescriptor&&Fe?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ve=Fe&&$e&&typeof $e.get=="function"?$e.get:null,yr=Fe&&Map.prototype.forEach,Ce=typeof Set=="function"&&Set.prototype,De=Object.getOwnPropertyDescriptor&&Ce?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,me=Ce&&De&&typeof De.get=="function"?De.get:null,dr=Ce&&Set.prototype.forEach,Vt=typeof WeakMap=="function"&&WeakMap.prototype,oe=Vt?WeakMap.prototype.has:null,zt=typeof WeakSet=="function"&&WeakSet.prototype,ae=zt?WeakSet.prototype.has:null,Qt=typeof WeakRef=="function"&&WeakRef.prototype,vr=Qt?WeakRef.prototype.deref:null,jt=Boolean.prototype.valueOf,Jt=Object.prototype.toString,Yt=Function.prototype.toString,Kt=String.prototype.match,xe=String.prototype.slice,M=String.prototype.replace,Xt=String.prototype.toUpperCase,mr=String.prototype.toLowerCase,hr=RegExp.prototype.test,gr=Array.prototype.concat,F=Array.prototype.join,Zt=Array.prototype.slice,Sr=Math.floor,Te=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Me=Object.getOwnPropertySymbols,Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,j=typeof Symbol=="function"&&typeof Symbol.iterator=="object",A=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===j||"symbol")?Symbol.toStringTag:null,br=Object.prototype.propertyIsEnumerable,Or=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(r){return r.__proto__}:null);function wr(r,e){if(r===1/0||r===-1/0||r!==r||r&&r>-1e3&&r<1e3||hr.call(/e/,e))return e;var t=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof r=="number"){var n=r<0?-Sr(-r):Sr(r);if(n!==r){var a=String(n),o=xe.call(e,a.length+1);return M.call(a,t,"$&_")+"."+M.call(M.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return M.call(e,t,"$&_")}var Le=qt,Ar=Le.custom,Pr=Nr(Ar)?Ar:null,en=function r(e,t,n,a){var o=t||{};if(R(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(R(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=R(o,"customInspect")?o.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(R(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(R(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return Fr(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var c=String(e);return i?wr(e,c):c}if(typeof e=="bigint"){var f=String(e)+"n";return i?wr(e,f):f}var s=typeof o.depth>"u"?5:o.depth;if(typeof n>"u"&&(n=0),n>=s&&s>0&&typeof e=="object")return ke(e)?"[Array]":"[Object]";var v=Sn(o,n);if(typeof a>"u")a=[];else if(_r(a,e)>=0)return"[Circular]";function y(T,ee,we){if(ee&&(a=Zt.call(a),a.push(ee)),we){var re={depth:o.depth};return R(o,"quoteStyle")&&(re.quoteStyle=o.quoteStyle),r(T,re,n+1,a)}return r(T,o,n+1,a)}if(typeof e=="function"&&!Ir(e)){var g=un(e),h=he(e,y);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(h.length>0?" { "+F.call(h,", ")+" }":"")}if(Nr(e)){var E=j?M.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Re.call(e);return typeof e=="object"&&!j?ie(E):E}if(mn(e)){for(var D="<"+mr.call(String(e.nodeName)),m=e.attributes||[],x=0;x<m.length;x++)D+=" "+m[x].name+"="+Er(rn(m[x].value),"double",o);return D+=">",e.childNodes&&e.childNodes.length&&(D+="..."),D+="</"+mr.call(String(e.nodeName))+">",D}if(ke(e)){if(e.length===0)return"[]";var k=he(e,y);return v&&!gn(k)?"["+Be(k,v)+"]":"[ "+F.call(k,", ")+" ]"}if(nn(e)){var K=he(e,y);return!("cause"in Error.prototype)&&"cause"in e&&!br.call(e,"cause")?"{ ["+String(e)+"] "+F.call(gr.call("[cause]: "+y(e.cause),K),", ")+" }":K.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+F.call(K,", ")+" }"}if(typeof e=="object"&&l){if(Pr&&typeof e[Pr]=="function"&&Le)return Le(e,{depth:s-n});if(l!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(sn(e)){var ce=[];return yr&&yr.call(e,function(T,ee){ce.push(y(ee,e,!0)+" => "+y(T,e))}),$r("Map",ve.call(e),ce,v)}if(dn(e)){var Oe=[];return dr&&dr.call(e,function(T){Oe.push(y(T,e))}),$r("Set",me.call(e),Oe,v)}if(pn(e))return Ue("WeakMap");if(vn(e))return Ue("WeakSet");if(yn(e))return Ue("WeakRef");if(an(e))return ie(y(Number(e)));if(cn(e))return ie(y(Te.call(e)));if(ln(e))return ie(jt.call(e));if(on(e))return ie(y(String(e)));if(!tn(e)&&!Ir(e)){var W=he(e,y),U=Or?Or(e)===Object.prototype:e instanceof Object||e.constructor===Object,X=e instanceof Object?"":"null prototype",Z=!U&&A&&Object(e)===e&&A in e?xe.call(L(e),8,-1):X?"Object":"",fe=U||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",_=fe+(Z||X?"["+F.call(gr.call([],Z||[],X||[]),": ")+"] ":"");return W.length===0?_+"{}":v?_+"{"+Be(W,v)+"}":_+"{ "+F.call(W,", ")+" }"}return String(e)};function Er(r,e,t){var n=(t.quoteStyle||e)==="double"?'"':"'";return n+r+n}function rn(r){return M.call(String(r),/"/g,""")}function ke(r){return L(r)==="[object Array]"&&(!A||!(typeof r=="object"&&A in r))}function tn(r){return L(r)==="[object Date]"&&(!A||!(typeof r=="object"&&A in r))}function Ir(r){return L(r)==="[object RegExp]"&&(!A||!(typeof r=="object"&&A in r))}function nn(r){return L(r)==="[object Error]"&&(!A||!(typeof r=="object"&&A in r))}function on(r){return L(r)==="[object String]"&&(!A||!(typeof r=="object"&&A in r))}function an(r){return L(r)==="[object Number]"&&(!A||!(typeof r=="object"&&A in r))}function ln(r){return L(r)==="[object Boolean]"&&(!A||!(typeof r=="object"&&A in r))}function Nr(r){if(j)return r&&typeof r=="object"&&r instanceof Symbol;if(typeof r=="symbol")return!0;if(!r||typeof r!="object"||!Re)return!1;try{return Re.call(r),!0}catch{}return!1}function cn(r){if(!r||typeof r!="object"||!Te)return!1;try{return Te.call(r),!0}catch{}return!1}var fn=Object.prototype.hasOwnProperty||function(r){return r in this};function R(r,e){return fn.call(r,e)}function L(r){return Jt.call(r)}function un(r){if(r.name)return r.name;var e=Kt.call(Yt.call(r),/^function\s*([\w$]+)/);return e?e[1]:null}function _r(r,e){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t;return-1}function sn(r){if(!ve||!r||typeof r!="object")return!1;try{ve.call(r);try{me.call(r)}catch{return!0}return r instanceof Map}catch{}return!1}function pn(r){if(!oe||!r||typeof r!="object")return!1;try{oe.call(r,oe);try{ae.call(r,ae)}catch{return!0}return r instanceof WeakMap}catch{}return!1}function yn(r){if(!vr||!r||typeof r!="object")return!1;try{return vr.call(r),!0}catch{}return!1}function dn(r){if(!me||!r||typeof r!="object")return!1;try{me.call(r);try{ve.call(r)}catch{return!0}return r instanceof Set}catch{}return!1}function vn(r){if(!ae||!r||typeof r!="object")return!1;try{ae.call(r,ae);try{oe.call(r,oe)}catch{return!0}return r instanceof WeakSet}catch{}return!1}function mn(r){return!r||typeof r!="object"?!1:typeof HTMLElement<"u"&&r instanceof HTMLElement?!0:typeof r.nodeName=="string"&&typeof r.getAttribute=="function"}function Fr(r,e){if(r.length>e.maxStringLength){var t=r.length-e.maxStringLength,n="... "+t+" more character"+(t>1?"s":"");return Fr(xe.call(r,0,e.maxStringLength),e)+n}var a=M.call(M.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,hn);return Er(a,"single",e)}function hn(r){var e=r.charCodeAt(0),t={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return t?"\\"+t:"\\x"+(e<16?"0":"")+Xt.call(e.toString(16))}function ie(r){return"Object("+r+")"}function Ue(r){return r+" { ? }"}function $r(r,e,t,n){var a=n?Be(t,n):F.call(t,", ");return r+" ("+e+") {"+a+"}"}function gn(r){for(var e=0;e<r.length;e++)if(_r(r[e],`
|
|
6
|
+
`)>=0)return!1;return!0}function Sn(r,e){var t;if(r.indent===" ")t=" ";else if(typeof r.indent=="number"&&r.indent>0)t=F.call(Array(r.indent+1)," ");else return null;return{base:t,prev:F.call(Array(e+1),t)}}function Be(r,e){if(r.length===0)return"";var t=`
|
|
7
|
+
`+e.prev+e.base;return t+F.call(r,","+t)+`
|
|
8
|
+
`+e.prev}function he(r,e){var t=ke(r),n=[];if(t){n.length=r.length;for(var a=0;a<r.length;a++)n[a]=R(r,a)?e(r[a],r):""}var o=typeof Me=="function"?Me(r):[],l;if(j){l={};for(var i=0;i<o.length;i++)l["$"+o[i]]=o[i]}for(var c in r)R(r,c)&&(t&&String(Number(c))===c&&c<r.length||j&&l["$"+c]instanceof Symbol||(hr.call(/[^\w$]/,c)?n.push(e(c,r)+": "+e(r[c],r)):n.push(c+": "+e(r[c],r))));if(typeof Me=="function")for(var f=0;f<o.length;f++)br.call(r,o[f])&&n.push("["+e(o[f])+"]: "+e(r[o[f]],r));return n}var Ge=_e,J=Wt,bn=en,On=Ge("%TypeError%"),ge=Ge("%WeakMap%",!0),Se=Ge("%Map%",!0),wn=J("WeakMap.prototype.get",!0),An=J("WeakMap.prototype.set",!0),Pn=J("WeakMap.prototype.has",!0),En=J("Map.prototype.get",!0),In=J("Map.prototype.set",!0),Nn=J("Map.prototype.has",!0),He=function(r,e){for(var t=r,n;(n=t.next)!==null;t=n)if(n.key===e)return t.next=n.next,n.next=r.next,r.next=n,n},_n=function(r,e){var t=He(r,e);return t&&t.value},Fn=function(r,e,t){var n=He(r,e);n?n.value=t:r.next={key:e,next:r.next,value:t}},$n=function(r,e){return!!He(r,e)},Cn=function(){var e,t,n,a={assert:function(o){if(!a.has(o))throw new On("Side channel does not contain "+bn(o))},get:function(o){if(ge&&o&&(typeof o=="object"||typeof o=="function")){if(e)return wn(e,o)}else if(Se){if(t)return En(t,o)}else if(n)return _n(n,o)},has:function(o){if(ge&&o&&(typeof o=="object"||typeof o=="function")){if(e)return Pn(e,o)}else if(Se){if(t)return Nn(t,o)}else if(n)return $n(n,o);return!1},set:function(o,l){ge&&o&&(typeof o=="object"||typeof o=="function")?(e||(e=new ge),An(e,o,l)):Se?(t||(t=new Se),In(t,o,l)):(n||(n={key:{},next:null}),Fn(n,o,l))}};return a},Dn=String.prototype.replace,xn=/%20/g,We={RFC1738:"RFC1738",RFC3986:"RFC3986"},qe={default:We.RFC3986,formatters:{RFC1738:function(r){return Dn.call(r,xn,"+")},RFC3986:function(r){return String(r)}},RFC1738:We.RFC1738,RFC3986:We.RFC3986},Tn=qe,Ve=Object.prototype.hasOwnProperty,H=Array.isArray,$=function(){for(var r=[],e=0;e<256;++e)r.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return r}(),Mn=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(H(n)){for(var a=[],o=0;o<n.length;++o)typeof n[o]<"u"&&a.push(n[o]);t.obj[t.prop]=a}}},Cr=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},a=0;a<e.length;++a)typeof e[a]<"u"&&(n[a]=e[a]);return n},Rn=function r(e,t,n){if(!t)return e;if(typeof t!="object"){if(H(e))e.push(t);else if(e&&typeof e=="object")(n&&(n.plainObjects||n.allowPrototypes)||!Ve.call(Object.prototype,t))&&(e[t]=!0);else return[e,t];return e}if(!e||typeof e!="object")return[e].concat(t);var a=e;return H(e)&&!H(t)&&(a=Cr(e,n)),H(e)&&H(t)?(t.forEach(function(o,l){if(Ve.call(e,l)){var i=e[l];i&&typeof i=="object"&&o&&typeof o=="object"?e[l]=r(i,o,n):e.push(o)}else e[l]=o}),e):Object.keys(t).reduce(function(o,l){var i=t[l];return Ve.call(o,l)?o[l]=r(o[l],i,n):o[l]=i,o},a)},Ln=function(e,t){return Object.keys(t).reduce(function(n,a){return n[a]=t[a],n},e)},kn=function(r,e,t){var n=r.replace(/\+/g," ");if(t==="iso-8859-1")return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch{return n}},Un=function(e,t,n,a,o){if(e.length===0)return e;var l=e;if(typeof e=="symbol"?l=Symbol.prototype.toString.call(e):typeof e!="string"&&(l=String(e)),n==="iso-8859-1")return escape(l).replace(/%u[0-9a-f]{4}/gi,function(s){return"%26%23"+parseInt(s.slice(2),16)+"%3B"});for(var i="",c=0;c<l.length;++c){var f=l.charCodeAt(c);if(f===45||f===46||f===95||f===126||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||o===Tn.RFC1738&&(f===40||f===41)){i+=l.charAt(c);continue}if(f<128){i=i+$[f];continue}if(f<2048){i=i+($[192|f>>6]+$[128|f&63]);continue}if(f<55296||f>=57344){i=i+($[224|f>>12]+$[128|f>>6&63]+$[128|f&63]);continue}c+=1,f=65536+((f&1023)<<10|l.charCodeAt(c)&1023),i+=$[240|f>>18]+$[128|f>>12&63]+$[128|f>>6&63]+$[128|f&63]}return i},Bn=function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],a=0;a<t.length;++a)for(var o=t[a],l=o.obj[o.prop],i=Object.keys(l),c=0;c<i.length;++c){var f=i[c],s=l[f];typeof s=="object"&&s!==null&&n.indexOf(s)===-1&&(t.push({obj:l,prop:f}),n.push(s))}return Mn(t),e},Gn=function(e){return Object.prototype.toString.call(e)==="[object RegExp]"},Hn=function(e){return!e||typeof e!="object"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},Wn=function(e,t){return[].concat(e,t)},qn=function(e,t){if(H(e)){for(var n=[],a=0;a<e.length;a+=1)n.push(t(e[a]));return n}return t(e)},Dr={arrayToObject:Cr,assign:Ln,combine:Wn,compact:Bn,decode:kn,encode:Un,isBuffer:Hn,isRegExp:Gn,maybeMap:qn,merge:Rn},xr=Cn,be=Dr,le=qe,Vn=Object.prototype.hasOwnProperty,Tr={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},C=Array.isArray,zn=Array.prototype.push,Mr=function(r,e){zn.apply(r,C(e)?e:[e])},Qn=Date.prototype.toISOString,Rr=le.default,P={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:be.encode,encodeValuesOnly:!1,format:Rr,formatter:le.formatters[Rr],indices:!1,serializeDate:function(e){return Qn.call(e)},skipNulls:!1,strictNullHandling:!1},jn=function(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e=="symbol"||typeof e=="bigint"},ze={},Jn=function r(e,t,n,a,o,l,i,c,f,s,v,y,g,h,E,D){for(var m=e,x=D,k=0,K=!1;(x=x.get(ze))!==void 0&&!K;){var ce=x.get(e);if(k+=1,typeof ce<"u"){if(ce===k)throw new RangeError("Cyclic object value");K=!0}typeof x.get(ze)>"u"&&(k=0)}if(typeof c=="function"?m=c(t,m):m instanceof Date?m=v(m):n==="comma"&&C(m)&&(m=be.maybeMap(m,function(re){return re instanceof Date?v(re):re})),m===null){if(o)return i&&!h?i(t,P.encoder,E,"key",y):t;m=""}if(jn(m)||be.isBuffer(m)){if(i){var Oe=h?t:i(t,P.encoder,E,"key",y);return[g(Oe)+"="+g(i(m,P.encoder,E,"value",y))]}return[g(t)+"="+g(String(m))]}var W=[];if(typeof m>"u")return W;var U;if(n==="comma"&&C(m))h&&i&&(m=be.maybeMap(m,i)),U=[{value:m.length>0?m.join(",")||null:void 0}];else if(C(c))U=c;else{var X=Object.keys(m);U=f?X.sort(f):X}for(var Z=a&&C(m)&&m.length===1?t+"[]":t,fe=0;fe<U.length;++fe){var _=U[fe],T=typeof _=="object"&&typeof _.value<"u"?_.value:m[_];if(!(l&&T===null)){var ee=C(m)?typeof n=="function"?n(Z,_):Z:Z+(s?"."+_:"["+_+"]");D.set(e,k);var we=xr();we.set(ze,D),Mr(W,r(T,ee,n,a,o,l,n==="comma"&&h&&C(m)?null:i,c,f,s,v,y,g,h,E,we))}}return W},Yn=function(e){if(!e)return P;if(e.encoder!==null&&typeof e.encoder<"u"&&typeof e.encoder!="function")throw new TypeError("Encoder has to be a function.");var t=e.charset||P.charset;if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=le.default;if(typeof e.format<"u"){if(!Vn.call(le.formatters,e.format))throw new TypeError("Unknown format option provided.");n=e.format}var a=le.formatters[n],o=P.filter;return(typeof e.filter=="function"||C(e.filter))&&(o=e.filter),{addQueryPrefix:typeof e.addQueryPrefix=="boolean"?e.addQueryPrefix:P.addQueryPrefix,allowDots:typeof e.allowDots>"u"?P.allowDots:!!e.allowDots,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:P.charsetSentinel,delimiter:typeof e.delimiter>"u"?P.delimiter:e.delimiter,encode:typeof e.encode=="boolean"?e.encode:P.encode,encoder:typeof e.encoder=="function"?e.encoder:P.encoder,encodeValuesOnly:typeof e.encodeValuesOnly=="boolean"?e.encodeValuesOnly:P.encodeValuesOnly,filter:o,format:n,formatter:a,serializeDate:typeof e.serializeDate=="function"?e.serializeDate:P.serializeDate,skipNulls:typeof e.skipNulls=="boolean"?e.skipNulls:P.skipNulls,sort:typeof e.sort=="function"?e.sort:null,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:P.strictNullHandling}},Kn=function(r,e){var t=r,n=Yn(e),a,o;typeof n.filter=="function"?(o=n.filter,t=o("",t)):C(n.filter)&&(o=n.filter,a=o);var l=[];if(typeof t!="object"||t===null)return"";var i;e&&e.arrayFormat in Tr?i=e.arrayFormat:e&&"indices"in e?i=e.indices?"indices":"repeat":i="indices";var c=Tr[i];if(e&&"commaRoundTrip"in e&&typeof e.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var f=c==="comma"&&e&&e.commaRoundTrip;a||(a=Object.keys(t)),n.sort&&a.sort(n.sort);for(var s=xr(),v=0;v<a.length;++v){var y=a[v];n.skipNulls&&t[y]===null||Mr(l,Jn(t[y],y,c,f,n.strictNullHandling,n.skipNulls,n.encode?n.encoder:null,n.filter,n.sort,n.allowDots,n.serializeDate,n.format,n.formatter,n.encodeValuesOnly,n.charset,s))}var g=l.join(n.delimiter),h=n.addQueryPrefix===!0?"?":"";return n.charsetSentinel&&(n.charset==="iso-8859-1"?h+="utf8=%26%2310003%3B&":h+="utf8=%E2%9C%93&"),g.length>0?h+g:""},Y=Dr,Qe=Object.prototype.hasOwnProperty,Xn=Array.isArray,O={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:Y.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Zn=function(r){return r.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},Lr=function(r,e){return r&&typeof r=="string"&&e.comma&&r.indexOf(",")>-1?r.split(","):r},eo="utf8=%26%2310003%3B",ro="utf8=%E2%9C%93",to=function(e,t){var n={__proto__:null},a=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,o=t.parameterLimit===1/0?void 0:t.parameterLimit,l=a.split(t.delimiter,o),i=-1,c,f=t.charset;if(t.charsetSentinel)for(c=0;c<l.length;++c)l[c].indexOf("utf8=")===0&&(l[c]===ro?f="utf-8":l[c]===eo&&(f="iso-8859-1"),i=c,c=l.length);for(c=0;c<l.length;++c)if(c!==i){var s=l[c],v=s.indexOf("]="),y=v===-1?s.indexOf("="):v+1,g,h;y===-1?(g=t.decoder(s,O.decoder,f,"key"),h=t.strictNullHandling?null:""):(g=t.decoder(s.slice(0,y),O.decoder,f,"key"),h=Y.maybeMap(Lr(s.slice(y+1),t),function(E){return t.decoder(E,O.decoder,f,"value")})),h&&t.interpretNumericEntities&&f==="iso-8859-1"&&(h=Zn(h)),s.indexOf("[]=")>-1&&(h=Xn(h)?[h]:h),Qe.call(n,g)?n[g]=Y.combine(n[g],h):n[g]=h}return n},no=function(r,e,t,n){for(var a=n?e:Lr(e,t),o=r.length-1;o>=0;--o){var l,i=r[o];if(i==="[]"&&t.parseArrays)l=[].concat(a);else{l=t.plainObjects?Object.create(null):{};var c=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,f=parseInt(c,10);!t.parseArrays&&c===""?l={0:a}:!isNaN(f)&&i!==c&&String(f)===c&&f>=0&&t.parseArrays&&f<=t.arrayLimit?(l=[],l[f]=a):c!=="__proto__"&&(l[c]=a)}a=l}return a},oo=function(e,t,n,a){if(e){var o=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,l=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,c=n.depth>0&&l.exec(o),f=c?o.slice(0,c.index):o,s=[];if(f){if(!n.plainObjects&&Qe.call(Object.prototype,f)&&!n.allowPrototypes)return;s.push(f)}for(var v=0;n.depth>0&&(c=i.exec(o))!==null&&v<n.depth;){if(v+=1,!n.plainObjects&&Qe.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;s.push(c[1])}return c&&s.push("["+o.slice(c.index)+"]"),no(s,t,n,a)}},ao=function(e){if(!e)return O;if(e.decoder!==null&&e.decoder!==void 0&&typeof e.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof e.charset<"u"&&e.charset!=="utf-8"&&e.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=typeof e.charset>"u"?O.charset:e.charset;return{allowDots:typeof e.allowDots>"u"?O.allowDots:!!e.allowDots,allowPrototypes:typeof e.allowPrototypes=="boolean"?e.allowPrototypes:O.allowPrototypes,allowSparse:typeof e.allowSparse=="boolean"?e.allowSparse:O.allowSparse,arrayLimit:typeof e.arrayLimit=="number"?e.arrayLimit:O.arrayLimit,charset:t,charsetSentinel:typeof e.charsetSentinel=="boolean"?e.charsetSentinel:O.charsetSentinel,comma:typeof e.comma=="boolean"?e.comma:O.comma,decoder:typeof e.decoder=="function"?e.decoder:O.decoder,delimiter:typeof e.delimiter=="string"||Y.isRegExp(e.delimiter)?e.delimiter:O.delimiter,depth:typeof e.depth=="number"||e.depth===!1?+e.depth:O.depth,ignoreQueryPrefix:e.ignoreQueryPrefix===!0,interpretNumericEntities:typeof e.interpretNumericEntities=="boolean"?e.interpretNumericEntities:O.interpretNumericEntities,parameterLimit:typeof e.parameterLimit=="number"?e.parameterLimit:O.parameterLimit,parseArrays:e.parseArrays!==!1,plainObjects:typeof e.plainObjects=="boolean"?e.plainObjects:O.plainObjects,strictNullHandling:typeof e.strictNullHandling=="boolean"?e.strictNullHandling:O.strictNullHandling}},io=function(r,e){var t=ao(e);if(r===""||r===null||typeof r>"u")return t.plainObjects?Object.create(null):{};for(var n=typeof r=="string"?to(r,t):r,a=t.plainObjects?Object.create(null):{},o=Object.keys(n),l=0;l<o.length;++l){var i=o[l],c=oo(i,n[i],t,typeof r=="string");a=Y.merge(a,c,t)}return t.allowSparse===!0?a:Y.compact(a)},lo=Kn,co=io,fo=qe,uo={formats:fo,parse:co,stringify:lo};const kr=je(uo),so=r=>kr.parse(r,{ignoreQueryPrefix:!0}),po=r=>kr.stringify(r,{arrayFormat:"brackets"});p.Checkbox=Kr,p.DropdownBtn=tr,p.HIGHLIGHTED_COLOR=st,p.HIGHLIGHTED_COLOR_ALPHA=pt,p.InputFormGroup=Zr,p.LabeledFormGroup=er,p.MAIN_COLOR=ft,p.MAIN_COLOR_ALPHA=ut,p.Message=qr,p.NavPillItem=nr,p.NavPills=nt,p.OrderingDropdown=ct,p.PRIMARY_DARK_COLOR=dt,p.PRIMARY_LIGHT_COLOR=yt,p.Result=Vr,p.RowDropdownBtn=tt,p.SearchField=rt,p.SimpleCard=Ye,p.ToggleSwitch=Xr,p.changeThemeInMarkup=vt,p.determineOrderDir=or,p.isDarkThemeEnabled=mt,p.orderToString=at,p.parseQuery=so,p.sortList=ot,p.stringToOrder=it,p.stringifyQuery=po,p.useDomId=Ae,p.useElementRef=Yr,p.useOrder=lt,p.useToggle=Xe,Object.defineProperty(p,Symbol.toStringTag,{value:"Module"})});
|
package/package.json
CHANGED
|
@@ -21,8 +21,12 @@
|
|
|
21
21
|
"build": "vite build && cp ./src/base.scss ./dist/base.scss",
|
|
22
22
|
"test": "vitest run",
|
|
23
23
|
"test:ci": "npm run test -- --coverage",
|
|
24
|
-
"lint": "
|
|
25
|
-
"lint:
|
|
24
|
+
"lint": "npm run lint:css && npm run lint:js",
|
|
25
|
+
"lint:css": "stylelint src/*.scss src/**/*.scss dev/*.scss dev/**/*.scss",
|
|
26
|
+
"lint:js": "eslint --ext .ts,.tsx dev src test",
|
|
27
|
+
"lint:fix": "npm run lint:css:fix && npm run lint:js:fix",
|
|
28
|
+
"lint:css:fix": "npm run lint:css -- --fix",
|
|
29
|
+
"lint:js:fix": "npm run lint:js -- --fix",
|
|
26
30
|
"types": "tsc",
|
|
27
31
|
"dev": "vite serve --host=0.0.0.0 --port 3001"
|
|
28
32
|
},
|
|
@@ -41,28 +45,28 @@
|
|
|
41
45
|
"reactstrap": "^9.2.0"
|
|
42
46
|
},
|
|
43
47
|
"devDependencies": {
|
|
44
|
-
"@shlinkio/eslint-config-js-coding-standard": "~2.
|
|
48
|
+
"@shlinkio/eslint-config-js-coding-standard": "~2.3.0",
|
|
45
49
|
"@shlinkio/stylelint-config-css-coding-standard": "~1.1.1",
|
|
46
|
-
"@testing-library/jest-dom": "^
|
|
50
|
+
"@testing-library/jest-dom": "^6.1.2",
|
|
47
51
|
"@testing-library/react": "^14.0.0",
|
|
48
52
|
"@testing-library/user-event": "^14.4.3",
|
|
49
53
|
"@total-typescript/shoehorn": "^0.1.1",
|
|
50
|
-
"@types/qs": "^6.9.
|
|
51
|
-
"@types/react": "^18.2.
|
|
54
|
+
"@types/qs": "^6.9.8",
|
|
55
|
+
"@types/react": "^18.2.21",
|
|
52
56
|
"@types/react-dom": "^18.2.7",
|
|
53
|
-
"@types/uuid": "^9.0.
|
|
57
|
+
"@types/uuid": "^9.0.3",
|
|
54
58
|
"@vitejs/plugin-react": "^4.0.4",
|
|
55
|
-
"@vitest/coverage-v8": "^0.34.
|
|
59
|
+
"@vitest/coverage-v8": "^0.34.3",
|
|
56
60
|
"bootstrap": "5.2.3",
|
|
57
|
-
"eslint": "^8.
|
|
61
|
+
"eslint": "^8.48.0",
|
|
58
62
|
"jsdom": "^22.1.0",
|
|
59
63
|
"resize-observer-polyfill": "^1.5.1",
|
|
60
|
-
"sass": "^1.
|
|
61
|
-
"stylelint": "^15.10.
|
|
62
|
-
"typescript": "^5.
|
|
64
|
+
"sass": "^1.66.1",
|
|
65
|
+
"stylelint": "^15.10.3",
|
|
66
|
+
"typescript": "^5.2.2",
|
|
63
67
|
"vite": "^4.4.9",
|
|
64
|
-
"vite-plugin-dts": "^3.5.
|
|
65
|
-
"vitest": "^0.34.
|
|
68
|
+
"vite-plugin-dts": "^3.5.3",
|
|
69
|
+
"vitest": "^0.34.3"
|
|
66
70
|
},
|
|
67
71
|
"browserslist": [
|
|
68
72
|
">0.2%",
|
|
@@ -70,5 +74,5 @@
|
|
|
70
74
|
"not ie <= 11",
|
|
71
75
|
"not op_mini all"
|
|
72
76
|
],
|
|
73
|
-
"version": "0.2.
|
|
77
|
+
"version": "0.2.1"
|
|
74
78
|
}
|