UNPKG

contentful-management

Version:
1 lines 242 kB
var contentfulManagement=function(e){"use strict";var t=Function.prototype.toString,n=Object.create,r=Object.prototype.toString,o=function(){function e(){this._keys=[],this._values=[]}return e.prototype.has=function(e){return!!~this._keys.indexOf(e)},e.prototype.get=function(e){return this._values[this._keys.indexOf(e)]},e.prototype.set=function(e,t){this._keys.push(e),this._values.push(t)},e}(),i="undefined"!=typeof WeakMap?function(){return new WeakMap}:function(){return new o};function a(e){if(!e)return n(null);var r=e.constructor;if(r===Object)return e===Object.prototype?{}:n(e);if(r&&~t.call(r).indexOf("[native code]"))try{return new r}catch(e){}return n(e)}var s="g"===/test/g.flags?function(e){return e.flags}:function(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t};function c(e){var t=r.call(e);return t.substring(8,t.length-1)}var p="undefined"!=typeof Symbol?function(e){return e[Symbol.toStringTag]||c(e)}:c,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,d=Object.getOwnPropertyNames,y=Object.getOwnPropertySymbols,f=Object.prototype,m=f.hasOwnProperty,h=f.propertyIsEnumerable,g="function"==typeof y,I=g?function(e){return d(e).concat(y(e))}:d;function b(e,t,n){for(var r=I(e),o=0,i=r.length,a=void 0,s=void 0;o<i;++o)if("callee"!==(a=r[o])&&"caller"!==a)if(s=l(e,a)){s.get||s.set||(s.value=n.copier(s.value,n));try{u(t,a,s)}catch(e){t[a]=s.value}}else t[a]=n.copier(e[a],n);return t}function v(e){return e.slice(0)}function A(e,t){var n=new t.Constructor;return t.cache.set(e,n),e.forEach(function(e,r){n.set(r,t.copier(e,t))}),n}function T(e,t){return new t.Constructor(e.valueOf())}function O(e){return e}function w(e,t){var n=new t.Constructor;return t.cache.set(e,n),e.forEach(function(e){n.add(t.copier(e,t))}),n}var j=Array.isArray,S=Object.assign,_=Object.getPrototypeOf||function(e){return e.__proto__},E={array:function(e,t){var n=new t.Constructor;t.cache.set(e,n);for(var r=0,o=e.length;r<o;++r)n[r]=t.copier(e[r],t);return n},arrayBuffer:v,blob:function(e){return e.slice(0,e.size,e.type)},dataView:function(e,t){return new t.Constructor(v(e.buffer))},date:function(e,t){return new t.Constructor(e.getTime())},error:O,map:A,object:g?function(e,t){var n=a(t.prototype);for(var r in t.cache.set(e,n),e)m.call(e,r)&&(n[r]=t.copier(e[r],t));for(var o=y(e),i=0,s=o.length,c=void 0;i<s;++i)h.call(e,c=o[i])&&(n[c]=t.copier(e[c],t));return n}:function(e,t){var n=a(t.prototype);for(var r in t.cache.set(e,n),e)m.call(e,r)&&(n[r]=t.copier(e[r],t));return n},regExp:function(e,t){var n=new t.Constructor(e.source,s(e));return n.lastIndex=e.lastIndex,n},set:w},$=S({},E,{array:function(e,t){var n=new t.Constructor;return t.cache.set(e,n),b(e,n,t)},map:function(e,t){return b(e,A(e,t),t)},object:function(e,t){var n=a(t.prototype);return t.cache.set(e,n),b(e,n,t)},set:function(e,t){return b(e,w(e,t),t)}});function P(e){var t=function(e){return{Arguments:e.object,Array:e.array,ArrayBuffer:e.arrayBuffer,Blob:e.blob,Boolean:T,DataView:e.dataView,Date:e.date,Error:e.error,Float32Array:e.arrayBuffer,Float64Array:e.arrayBuffer,Int8Array:e.arrayBuffer,Int16Array:e.arrayBuffer,Int32Array:e.arrayBuffer,Map:e.map,Number:T,Object:e.object,Promise:O,RegExp:e.regExp,Set:e.set,String:T,WeakMap:O,WeakSet:O,Uint8Array:e.arrayBuffer,Uint8ClampedArray:e.arrayBuffer,Uint16Array:e.arrayBuffer,Uint32Array:e.arrayBuffer,Uint64Array:e.arrayBuffer}}(S({},E,e)),n=t.Array,r=t.Object;function o(e,o){if(o.prototype=o.Constructor=void 0,!e||"object"!=typeof e)return e;if(o.cache.has(e))return o.cache.get(e);if(o.prototype=_(e),o.Constructor=o.prototype&&o.prototype.constructor,!o.Constructor||o.Constructor===Object)return r(e,o);if(j(e))return n(e,o);var i=t[p(e)];return i?i(e,o):"function"==typeof e.then?e:r(e,o)}return function(e){return o(e,{Constructor:void 0,cache:i(),copier:o,prototype:void 0})}}P(S({},$,{}));var R=P({});function M(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function z(e){return e&&Object.prototype.hasOwnProperty.call(e,"default")&&1===Object.keys(e).length?e.default:e}var k,C,x,D,F,q,U,L,N,W,B,V,K,X,H,J,G,Q,Z,Y={exports:{}},ee=function(){if(k)return Y.exports;k=1;var e,t,n=Y.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(e===setTimeout)return setTimeout(t,0);if((e===r||!e)&&setTimeout)return e=setTimeout,setTimeout(t,0);try{return e(t,0)}catch(n){try{return e.call(null,t,0)}catch(n){return e.call(this,t,0)}}}!function(){try{e="function"==typeof setTimeout?setTimeout:r}catch(t){e=r}try{t="function"==typeof clearTimeout?clearTimeout:o}catch(e){t=o}}();var a,s=[],c=!1,p=-1;function u(){c&&a&&(c=!1,a.length?s=a.concat(s):p=-1,s.length&&l())}function l(){if(!c){var e=i(u);c=!0;for(var n=s.length;n;){for(a=s,s=[];++p<n;)a&&a[p].run();p=-1,n=s.length}a=null,c=!1,function(e){if(t===clearTimeout)return clearTimeout(e);if((t===o||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(e);try{return t(e)}catch(n){try{return t.call(null,e)}catch(n){return t.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function y(){}return n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new d(e,t)),1!==s.length||c||i(l)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=y,n.addListener=y,n.once=y,n.off=y,n.removeListener=y,n.removeAllListeners=y,n.emit=y,n.prependListener=y,n.prependOnceListener=y,n.listeners=function(){return[]},n.binding=function(){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(){throw new Error("process.chdir is not supported")},n.umask=function(){return 0},Y.exports}(),te=M(ee);function ne(){}function re(){if(U)return q;U=1;var e=function(){if(F)return D;F=1;var e=function(){if(x)return C;x=1;var e="object"==typeof global&&global&&global.Object===Object&&global;return C=e}(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return D=n}();return q=e.Symbol}function oe(){if(K)return V;K=1;var e=re(),t=function(){if(N)return L;N=1;var e=re(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;return L=function(e){var t=n.call(e,o),i=e[o];try{e[o]=void 0;var a=!0}catch(e){}var s=r.call(e);return a&&(t?e[o]=i:delete e[o]),s}}(),n=function(){if(B)return W;B=1;var e=Object.prototype.toString;return W=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return V=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function ie(){return G?J:(G=1,J=function(e){return null!=e&&"object"==typeof e})}var ae=function(){if(Z)return Q;Z=1;var e=oe(),t=H?X:(H=1,X=Array.isArray),n=ie();return Q=function(r){return"string"==typeof r||!t(r)&&n(r)&&"[object String]"==e(r)}}(),se=M(ae);class ce extends Error{name="AbortError";constructor(){super("Throttled function aborted")}}const pe=/(?<value>\d+)(%)/;function ue(e,t=7){let n=t;if(pe.test(e)){const r=e.match(pe)?.groups;if(r&&r.value){const e=parseInt(r.value)/100;n=Math.round(t*e)}}return Math.min(30,Math.max(1,n))}function le(e,t){return t("info",`Throttle request to ${e}/s`),function({limit:e,interval:t,onDelay:n}){if(!Number.isFinite(e))throw new TypeError("Expected `limit` to be a finite number");if(!Number.isFinite(t))throw new TypeError("Expected `interval` to be a finite number");const r=new Map;let o=0,i=0;return function(a){const s=function(...c){if(!s.isEnabled)return(async()=>a.apply(this,c))();let p;return new Promise((s,u)=>{const l=()=>{s(a.apply(this,c)),r.delete(p)},d=function(){const n=Date.now();return n-o>t?(i=1,o=n,0):(i<e?i++:(o+=t,i=1),o-n)}();d>0?(p=setTimeout(l,d),r.set(p,u),n?.()):l()})};return s.abort=()=>{for(const e of r.keys())clearTimeout(e),r.get(e)(new ce);r.clear()},s.isEnabled=!0,Object.defineProperty(s,"queueSize",{get:()=>r.size}),s}}({limit:e,interval:1e3,strict:!1})}var de,ye,fe;function me(){return ye?de:(ye=1,de=TypeError)}fe="function"==typeof Object.create?function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e};var he=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},ge=/%[sdj%]/g;function Ie(e){if(!ke(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(Oe(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,o=r.length,i=String(e).replace(ge,function(e){if("%%"===e)return"%";if(n>=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),a=r[n];n<o;a=r[++n])Re(a)||!Fe(a)?i+=" "+a:i+=" "+Oe(a);return i}function be(e,t){if(xe(global.process))return function(){return be(e,t).apply(this,arguments)};if(!0===te.noDeprecation)return e;var n=!1;return function(){if(!n){if(te.throwDeprecation)throw new Error(t);n=!0}return e.apply(this,arguments)}}var ve,Ae={};function Te(e){return xe(ve)&&(ve=te.env.NODE_DEBUG||""),e=e.toUpperCase(),Ae[e]||(Ae[e]=new RegExp("\\b"+e+"\\b","i").test(ve)?function(){Ie.apply(null,arguments)}:function(){}),Ae[e]}function Oe(e,t){var n={seen:[],stylize:je};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Pe(t)?n.showHidden=t:t&&Ke(n,t),xe(n.showHidden)&&(n.showHidden=!1),xe(n.depth)&&(n.depth=2),xe(n.colors)&&(n.colors=!1),xe(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=we),Se(n,e,n.depth)}function we(e,t){var n=Oe.styles[t];return n?"["+Oe.colors[n][0]+"m"+e+"["+Oe.colors[n][1]+"m":e}function je(e){return e}function Se(e,t,n){if(e.customInspect&&t&&Le(t.inspect)&&t.inspect!==Oe&&(!t.constructor||t.constructor.prototype!==t)){var r=t.inspect(n,e);return ke(r)||(r=Se(e,r,n)),r}var o=function(e,t){if(xe(t))return e.stylize("undefined","undefined");if(ke(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return ze(t)?e.stylize(""+t,"number"):Pe(t)?e.stylize(""+t,"boolean"):Re(t)?e.stylize("null","null"):void 0}(e,t);if(o)return o;var i=Object.keys(t),a=function(e){var t={};return e.forEach(function(e){t[e]=!0}),t}(i);if(e.showHidden&&(i=Object.getOwnPropertyNames(t)),Ue(t)&&(i.indexOf("message")>=0||i.indexOf("description")>=0))return _e(t);if(0===i.length){if(Le(t))return e.stylize("[Function"+(t.name?": "+t.name:"")+"]","special");if(De(t))return e.stylize(RegExp.prototype.toString.call(t),"regexp");if(qe(t))return e.stylize(Date.prototype.toString.call(t),"date");if(Ue(t))return _e(t)}var s,c="",p=!1,u=["{","}"];return $e(t)&&(p=!0,u=["[","]"]),Le(t)&&(c=" [Function"+(t.name?": "+t.name:"")+"]"),De(t)&&(c=" "+RegExp.prototype.toString.call(t)),qe(t)&&(c=" "+Date.prototype.toUTCString.call(t)),Ue(t)&&(c=" "+_e(t)),0!==i.length||p&&0!=t.length?n<0?De(t)?e.stylize(RegExp.prototype.toString.call(t),"regexp"):e.stylize("[Object]","special"):(e.seen.push(t),s=p?function(e,t,n,r,o){for(var i=[],a=0,s=t.length;a<s;++a)Xe(t,String(a))?i.push(Ee(e,t,n,r,String(a),!0)):i.push("");return o.forEach(function(o){o.match(/^\d+$/)||i.push(Ee(e,t,n,r,o,!0))}),i}(e,t,n,a,i):i.map(function(r){return Ee(e,t,n,a,r,p)}),e.seen.pop(),function(e,t,n){return e.reduce(function(e,t){return t.indexOf("\n"),e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}(s,c,u)):u[0]+c+u[1]}function _e(e){return"["+Error.prototype.toString.call(e)+"]"}function Ee(e,t,n,r,o,i){var a,s,c;if((c=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]}).get?s=e.stylize(c.set?"[Getter/Setter]":"[Getter]","special"):c.set&&(s=e.stylize("[Setter]","special")),Xe(r,o)||(a="["+o+"]"),s||(e.seen.indexOf(c.value)<0?(s=Re(n)?Se(e,c.value,null):Se(e,c.value,n-1)).indexOf("\n")>-1&&(s=i?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n")):s=e.stylize("[Circular]","special")),xe(a)){if(i&&o.match(/^\d+$/))return s;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function $e(e){return Array.isArray(e)}function Pe(e){return"boolean"==typeof e}function Re(e){return null===e}function Me(e){return null==e}function ze(e){return"number"==typeof e}function ke(e){return"string"==typeof e}function Ce(e){return"symbol"==typeof e}function xe(e){return void 0===e}function De(e){return Fe(e)&&"[object RegExp]"===Be(e)}function Fe(e){return"object"==typeof e&&null!==e}function qe(e){return Fe(e)&&"[object Date]"===Be(e)}function Ue(e){return Fe(e)&&("[object Error]"===Be(e)||e instanceof Error)}function Le(e){return"function"==typeof e}function Ne(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e}function We(e){return Buffer.isBuffer(e)}function Be(e){return Object.prototype.toString.call(e)}function Ve(){}function Ke(e,t){if(!t||!Fe(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e}function Xe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}Oe.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},Oe.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};var He="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function Je(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');if(He&&e[He]){var t;if("function"!=typeof(t=e[He]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,He,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise(function(e,r){t=e,n=r}),o=[],i=0;i<arguments.length;i++)o.push(arguments[i]);o.push(function(e,r){e?n(e):t(r)});try{e.apply(this,o)}catch(e){n(e)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),He&&Object.defineProperty(t,He,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,he(e))}function Ge(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function Qe(e){if("function"!=typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var r=t.pop();if("function"!=typeof r)throw new TypeError("The last argument must be of type Function");var o=this,i=function(){return r.apply(o,arguments)};e.apply(this,t).then(function(e){te.nextTick(i.bind(null,null,e))},function(e){te.nextTick(Ge.bind(null,e,i))})}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,he(e)),t}Je.custom=He;var Ze,Ye,et,tt,nt,rt,ot,it,at,st,ct,pt,ut,lt,dt,yt,ft,mt,ht,gt,It,bt,vt,At,Tt,Ot,wt,jt,St,_t,Et,$t,Pt,Rt,Mt,zt,kt,Ct,xt,Dt,Ft,qt,Ut,Lt,Nt,Wt,Bt,Vt,Kt,Xt,Ht,Jt,Gt,Qt,Zt,Yt,en,tn,nn,rn,on,an,sn,cn,pn,un,ln,dn,yn,fn,mn,hn,gn,In,bn,vn,An,Tn,On,wn,jn,Sn,_n,En,$n,Pn,Rn,Mn,zn,kn,Cn=z(Object.freeze({__proto__:null,_extend:Ke,callbackify:Qe,debuglog:Te,default:{inherits:fe,_extend:Ke,log:Ve,isBuffer:We,isPrimitive:Ne,isFunction:Le,isError:Ue,isDate:qe,isObject:Fe,isRegExp:De,isUndefined:xe,isSymbol:Ce,isString:ke,isNumber:ze,isNullOrUndefined:Me,isNull:Re,isBoolean:Pe,isArray:$e,inspect:Oe,deprecate:be,format:Ie,debuglog:Te,promisify:Je,callbackify:Qe},deprecate:be,format:Ie,inherits:fe,inspect:Oe,isArray:$e,isBoolean:Pe,isBuffer:We,isDate:qe,isError:Ue,isFunction:Le,isNull:Re,isNullOrUndefined:Me,isNumber:ze,isObject:Fe,isPrimitive:Ne,isRegExp:De,isString:ke,isSymbol:Ce,isUndefined:xe,log:Ve,promisify:Je}));function xn(){return Ye?Ze:(Ye=1,Ze=Cn.inspect)}function Dn(){if(tt)return et;tt=1;var e="function"==typeof Map&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,n=e&&t&&"function"==typeof t.get?t.get:null,r=e&&Map.prototype.forEach,o="function"==typeof Set&&Set.prototype,i=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=o&&i&&"function"==typeof i.get?i.get:null,s=o&&Set.prototype.forEach,c="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,p="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,u="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,l=Boolean.prototype.valueOf,d=Object.prototype.toString,y=Function.prototype.toString,f=String.prototype.match,m=String.prototype.slice,h=String.prototype.replace,g=String.prototype.toUpperCase,I=String.prototype.toLowerCase,b=RegExp.prototype.test,v=Array.prototype.concat,A=Array.prototype.join,T=Array.prototype.slice,O=Math.floor,w="function"==typeof BigInt?BigInt.prototype.valueOf:null,j=Object.getOwnPropertySymbols,S="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,_="function"==typeof Symbol&&"object"==typeof Symbol.iterator,E="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol,1)?Symbol.toStringTag:null,$=Object.prototype.propertyIsEnumerable,P=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function R(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||b.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-O(-e):O(e);if(r!==e){var o=String(r),i=m.call(t,o.length+1);return h.call(o,n,"$&_")+"."+h.call(h.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return h.call(t,n,"$&_")}var M=xn(),z=M.custom,k=N(z)?z:null,C={__proto__:null,double:'"',single:"'"},x={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};function D(e,t,n){var r=C[n.quoteStyle||t];return r+e+r}function F(e){return h.call(String(e),/"/g,"&quot;")}function q(e){return!E||!("object"==typeof e&&(E in e||void 0!==e[E]))}function U(e){return"[object Array]"===V(e)&&q(e)}function L(e){return"[object RegExp]"===V(e)&&q(e)}function N(e){if(_)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!S)return!1;try{return S.call(e),!0}catch(e){}return!1}et=function e(t,o,i,d){var g=o||{};if(B(g,"quoteStyle")&&!B(C,g.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(B(g,"maxStringLength")&&("number"==typeof g.maxStringLength?g.maxStringLength<0&&g.maxStringLength!==1/0:null!==g.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var b=!B(g,"customInspect")||g.customInspect;if("boolean"!=typeof b&&"symbol"!==b)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(B(g,"indent")&&null!==g.indent&&"\t"!==g.indent&&!(parseInt(g.indent,10)===g.indent&&g.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(B(g,"numericSeparator")&&"boolean"!=typeof g.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var O=g.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return X(t,g);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var j=String(t);return O?R(t,j):j}if("bigint"==typeof t){var z=String(t)+"n";return O?R(t,z):z}var x=void 0===g.depth?5:g.depth;if(void 0===i&&(i=0),i>=x&&x>0&&"object"==typeof t)return U(t)?"[Array]":"[Object]";var W,H=function(e,t){var n;if("\t"===e.indent)n="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=A.call(Array(e.indent+1)," ")}return{base:n,prev:A.call(Array(t+1),n)}}(g,i);if(void 0===d)d=[];else if(K(d,t)>=0)return"[Circular]";function ee(t,n,r){if(n&&(d=T.call(d)).push(n),r){var o={depth:g.depth};return B(g,"quoteStyle")&&(o.quoteStyle=g.quoteStyle),e(t,o,i+1,d)}return e(t,g,i+1,d)}if("function"==typeof t&&!L(t)){var te=function(e){if(e.name)return e.name;var t=f.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),ne=Y(t,ee);return"[Function"+(te?": "+te:" (anonymous)")+"]"+(ne.length>0?" { "+A.call(ne,", ")+" }":"")}if(N(t)){var re=_?h.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):S.call(t);return"object"!=typeof t||_?re:J(re)}if((W=t)&&"object"==typeof W&&("undefined"!=typeof HTMLElement&&W instanceof HTMLElement||"string"==typeof W.nodeName&&"function"==typeof W.getAttribute)){for(var oe="<"+I.call(String(t.nodeName)),ie=t.attributes||[],ae=0;ae<ie.length;ae++)oe+=" "+ie[ae].name+"="+D(F(ie[ae].value),"double",g);return oe+=">",t.childNodes&&t.childNodes.length&&(oe+="..."),oe+"</"+I.call(String(t.nodeName))+">"}if(U(t)){if(0===t.length)return"[]";var se=Y(t,ee);return H&&!function(e){for(var t=0;t<e.length;t++)if(K(e[t],"\n")>=0)return!1;return!0}(se)?"["+Z(se,H)+"]":"[ "+A.call(se,", ")+" ]"}if(function(e){return"[object Error]"===V(e)&&q(e)}(t)){var ce=Y(t,ee);return"cause"in Error.prototype||!("cause"in t)||$.call(t,"cause")?0===ce.length?"["+String(t)+"]":"{ ["+String(t)+"] "+A.call(ce,", ")+" }":"{ ["+String(t)+"] "+A.call(v.call("[cause]: "+ee(t.cause),ce),", ")+" }"}if("object"==typeof t&&b){if(k&&"function"==typeof t[k]&&M)return M(t,{depth:x-i});if("symbol"!==b&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!n||!e||"object"!=typeof e)return!1;try{n.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var pe=[];return r&&r.call(t,function(e,n){pe.push(ee(n,t,!0)+" => "+ee(e,t))}),Q("Map",n.call(t),pe,H)}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{n.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ue=[];return s&&s.call(t,function(e){ue.push(ee(e,t))}),Q("Set",a.call(t),ue,H)}if(function(e){if(!c||!e||"object"!=typeof e)return!1;try{c.call(e,c);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return G("WeakMap");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{c.call(e,c)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return G("WeakSet");if(function(e){if(!u||!e||"object"!=typeof e)return!1;try{return u.call(e),!0}catch(e){}return!1}(t))return G("WeakRef");if(function(e){return"[object Number]"===V(e)&&q(e)}(t))return J(ee(Number(t)));if(function(e){if(!e||"object"!=typeof e||!w)return!1;try{return w.call(e),!0}catch(e){}return!1}(t))return J(ee(w.call(t)));if(function(e){return"[object Boolean]"===V(e)&&q(e)}(t))return J(l.call(t));if(function(e){return"[object String]"===V(e)&&q(e)}(t))return J(ee(String(t)));if("undefined"!=typeof window&&t===window)return"{ [object Window] }";if("undefined"!=typeof globalThis&&t===globalThis||"undefined"!=typeof global&&t===global)return"{ [object globalThis] }";if(!function(e){return"[object Date]"===V(e)&&q(e)}(t)&&!L(t)){var le=Y(t,ee),de=P?P(t)===Object.prototype:t instanceof Object||t.constructor===Object,ye=t instanceof Object?"":"null prototype",fe=!de&&E&&Object(t)===t&&E in t?m.call(V(t),8,-1):ye?"Object":"",me=(de||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(fe||ye?"["+A.call(v.call([],fe||[],ye||[]),": ")+"] ":"");return 0===le.length?me+"{}":H?me+"{"+Z(le,H)+"}":me+"{ "+A.call(le,", ")+" }"}return String(t)};var W=Object.prototype.hasOwnProperty||function(e){return e in this};function B(e,t){return W.call(e,t)}function V(e){return d.call(e)}function K(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function X(e,t){if(e.length>t.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return X(m.call(e,0,t.maxStringLength),t)+r}var o=x[t.quoteStyle||"single"];return o.lastIndex=0,D(h.call(h.call(e,o,"\\$1"),/[\x00-\x1f]/g,H),"single",t)}function H(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+g.call(t.toString(16))}function J(e){return"Object("+e+")"}function G(e){return e+" { ? }"}function Q(e,t,n,r){return e+" ("+t+") {"+(r?Z(n,r):A.call(n,", "))+"}"}function Z(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+A.call(e,","+n)+"\n"+t.prev}function Y(e,t){var n=U(e),r=[];if(n){r.length=e.length;for(var o=0;o<e.length;o++)r[o]=B(e,o)?t(e[o],e):""}var i,a="function"==typeof j?j(e):[];if(_){i={};for(var s=0;s<a.length;s++)i["$"+a[s]]=a[s]}for(var c in e)B(e,c)&&(n&&String(Number(c))===c&&c<e.length||_&&i["$"+c]instanceof Symbol||(b.call(/[^\w$]/,c)?r.push(t(c,e)+": "+t(e[c],e)):r.push(c+": "+t(e[c],e))));if("function"==typeof j)for(var p=0;p<a.length;p++)$.call(e,a[p])&&r.push("["+t(a[p])+"]: "+t(e[a[p]],e));return r}return et}function Fn(){return it?ot:(it=1,ot=Object)}function qn(){return st?at:(st=1,at=Error)}function Un(){return pt?ct:(pt=1,ct=EvalError)}function Ln(){return lt?ut:(lt=1,ut=RangeError)}function Nn(){return yt?dt:(yt=1,dt=ReferenceError)}function Wn(){return mt?ft:(mt=1,ft=SyntaxError)}function Bn(){return gt?ht:(gt=1,ht=URIError)}function Vn(){return bt?It:(bt=1,It=Math.abs)}function Kn(){return At?vt:(At=1,vt=Math.floor)}function Xn(){return Ot?Tt:(Ot=1,Tt=Math.max)}function Hn(){return jt?wt:(jt=1,wt=Math.min)}function Jn(){return _t?St:(_t=1,St=Math.pow)}function Gn(){return $t?Et:($t=1,Et=Math.round)}function Qn(){return Rt?Pt:(Rt=1,Pt=Number.isNaN||function(e){return e!=e})}function Zn(){if(zt)return Mt;zt=1;var e=Qn();return Mt=function(t){return e(t)||0===t?t:t<0?-1:1}}function Yn(){return Ct?kt:(Ct=1,kt=Object.getOwnPropertyDescriptor)}function er(){if(Dt)return xt;Dt=1;var e=Yn();if(e)try{e([],"length")}catch(t){e=null}return xt=e}function tr(){if(qt)return Ft;qt=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch(t){e=!1}return Ft=e}function nr(){if(Wt)return Nt;Wt=1;var e="undefined"!=typeof Symbol&&Symbol,t=Lt?Ut:(Lt=1,Ut=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(var r in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var o=Object.getOwnPropertySymbols(e);if(1!==o.length||o[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0});return Nt=function(){return"function"==typeof e&&"function"==typeof Symbol&&"symbol"==typeof e("foo")&&"symbol"==typeof Symbol("bar")&&t()}}function rr(){return Vt?Bt:(Vt=1,Bt="undefined"!=typeof Reflect&&Reflect.getPrototypeOf||null)}function or(){return Xt?Kt:(Xt=1,Kt=Fn().getPrototypeOf||null)}function ir(){if(Jt)return Ht;Jt=1;var e=Object.prototype.toString,t=Math.max,n=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var o=0;o<t.length;o+=1)n[o+e.length]=t[o];return n};return Ht=function(r){var o=this;if("function"!=typeof o||"[object Function]"!==e.apply(o))throw new TypeError("Function.prototype.bind called on incompatible "+o);for(var i,a=function(e){for(var t=[],n=1,r=0;n<e.length;n+=1,r+=1)t[r]=e[n];return t}(arguments),s=t(0,o.length-a.length),c=[],p=0;p<s;p++)c[p]="$"+p;if(i=Function("binder","return function ("+function(e){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=",");return t}(c)+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof i){var e=o.apply(this,n(a,arguments));return Object(e)===e?e:this}return o.apply(r,n(a,arguments))}),o.prototype){var u=function(){};u.prototype=o.prototype,i.prototype=new u,u.prototype=null}return i},Ht}function ar(){if(Qt)return Gt;Qt=1;var e=ir();return Gt=Function.prototype.bind||e}function sr(){return Yt?Zt:(Yt=1,Zt=Function.prototype.call)}function cr(){return tn?en:(tn=1,en=Function.prototype.apply)}function pr(){if(cn)return sn;cn=1;var e=ar(),t=me(),n=sr(),r=function(){if(an)return on;an=1;var e=ar(),t=cr(),n=sr(),r=rn?nn:(rn=1,nn="undefined"!=typeof Reflect&&Reflect&&Reflect.apply);return on=r||e.call(n,t)}();return sn=function(o){if(o.length<1||"function"!=typeof o[0])throw new t("a function is required");return r(e,n,o)}}function ur(){if(un)return pn;un=1;var e,t=pr(),n=er();try{e=[].__proto__===Array.prototype}catch(e){if(!e||"object"!=typeof e||!("code"in e)||"ERR_PROTO_ACCESS"!==e.code)throw e}var r=!!e&&n&&n(Object.prototype,"__proto__"),o=Object,i=o.getPrototypeOf;return pn=r&&"function"==typeof r.get?t([r.get]):"function"==typeof i&&function(e){return i(null==e?e:o(e))}}function lr(){if(dn)return ln;dn=1;var e=rr(),t=or(),n=ur();return ln=e?function(t){return e(t)}:t?function(e){if(!e||"object"!=typeof e&&"function"!=typeof e)throw new TypeError("getProto: not an object");return t(e)}:n?function(e){return n(e)}:null}function dr(){if(fn)return yn;fn=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,n=ar();return yn=n.call(e,t)}function yr(){if(hn)return mn;var e;hn=1;var t=Fn(),n=qn(),r=Un(),o=Ln(),i=Nn(),a=Wn(),s=me(),c=Bn(),p=Vn(),u=Kn(),l=Xn(),d=Hn(),y=Jn(),f=Gn(),m=Zn(),h=Function,g=function(e){try{return h('"use strict"; return ('+e+").constructor;")()}catch(e){}},I=er(),b=tr(),v=function(){throw new s},A=I?function(){try{return v}catch(e){try{return I(arguments,"callee").get}catch(e){return v}}}():v,T=nr()(),O=lr(),w=or(),j=rr(),S=cr(),_=sr(),E={},$="undefined"!=typeof Uint8Array&&O?O(Uint8Array):e,P={__proto__:null,"%AggregateError%":"undefined"==typeof AggregateError?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?e:ArrayBuffer,"%ArrayIteratorPrototype%":T&&O?O([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":E,"%AsyncGenerator%":E,"%AsyncGeneratorFunction%":E,"%AsyncIteratorPrototype%":E,"%Atomics%":"undefined"==typeof Atomics?e:Atomics,"%BigInt%":"undefined"==typeof BigInt?e:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?e:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":n,"%eval%":eval,"%EvalError%":r,"%Float16Array%":"undefined"==typeof Float16Array?e:Float16Array,"%Float32Array%":"undefined"==typeof Float32Array?e:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?e:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?e:FinalizationRegistry,"%Function%":h,"%GeneratorFunction%":E,"%Int8Array%":"undefined"==typeof Int8Array?e:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?e:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":T&&O?O(O([][Symbol.iterator]())):e,"%JSON%":"object"==typeof JSON?JSON:e,"%Map%":"undefined"==typeof Map?e:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&T&&O?O((new Map)[Symbol.iterator]()):e,"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":I,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?e:Promise,"%Proxy%":"undefined"==typeof Proxy?e:Proxy,"%RangeError%":o,"%ReferenceError%":i,"%Reflect%":"undefined"==typeof Reflect?e:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?e:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&T&&O?O((new Set)[Symbol.iterator]()):e,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":T&&O?O(""[Symbol.iterator]()):e,"%Symbol%":T?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":A,"%TypedArray%":$,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?e:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?e:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?e:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?e:Uint32Array,"%URIError%":c,"%WeakMap%":"undefined"==typeof WeakMap?e:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?e:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?e:WeakSet,"%Function.prototype.call%":_,"%Function.prototype.apply%":S,"%Object.defineProperty%":b,"%Object.getPrototypeOf%":w,"%Math.abs%":p,"%Math.floor%":u,"%Math.max%":l,"%Math.min%":d,"%Math.pow%":y,"%Math.round%":f,"%Math.sign%":m,"%Reflect.getPrototypeOf%":j};if(O)try{null.error}catch(e){var R=O(O(e));P["%Error.prototype%"]=R}var M=function e(t){var n;if("%AsyncFunction%"===t)n=g("async function () {}");else if("%GeneratorFunction%"===t)n=g("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=g("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&O&&(n=O(o.prototype))}return P[t]=n,n},z={__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"]},k=ar(),C=dr(),x=k.call(_,Array.prototype.concat),D=k.call(S,Array.prototype.splice),F=k.call(_,String.prototype.replace),q=k.call(_,String.prototype.slice),U=k.call(_,RegExp.prototype.exec),L=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,N=/\\(\\)?/g,W=function(e,t){var n,r=e;if(C(z,r)&&(r="%"+(n=z[r])[0]+"%"),C(P,r)){var o=P[r];if(o===E&&(o=M(r)),void 0===o&&!t)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new a("intrinsic "+e+" does not exist!")};return mn=function(e,t){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new s('"allowMissing" argument must be a boolean');if(null===U(/^%?[^%]*%?$/,e))throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=q(e,0,1),n=q(e,-1);if("%"===t&&"%"!==n)throw new a("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new a("invalid intrinsic syntax, expected opening `%`");var r=[];return F(e,L,function(e,t,n,o){r[r.length]=n?F(o,N,"$1"):t||e}),r}(e),r=n.length>0?n[0]:"",o=W("%"+r+"%",t),i=o.name,c=o.value,p=!1,u=o.alias;u&&(r=u[0],D(n,x([0,1],u)));for(var l=1,d=!0;l<n.length;l+=1){var y=n[l],f=q(y,0,1),m=q(y,-1);if(('"'===f||"'"===f||"`"===f||'"'===m||"'"===m||"`"===m)&&f!==m)throw new a("property names with quotes must have matching quotes");if("constructor"!==y&&d||(p=!0),C(P,i="%"+(r+="."+y)+"%"))c=P[i];else if(null!=c){if(!(y in c)){if(!t)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(I&&l+1>=n.length){var h=I(c,y);c=(d=!!h)&&"get"in h&&!("originalValue"in h.get)?h.get:c[y]}else d=C(c,y),c=c[y];d&&!p&&(P[i]=c)}}return c},mn}function fr(){if(In)return gn;In=1;var e=yr(),t=pr(),n=t([e("%String.prototype.indexOf%")]);return gn=function(r,o){var i=e(r,!!o);return"function"==typeof i&&n(r,".prototype.")>-1?t([i]):i}}function mr(){if(vn)return bn;vn=1;var e=yr(),t=fr(),n=Dn(),r=me(),o=e("%Map%",!0),i=t("Map.prototype.get",!0),a=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),c=t("Map.prototype.delete",!0),p=t("Map.prototype.size",!0);return bn=!!o&&function(){var e,t={assert:function(e){if(!t.has(e))throw new r("Side channel does not contain "+n(e))},delete:function(t){if(e){var n=c(e,t);return 0===p(e)&&(e=void 0),n}return!1},get:function(t){if(e)return i(e,t)},has:function(t){return!!e&&s(e,t)},set:function(t,n){e||(e=new o),a(e,t,n)}};return t}}function hr(){if(wn)return On;wn=1;var e=me(),t=Dn(),n=function(){if(rt)return nt;rt=1;var e=Dn(),t=me(),n=function(e,t,n){for(var r,o=e;null!=(r=o.next);o=r)if(r.key===t)return o.next=r.next,n||(r.next=e.next,e.next=r),r};return nt=function(){var r,o={assert:function(n){if(!o.has(n))throw new t("Side channel does not contain "+e(n))},delete:function(e){var t=r&&r.next,o=function(e,t){if(e)return n(e,t,!0)}(r,e);return o&&t&&t===o&&(r=void 0),!!o},get:function(e){return function(e,t){if(e){var r=n(e,t);return r&&r.value}}(r,e)},has:function(e){return function(e,t){return!!e&&!!n(e,t)}(r,e)},set:function(e,t){r||(r={next:void 0}),function(e,t,r){var o=n(e,t);o?o.value=r:e.next={key:t,next:e.next,value:r}}(r,e,t)}};return o}}(),r=mr(),o=function(){if(Tn)return An;Tn=1;var e=yr(),t=fr(),n=Dn(),r=mr(),o=me(),i=e("%WeakMap%",!0),a=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),c=t("WeakMap.prototype.has",!0),p=t("WeakMap.prototype.delete",!0);return An=i?function(){var e,t,u={assert:function(e){if(!u.has(e))throw new o("Side channel does not contain "+n(e))},delete:function(n){if(i&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(r&&t)return t.delete(n);return!1},get:function(n){return i&&n&&("object"==typeof n||"function"==typeof n)&&e?a(e,n):t&&t.get(n)},has:function(n){return i&&n&&("object"==typeof n||"function"==typeof n)&&e?c(e,n):!!t&&t.has(n)},set:function(n,o){i&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new i),s(e,n,o)):r&&(t||(t=r()),t.set(n,o))}};return u}:r}(),i=o||r||n;return On=function(){var n,r={assert:function(n){if(!r.has(n))throw new e("Side channel does not contain "+t(n))},delete:function(e){return!!n&&n.delete(e)},get:function(e){return n&&n.get(e)},has:function(e){return!!n&&n.has(e)},set:function(e,t){n||(n=i()),n.set(e,t)}};return r}}function gr(){if(Sn)return jn;Sn=1;var e=String.prototype.replace,t=/%20/g,n="RFC3986";return jn={default:n,formatters:{RFC1738:function(n){return e.call(n,t,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:n}}function Ir(){if(En)return _n;En=1;var e=gr(),t=hr(),n=Object.prototype.hasOwnProperty,r=Array.isArray,o=t(),i=function(e,t){return o.set(e,t),e},a=function(e){return o.has(e)},s=function(e){return o.get(e)},c=function(e,t){o.set(e,t)},p=function(){for(var e=[],t=0;t<256;++t)e[e.length]="%"+((t<16?"0":"")+t.toString(16)).toUpperCase();return e}(),u=function(e,t){for(var n=t&&t.plainObjects?{__proto__:null}:{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n},l=1024;return _n={arrayToObject:u,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t,n,r){if(a(e)){var o=s(e)+1;return e[o]=t,c(e,o),e}var p=[].concat(e,t);return p.length>n?i(u(p,{plainObjects:r}),p.length-1):p},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],o=0;o<t.length;++o)for(var i=t[o],a=i.obj[i.prop],s=Object.keys(a),c=0;c<s.length;++c){var p=s[c],u=a[p];"object"==typeof u&&null!==u&&-1===n.indexOf(u)&&(t[t.length]={obj:a,prop:p},n[n.length]=u)}return function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(r(n)){for(var o=[],i=0;i<n.length;++i)void 0!==n[i]&&(o[o.length]=n[i]);t.obj[t.prop]=o}}}(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(t,n,r,o,i){if(0===t.length)return t;var a=t;if("symbol"==typeof t?a=Symbol.prototype.toString.call(t):"string"!=typeof t&&(a=String(t)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var s="",c=0;c<a.length;c+=l){for(var u=a.length>=l?a.slice(c,c+l):a,d=[],y=0;y<u.length;++y){var f=u.charCodeAt(y);45===f||46===f||95===f||126===f||f>=48&&f<=57||f>=65&&f<=90||f>=97&&f<=122||i===e.RFC1738&&(40===f||41===f)?d[d.length]=u.charAt(y):f<128?d[d.length]=p[f]:f<2048?d[d.length]=p[192|f>>6]+p[128|63&f]:f<55296||f>=57344?d[d.length]=p[224|f>>12]+p[128|f>>6&63]+p[128|63&f]:(f=65536+((1023&f)<<10|1023&u.charCodeAt(y+=1)),d[d.length]=p[240|f>>18]+p[128|f>>12&63]+p[128|f>>6&63]+p[128|63&f])}s+=d.join("")}return s},isBuffer:function(e){return!(!e||"object"!=typeof e||!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e)))},isOverflow:a,isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},markOverflow:i,maybeMap:function(e,t){if(r(e)){for(var n=[],o=0;o<e.length;o+=1)n[n.length]=t(e[o]);return n}return t(e)},merge:function e(t,o,p){if(!o)return t;if("object"!=typeof o&&"function"!=typeof o){if(r(t)){var l=t.length;if(p&&"number"==typeof p.arrayLimit&&l>p.arrayLimit)return i(u(t.concat(o),p),l);t[l]=o}else{if(!t||"object"!=typeof t)return[t,o];if(a(t)){var d=s(t)+1;t[d]=o,c(t,d)}else{if(p&&p.strictMerge)return[t,o];(p&&(p.plainObjects||p.allowPrototypes)||!n.call(Object.prototype,o))&&(t[o]=!0)}}return t}if(!t||"object"!=typeof t){if(a(o)){for(var y=Object.keys(o),f=p&&p.plainObjects?{__proto__:null,0:t}:{0:t},m=0;m<y.length;m++)f[parseInt(y[m],10)+1]=o[y[m]];return i(f,s(o)+1)}var h=[t].concat(o);return p&&"number"==typeof p.arrayLimit&&h.length>p.arrayLimit?i(u(h,p),h.length-1):h}var g=t;return r(t)&&!r(o)&&(g=u(t,p)),r(t)&&r(o)?(o.forEach(function(r,o){if(n.call(t,o)){var i=t[o];i&&"object"==typeof i&&r&&"object"==typeof r?t[o]=e(i,r,p):t[t.length]=r}else t[o]=r}),t):Object.keys(o).reduce(function(t,r){var u=o[r];if(t[r]=n.call(t,r)?e(t[r],u,p):u,a(o)&&!a(t)&&i(t,s(o)),a(t)){var l=parseInt(r,10);String(l)===r&&l>=0&&l>s(t)&&c(t,l)}return t},g)}},_n}function br(){if(Pn)return $n;Pn=1;var e=hr(),t=Ir(),n=gr(),r=Object.prototype.hasOwnProperty,o={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},i=Array.isArray,a=Array.prototype.push,s=function(e,t){a.apply(e,i(t)?t:[t])},c=Date.prototype.toISOString,p=n.default,u={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:p,formatter:n.formatters[p],indices:!1,serializeDate:function(e){return c.call(e)},skipNulls:!1,strictNullHandling:!1},l={},d=function n(r,o,a,c,p,d,y,f,m,h,g,I,b,v,A,T,O,w){for(var j,S=r,_=w,E=0,$=!1;void 0!==(_=_.get(l))&&!$;){var P=_.get(r);if(E+=1,void 0!==P){if(P===E)throw new RangeError("Cyclic object value");$=!0}void 0===_.get(l)&&(E=0)}if("function"==typeof h?S=h(o,S):S instanceof Date?S=b(S):"comma"===a&&i(S)&&(S=t.maybeMap(S,function(e){return e instanceof Date?b(e):e})),null===S){if(d)return m&&!T?m(o,u.encoder,O,"key",v):o;S=""}if("string"==typeof(j=S)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||t.isBuffer(S))return m?[A(T?o:m(o,u.encoder,O,"key",v))+"="+A(m(S,u.encoder,O,"value",v))]:[A(o)+"="+A(String(S))];var R,M=[];if(void 0===S)return M;if("comma"===a&&i(S))T&&m&&(S=t.maybeMap(S,m)),R=[{value:S.length>0?S.join(",")||null:void 0}];else if(i(h))R=h;else{var z=Object.keys(S);R=g?z.sort(g):z}var k=f?String(o).replace(/\./g,"%2E"):String(o),C=c&&i(S)&&1===S.length?k+"[]":k;if(p&&i(S)&&0===S.length)return C+"[]";for(var x=0;x<R.length;++x){var D=R[x],F="object"==typeof D&&D&&void 0!==D.value?D.value:S[D];if(!y||null!==F){var q=I&&f?String(D).replace(/\./g,"%2E"):String(D),U=i(S)?"function"==typeof a?a(C,q):C:C+(I?"."+q:"["+q+"]");w.set(r,E);var L=e();L.set(l,w),s(M,n(F,U,a,c,p,d,y,f,"comma"===a&&T&&i(S)?null:m,h,g,I,b,v,A,T,O,L))}}return M};return $n=function(t,a){var c,p=t,l=function(e){if(!e)return u;if(void 0!==e.allowEmptyArrays&&"boolean"!=typeof e.allowEmptyArrays)throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(void 0!==e.encodeDotInKeys&&"boolean"!=typeof e.encodeDotInKeys)throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");if(null!=e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||u.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=n.default;if(void 0!==e.format){if(!r.call(n.formatters,e.format))throw new TypeError("Unknown format option provided.");a=e.format}var s,c=n.formatters[a],p=u.filter;if(("function"==typeof e.filter||i(e.filter))&&(p=e.filter),s=e.arrayFormat in o?e.arrayFormat:"indices"in e?e.indices?"indices":"repeat":u.arrayFormat,"commaRoundTrip"in e&&"boolean"!=typeof e.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");return{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:u.addQueryPrefix,allowDots:void 0===e.allowDots?!0===e.encodeDotInKeys||u.allowDots:!!e.allowDots,allowEmptyArrays:"boolean"==typeof e.allowEmptyArrays?!!e.allowEmptyArrays:u.allowEmptyArrays,arrayFormat:s,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:u.charsetSentinel,commaRoundTrip:!!e.commaRoundTrip,delimiter:void 0===e.delimiter?u.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:u.encode,encodeDotInKeys:"boolean"==typeof e.encodeDotInKeys?e.encodeDotInKeys:u.encodeDotInKeys,encoder:"function"==typeof e.encoder?e.encoder:u.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:u.encodeValuesOnly,filter:p,format:a,formatter:c,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:u.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:u.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:u.strictNullHandling}}(a);"function"==typeof l.filter?p=(0,l.filter)("",p):i(l.filter)&&(c=l.filter);var y=[];if("object"!=typeof p||null===p)return"";var f=o[l.arrayFormat],m="comma"===f&&l.commaRoundTrip;c||(c=Object.keys(p)),l.sort&&c.sort(l.sort);for(var h=e(),g=0;g<c.length;++g){var I=c[g],b=p[I];l.skipNulls&&null===b||s(y,d(b,I,f,m,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,h))}var v=y.join(l.delimiter),A=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&(A+="iso-8859-1"===l.charset?"utf8=%26%2310003%3B&":"utf8=%E2%9C%93&"),v.length>0?A+v:""},$n}function vr(){if(Mn)return Rn;Mn=1;var e=Ir(),t=Object.prototype.hasOwnProperty,n=Array.isArray,r={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,strictMerge:!0,strictNullHandling:!1,throwOnLimitExceeded:!1},o=function(e){return e.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})},i=functi