qs.js 67 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851
  1. import {
  2. __commonJS,
  3. init_define_APP_INFO
  4. } from "./chunk-XY75H3MP.js";
  5. // node_modules/has-symbols/shams.js
  6. var require_shams = __commonJS({
  7. "node_modules/has-symbols/shams.js"(exports, module) {
  8. "use strict";
  9. init_define_APP_INFO();
  10. module.exports = function hasSymbols() {
  11. if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
  12. return false;
  13. }
  14. if (typeof Symbol.iterator === "symbol") {
  15. return true;
  16. }
  17. var obj = {};
  18. var sym = Symbol("test");
  19. var symObj = Object(sym);
  20. if (typeof sym === "string") {
  21. return false;
  22. }
  23. if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
  24. return false;
  25. }
  26. if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
  27. return false;
  28. }
  29. var symVal = 42;
  30. obj[sym] = symVal;
  31. for (sym in obj) {
  32. return false;
  33. }
  34. if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
  35. return false;
  36. }
  37. if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
  38. return false;
  39. }
  40. var syms = Object.getOwnPropertySymbols(obj);
  41. if (syms.length !== 1 || syms[0] !== sym) {
  42. return false;
  43. }
  44. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
  45. return false;
  46. }
  47. if (typeof Object.getOwnPropertyDescriptor === "function") {
  48. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  49. if (descriptor.value !== symVal || descriptor.enumerable !== true) {
  50. return false;
  51. }
  52. }
  53. return true;
  54. };
  55. }
  56. });
  57. // node_modules/has-symbols/index.js
  58. var require_has_symbols = __commonJS({
  59. "node_modules/has-symbols/index.js"(exports, module) {
  60. "use strict";
  61. init_define_APP_INFO();
  62. var origSymbol = typeof Symbol !== "undefined" && Symbol;
  63. var hasSymbolSham = require_shams();
  64. module.exports = function hasNativeSymbols() {
  65. if (typeof origSymbol !== "function") {
  66. return false;
  67. }
  68. if (typeof Symbol !== "function") {
  69. return false;
  70. }
  71. if (typeof origSymbol("foo") !== "symbol") {
  72. return false;
  73. }
  74. if (typeof Symbol("bar") !== "symbol") {
  75. return false;
  76. }
  77. return hasSymbolSham();
  78. };
  79. }
  80. });
  81. // node_modules/function-bind/implementation.js
  82. var require_implementation = __commonJS({
  83. "node_modules/function-bind/implementation.js"(exports, module) {
  84. "use strict";
  85. init_define_APP_INFO();
  86. var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
  87. var slice = Array.prototype.slice;
  88. var toStr = Object.prototype.toString;
  89. var funcType = "[object Function]";
  90. module.exports = function bind(that) {
  91. var target = this;
  92. if (typeof target !== "function" || toStr.call(target) !== funcType) {
  93. throw new TypeError(ERROR_MESSAGE + target);
  94. }
  95. var args = slice.call(arguments, 1);
  96. var bound;
  97. var binder = function() {
  98. if (this instanceof bound) {
  99. var result = target.apply(
  100. this,
  101. args.concat(slice.call(arguments))
  102. );
  103. if (Object(result) === result) {
  104. return result;
  105. }
  106. return this;
  107. } else {
  108. return target.apply(
  109. that,
  110. args.concat(slice.call(arguments))
  111. );
  112. }
  113. };
  114. var boundLength = Math.max(0, target.length - args.length);
  115. var boundArgs = [];
  116. for (var i = 0; i < boundLength; i++) {
  117. boundArgs.push("$" + i);
  118. }
  119. bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
  120. if (target.prototype) {
  121. var Empty = function Empty2() {
  122. };
  123. Empty.prototype = target.prototype;
  124. bound.prototype = new Empty();
  125. Empty.prototype = null;
  126. }
  127. return bound;
  128. };
  129. }
  130. });
  131. // node_modules/function-bind/index.js
  132. var require_function_bind = __commonJS({
  133. "node_modules/function-bind/index.js"(exports, module) {
  134. "use strict";
  135. init_define_APP_INFO();
  136. var implementation = require_implementation();
  137. module.exports = Function.prototype.bind || implementation;
  138. }
  139. });
  140. // node_modules/has/src/index.js
  141. var require_src = __commonJS({
  142. "node_modules/has/src/index.js"(exports, module) {
  143. "use strict";
  144. init_define_APP_INFO();
  145. var bind = require_function_bind();
  146. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  147. }
  148. });
  149. // node_modules/get-intrinsic/index.js
  150. var require_get_intrinsic = __commonJS({
  151. "node_modules/get-intrinsic/index.js"(exports, module) {
  152. "use strict";
  153. init_define_APP_INFO();
  154. var undefined2;
  155. var $SyntaxError = SyntaxError;
  156. var $Function = Function;
  157. var $TypeError = TypeError;
  158. var getEvalledConstructor = function(expressionSyntax) {
  159. try {
  160. return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
  161. } catch (e) {
  162. }
  163. };
  164. var $gOPD = Object.getOwnPropertyDescriptor;
  165. if ($gOPD) {
  166. try {
  167. $gOPD({}, "");
  168. } catch (e) {
  169. $gOPD = null;
  170. }
  171. }
  172. var throwTypeError = function() {
  173. throw new $TypeError();
  174. };
  175. var ThrowTypeError = $gOPD ? function() {
  176. try {
  177. arguments.callee;
  178. return throwTypeError;
  179. } catch (calleeThrows) {
  180. try {
  181. return $gOPD(arguments, "callee").get;
  182. } catch (gOPDthrows) {
  183. return throwTypeError;
  184. }
  185. }
  186. }() : throwTypeError;
  187. var hasSymbols = require_has_symbols()();
  188. var getProto = Object.getPrototypeOf || function(x) {
  189. return x.__proto__;
  190. };
  191. var needsEval = {};
  192. var TypedArray = typeof Uint8Array === "undefined" ? undefined2 : getProto(Uint8Array);
  193. var INTRINSICS = {
  194. "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
  195. "%Array%": Array,
  196. "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
  197. "%ArrayIteratorPrototype%": hasSymbols ? getProto([][Symbol.iterator]()) : undefined2,
  198. "%AsyncFromSyncIteratorPrototype%": undefined2,
  199. "%AsyncFunction%": needsEval,
  200. "%AsyncGenerator%": needsEval,
  201. "%AsyncGeneratorFunction%": needsEval,
  202. "%AsyncIteratorPrototype%": needsEval,
  203. "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
  204. "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
  205. "%Boolean%": Boolean,
  206. "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
  207. "%Date%": Date,
  208. "%decodeURI%": decodeURI,
  209. "%decodeURIComponent%": decodeURIComponent,
  210. "%encodeURI%": encodeURI,
  211. "%encodeURIComponent%": encodeURIComponent,
  212. "%Error%": Error,
  213. "%eval%": eval,
  214. "%EvalError%": EvalError,
  215. "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
  216. "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
  217. "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
  218. "%Function%": $Function,
  219. "%GeneratorFunction%": needsEval,
  220. "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
  221. "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
  222. "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
  223. "%isFinite%": isFinite,
  224. "%isNaN%": isNaN,
  225. "%IteratorPrototype%": hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined2,
  226. "%JSON%": typeof JSON === "object" ? JSON : undefined2,
  227. "%Map%": typeof Map === "undefined" ? undefined2 : Map,
  228. "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
  229. "%Math%": Math,
  230. "%Number%": Number,
  231. "%Object%": Object,
  232. "%parseFloat%": parseFloat,
  233. "%parseInt%": parseInt,
  234. "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
  235. "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
  236. "%RangeError%": RangeError,
  237. "%ReferenceError%": ReferenceError,
  238. "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
  239. "%RegExp%": RegExp,
  240. "%Set%": typeof Set === "undefined" ? undefined2 : Set,
  241. "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
  242. "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
  243. "%String%": String,
  244. "%StringIteratorPrototype%": hasSymbols ? getProto(""[Symbol.iterator]()) : undefined2,
  245. "%Symbol%": hasSymbols ? Symbol : undefined2,
  246. "%SyntaxError%": $SyntaxError,
  247. "%ThrowTypeError%": ThrowTypeError,
  248. "%TypedArray%": TypedArray,
  249. "%TypeError%": $TypeError,
  250. "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
  251. "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
  252. "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
  253. "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
  254. "%URIError%": URIError,
  255. "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
  256. "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
  257. "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
  258. };
  259. var doEval = function doEval2(name) {
  260. var value;
  261. if (name === "%AsyncFunction%") {
  262. value = getEvalledConstructor("async function () {}");
  263. } else if (name === "%GeneratorFunction%") {
  264. value = getEvalledConstructor("function* () {}");
  265. } else if (name === "%AsyncGeneratorFunction%") {
  266. value = getEvalledConstructor("async function* () {}");
  267. } else if (name === "%AsyncGenerator%") {
  268. var fn = doEval2("%AsyncGeneratorFunction%");
  269. if (fn) {
  270. value = fn.prototype;
  271. }
  272. } else if (name === "%AsyncIteratorPrototype%") {
  273. var gen = doEval2("%AsyncGenerator%");
  274. if (gen) {
  275. value = getProto(gen.prototype);
  276. }
  277. }
  278. INTRINSICS[name] = value;
  279. return value;
  280. };
  281. var LEGACY_ALIASES = {
  282. "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
  283. "%ArrayPrototype%": ["Array", "prototype"],
  284. "%ArrayProto_entries%": ["Array", "prototype", "entries"],
  285. "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
  286. "%ArrayProto_keys%": ["Array", "prototype", "keys"],
  287. "%ArrayProto_values%": ["Array", "prototype", "values"],
  288. "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
  289. "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
  290. "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
  291. "%BooleanPrototype%": ["Boolean", "prototype"],
  292. "%DataViewPrototype%": ["DataView", "prototype"],
  293. "%DatePrototype%": ["Date", "prototype"],
  294. "%ErrorPrototype%": ["Error", "prototype"],
  295. "%EvalErrorPrototype%": ["EvalError", "prototype"],
  296. "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
  297. "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
  298. "%FunctionPrototype%": ["Function", "prototype"],
  299. "%Generator%": ["GeneratorFunction", "prototype"],
  300. "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
  301. "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
  302. "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
  303. "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
  304. "%JSONParse%": ["JSON", "parse"],
  305. "%JSONStringify%": ["JSON", "stringify"],
  306. "%MapPrototype%": ["Map", "prototype"],
  307. "%NumberPrototype%": ["Number", "prototype"],
  308. "%ObjectPrototype%": ["Object", "prototype"],
  309. "%ObjProto_toString%": ["Object", "prototype", "toString"],
  310. "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
  311. "%PromisePrototype%": ["Promise", "prototype"],
  312. "%PromiseProto_then%": ["Promise", "prototype", "then"],
  313. "%Promise_all%": ["Promise", "all"],
  314. "%Promise_reject%": ["Promise", "reject"],
  315. "%Promise_resolve%": ["Promise", "resolve"],
  316. "%RangeErrorPrototype%": ["RangeError", "prototype"],
  317. "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
  318. "%RegExpPrototype%": ["RegExp", "prototype"],
  319. "%SetPrototype%": ["Set", "prototype"],
  320. "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
  321. "%StringPrototype%": ["String", "prototype"],
  322. "%SymbolPrototype%": ["Symbol", "prototype"],
  323. "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
  324. "%TypedArrayPrototype%": ["TypedArray", "prototype"],
  325. "%TypeErrorPrototype%": ["TypeError", "prototype"],
  326. "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
  327. "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
  328. "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
  329. "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
  330. "%URIErrorPrototype%": ["URIError", "prototype"],
  331. "%WeakMapPrototype%": ["WeakMap", "prototype"],
  332. "%WeakSetPrototype%": ["WeakSet", "prototype"]
  333. };
  334. var bind = require_function_bind();
  335. var hasOwn = require_src();
  336. var $concat = bind.call(Function.call, Array.prototype.concat);
  337. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  338. var $replace = bind.call(Function.call, String.prototype.replace);
  339. var $strSlice = bind.call(Function.call, String.prototype.slice);
  340. var $exec = bind.call(Function.call, RegExp.prototype.exec);
  341. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  342. var reEscapeChar = /\\(\\)?/g;
  343. var stringToPath = function stringToPath2(string) {
  344. var first = $strSlice(string, 0, 1);
  345. var last = $strSlice(string, -1);
  346. if (first === "%" && last !== "%") {
  347. throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
  348. } else if (last === "%" && first !== "%") {
  349. throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
  350. }
  351. var result = [];
  352. $replace(string, rePropName, function(match, number, quote, subString) {
  353. result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
  354. });
  355. return result;
  356. };
  357. var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
  358. var intrinsicName = name;
  359. var alias;
  360. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  361. alias = LEGACY_ALIASES[intrinsicName];
  362. intrinsicName = "%" + alias[0] + "%";
  363. }
  364. if (hasOwn(INTRINSICS, intrinsicName)) {
  365. var value = INTRINSICS[intrinsicName];
  366. if (value === needsEval) {
  367. value = doEval(intrinsicName);
  368. }
  369. if (typeof value === "undefined" && !allowMissing) {
  370. throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
  371. }
  372. return {
  373. alias,
  374. name: intrinsicName,
  375. value
  376. };
  377. }
  378. throw new $SyntaxError("intrinsic " + name + " does not exist!");
  379. };
  380. module.exports = function GetIntrinsic(name, allowMissing) {
  381. if (typeof name !== "string" || name.length === 0) {
  382. throw new $TypeError("intrinsic name must be a non-empty string");
  383. }
  384. if (arguments.length > 1 && typeof allowMissing !== "boolean") {
  385. throw new $TypeError('"allowMissing" argument must be a boolean');
  386. }
  387. if ($exec(/^%?[^%]*%?$/g, name) === null) {
  388. throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
  389. }
  390. var parts = stringToPath(name);
  391. var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
  392. var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
  393. var intrinsicRealName = intrinsic.name;
  394. var value = intrinsic.value;
  395. var skipFurtherCaching = false;
  396. var alias = intrinsic.alias;
  397. if (alias) {
  398. intrinsicBaseName = alias[0];
  399. $spliceApply(parts, $concat([0, 1], alias));
  400. }
  401. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  402. var part = parts[i];
  403. var first = $strSlice(part, 0, 1);
  404. var last = $strSlice(part, -1);
  405. if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
  406. throw new $SyntaxError("property names with quotes must have matching quotes");
  407. }
  408. if (part === "constructor" || !isOwn) {
  409. skipFurtherCaching = true;
  410. }
  411. intrinsicBaseName += "." + part;
  412. intrinsicRealName = "%" + intrinsicBaseName + "%";
  413. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  414. value = INTRINSICS[intrinsicRealName];
  415. } else if (value != null) {
  416. if (!(part in value)) {
  417. if (!allowMissing) {
  418. throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
  419. }
  420. return void 0;
  421. }
  422. if ($gOPD && i + 1 >= parts.length) {
  423. var desc = $gOPD(value, part);
  424. isOwn = !!desc;
  425. if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
  426. value = desc.get;
  427. } else {
  428. value = value[part];
  429. }
  430. } else {
  431. isOwn = hasOwn(value, part);
  432. value = value[part];
  433. }
  434. if (isOwn && !skipFurtherCaching) {
  435. INTRINSICS[intrinsicRealName] = value;
  436. }
  437. }
  438. }
  439. return value;
  440. };
  441. }
  442. });
  443. // node_modules/call-bind/index.js
  444. var require_call_bind = __commonJS({
  445. "node_modules/call-bind/index.js"(exports, module) {
  446. "use strict";
  447. init_define_APP_INFO();
  448. var bind = require_function_bind();
  449. var GetIntrinsic = require_get_intrinsic();
  450. var $apply = GetIntrinsic("%Function.prototype.apply%");
  451. var $call = GetIntrinsic("%Function.prototype.call%");
  452. var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
  453. var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
  454. var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
  455. var $max = GetIntrinsic("%Math.max%");
  456. if ($defineProperty) {
  457. try {
  458. $defineProperty({}, "a", { value: 1 });
  459. } catch (e) {
  460. $defineProperty = null;
  461. }
  462. }
  463. module.exports = function callBind(originalFunction) {
  464. var func = $reflectApply(bind, $call, arguments);
  465. if ($gOPD && $defineProperty) {
  466. var desc = $gOPD(func, "length");
  467. if (desc.configurable) {
  468. $defineProperty(
  469. func,
  470. "length",
  471. { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) }
  472. );
  473. }
  474. }
  475. return func;
  476. };
  477. var applyBind = function applyBind2() {
  478. return $reflectApply(bind, $apply, arguments);
  479. };
  480. if ($defineProperty) {
  481. $defineProperty(module.exports, "apply", { value: applyBind });
  482. } else {
  483. module.exports.apply = applyBind;
  484. }
  485. }
  486. });
  487. // node_modules/call-bind/callBound.js
  488. var require_callBound = __commonJS({
  489. "node_modules/call-bind/callBound.js"(exports, module) {
  490. "use strict";
  491. init_define_APP_INFO();
  492. var GetIntrinsic = require_get_intrinsic();
  493. var callBind = require_call_bind();
  494. var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
  495. module.exports = function callBoundIntrinsic(name, allowMissing) {
  496. var intrinsic = GetIntrinsic(name, !!allowMissing);
  497. if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
  498. return callBind(intrinsic);
  499. }
  500. return intrinsic;
  501. };
  502. }
  503. });
  504. // (disabled):node_modules/object-inspect/util.inspect
  505. var require_util = __commonJS({
  506. "(disabled):node_modules/object-inspect/util.inspect"() {
  507. init_define_APP_INFO();
  508. }
  509. });
  510. // node_modules/object-inspect/index.js
  511. var require_object_inspect = __commonJS({
  512. "node_modules/object-inspect/index.js"(exports, module) {
  513. init_define_APP_INFO();
  514. var hasMap = typeof Map === "function" && Map.prototype;
  515. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
  516. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
  517. var mapForEach = hasMap && Map.prototype.forEach;
  518. var hasSet = typeof Set === "function" && Set.prototype;
  519. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
  520. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
  521. var setForEach = hasSet && Set.prototype.forEach;
  522. var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
  523. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  524. var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
  525. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  526. var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype;
  527. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  528. var booleanValueOf = Boolean.prototype.valueOf;
  529. var objectToString = Object.prototype.toString;
  530. var functionToString = Function.prototype.toString;
  531. var $match = String.prototype.match;
  532. var $slice = String.prototype.slice;
  533. var $replace = String.prototype.replace;
  534. var $toUpperCase = String.prototype.toUpperCase;
  535. var $toLowerCase = String.prototype.toLowerCase;
  536. var $test = RegExp.prototype.test;
  537. var $concat = Array.prototype.concat;
  538. var $join = Array.prototype.join;
  539. var $arrSlice = Array.prototype.slice;
  540. var $floor = Math.floor;
  541. var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
  542. var gOPS = Object.getOwnPropertySymbols;
  543. var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
  544. var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
  545. var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
  546. var isEnumerable = Object.prototype.propertyIsEnumerable;
  547. var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) {
  548. return O.__proto__;
  549. } : null);
  550. function addNumericSeparator(num, str) {
  551. if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) {
  552. return str;
  553. }
  554. var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  555. if (typeof num === "number") {
  556. var int = num < 0 ? -$floor(-num) : $floor(num);
  557. if (int !== num) {
  558. var intStr = String(int);
  559. var dec = $slice.call(str, intStr.length + 1);
  560. return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, "");
  561. }
  562. }
  563. return $replace.call(str, sepRegex, "$&_");
  564. }
  565. var utilInspect = require_util();
  566. var inspectCustom = utilInspect.custom;
  567. var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
  568. module.exports = function inspect_(obj, options, depth, seen) {
  569. var opts = options || {};
  570. if (has(opts, "quoteStyle") && (opts.quoteStyle !== "single" && opts.quoteStyle !== "double")) {
  571. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  572. }
  573. if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
  574. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  575. }
  576. var customInspect = has(opts, "customInspect") ? opts.customInspect : true;
  577. if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
  578. throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
  579. }
  580. if (has(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
  581. throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  582. }
  583. if (has(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
  584. throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  585. }
  586. var numericSeparator = opts.numericSeparator;
  587. if (typeof obj === "undefined") {
  588. return "undefined";
  589. }
  590. if (obj === null) {
  591. return "null";
  592. }
  593. if (typeof obj === "boolean") {
  594. return obj ? "true" : "false";
  595. }
  596. if (typeof obj === "string") {
  597. return inspectString(obj, opts);
  598. }
  599. if (typeof obj === "number") {
  600. if (obj === 0) {
  601. return Infinity / obj > 0 ? "0" : "-0";
  602. }
  603. var str = String(obj);
  604. return numericSeparator ? addNumericSeparator(obj, str) : str;
  605. }
  606. if (typeof obj === "bigint") {
  607. var bigIntStr = String(obj) + "n";
  608. return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
  609. }
  610. var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth;
  611. if (typeof depth === "undefined") {
  612. depth = 0;
  613. }
  614. if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
  615. return isArray(obj) ? "[Array]" : "[Object]";
  616. }
  617. var indent = getIndent(opts, depth);
  618. if (typeof seen === "undefined") {
  619. seen = [];
  620. } else if (indexOf(seen, obj) >= 0) {
  621. return "[Circular]";
  622. }
  623. function inspect(value, from, noIndent) {
  624. if (from) {
  625. seen = $arrSlice.call(seen);
  626. seen.push(from);
  627. }
  628. if (noIndent) {
  629. var newOpts = {
  630. depth: opts.depth
  631. };
  632. if (has(opts, "quoteStyle")) {
  633. newOpts.quoteStyle = opts.quoteStyle;
  634. }
  635. return inspect_(value, newOpts, depth + 1, seen);
  636. }
  637. return inspect_(value, opts, depth + 1, seen);
  638. }
  639. if (typeof obj === "function" && !isRegExp(obj)) {
  640. var name = nameOf(obj);
  641. var keys = arrObjKeys(obj, inspect);
  642. return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
  643. }
  644. if (isSymbol(obj)) {
  645. var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
  646. return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString;
  647. }
  648. if (isElement(obj)) {
  649. var s = "<" + $toLowerCase.call(String(obj.nodeName));
  650. var attrs = obj.attributes || [];
  651. for (var i = 0; i < attrs.length; i++) {
  652. s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts);
  653. }
  654. s += ">";
  655. if (obj.childNodes && obj.childNodes.length) {
  656. s += "...";
  657. }
  658. s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
  659. return s;
  660. }
  661. if (isArray(obj)) {
  662. if (obj.length === 0) {
  663. return "[]";
  664. }
  665. var xs = arrObjKeys(obj, inspect);
  666. if (indent && !singleLineValues(xs)) {
  667. return "[" + indentedJoin(xs, indent) + "]";
  668. }
  669. return "[ " + $join.call(xs, ", ") + " ]";
  670. }
  671. if (isError(obj)) {
  672. var parts = arrObjKeys(obj, inspect);
  673. if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
  674. return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }";
  675. }
  676. if (parts.length === 0) {
  677. return "[" + String(obj) + "]";
  678. }
  679. return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
  680. }
  681. if (typeof obj === "object" && customInspect) {
  682. if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
  683. return utilInspect(obj, { depth: maxDepth - depth });
  684. } else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
  685. return obj.inspect();
  686. }
  687. }
  688. if (isMap(obj)) {
  689. var mapParts = [];
  690. mapForEach.call(obj, function(value, key) {
  691. mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
  692. });
  693. return collectionOf("Map", mapSize.call(obj), mapParts, indent);
  694. }
  695. if (isSet(obj)) {
  696. var setParts = [];
  697. setForEach.call(obj, function(value) {
  698. setParts.push(inspect(value, obj));
  699. });
  700. return collectionOf("Set", setSize.call(obj), setParts, indent);
  701. }
  702. if (isWeakMap(obj)) {
  703. return weakCollectionOf("WeakMap");
  704. }
  705. if (isWeakSet(obj)) {
  706. return weakCollectionOf("WeakSet");
  707. }
  708. if (isWeakRef(obj)) {
  709. return weakCollectionOf("WeakRef");
  710. }
  711. if (isNumber(obj)) {
  712. return markBoxed(inspect(Number(obj)));
  713. }
  714. if (isBigInt(obj)) {
  715. return markBoxed(inspect(bigIntValueOf.call(obj)));
  716. }
  717. if (isBoolean(obj)) {
  718. return markBoxed(booleanValueOf.call(obj));
  719. }
  720. if (isString(obj)) {
  721. return markBoxed(inspect(String(obj)));
  722. }
  723. if (!isDate(obj) && !isRegExp(obj)) {
  724. var ys = arrObjKeys(obj, inspect);
  725. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  726. var protoTag = obj instanceof Object ? "" : "null prototype";
  727. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
  728. var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
  729. var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
  730. if (ys.length === 0) {
  731. return tag + "{}";
  732. }
  733. if (indent) {
  734. return tag + "{" + indentedJoin(ys, indent) + "}";
  735. }
  736. return tag + "{ " + $join.call(ys, ", ") + " }";
  737. }
  738. return String(obj);
  739. };
  740. function wrapQuotes(s, defaultStyle, opts) {
  741. var quoteChar = (opts.quoteStyle || defaultStyle) === "double" ? '"' : "'";
  742. return quoteChar + s + quoteChar;
  743. }
  744. function quote(s) {
  745. return $replace.call(String(s), /"/g, "&quot;");
  746. }
  747. function isArray(obj) {
  748. return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  749. }
  750. function isDate(obj) {
  751. return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  752. }
  753. function isRegExp(obj) {
  754. return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  755. }
  756. function isError(obj) {
  757. return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  758. }
  759. function isString(obj) {
  760. return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  761. }
  762. function isNumber(obj) {
  763. return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  764. }
  765. function isBoolean(obj) {
  766. return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  767. }
  768. function isSymbol(obj) {
  769. if (hasShammedSymbols) {
  770. return obj && typeof obj === "object" && obj instanceof Symbol;
  771. }
  772. if (typeof obj === "symbol") {
  773. return true;
  774. }
  775. if (!obj || typeof obj !== "object" || !symToString) {
  776. return false;
  777. }
  778. try {
  779. symToString.call(obj);
  780. return true;
  781. } catch (e) {
  782. }
  783. return false;
  784. }
  785. function isBigInt(obj) {
  786. if (!obj || typeof obj !== "object" || !bigIntValueOf) {
  787. return false;
  788. }
  789. try {
  790. bigIntValueOf.call(obj);
  791. return true;
  792. } catch (e) {
  793. }
  794. return false;
  795. }
  796. var hasOwn = Object.prototype.hasOwnProperty || function(key) {
  797. return key in this;
  798. };
  799. function has(obj, key) {
  800. return hasOwn.call(obj, key);
  801. }
  802. function toStr(obj) {
  803. return objectToString.call(obj);
  804. }
  805. function nameOf(f) {
  806. if (f.name) {
  807. return f.name;
  808. }
  809. var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  810. if (m) {
  811. return m[1];
  812. }
  813. return null;
  814. }
  815. function indexOf(xs, x) {
  816. if (xs.indexOf) {
  817. return xs.indexOf(x);
  818. }
  819. for (var i = 0, l = xs.length; i < l; i++) {
  820. if (xs[i] === x) {
  821. return i;
  822. }
  823. }
  824. return -1;
  825. }
  826. function isMap(x) {
  827. if (!mapSize || !x || typeof x !== "object") {
  828. return false;
  829. }
  830. try {
  831. mapSize.call(x);
  832. try {
  833. setSize.call(x);
  834. } catch (s) {
  835. return true;
  836. }
  837. return x instanceof Map;
  838. } catch (e) {
  839. }
  840. return false;
  841. }
  842. function isWeakMap(x) {
  843. if (!weakMapHas || !x || typeof x !== "object") {
  844. return false;
  845. }
  846. try {
  847. weakMapHas.call(x, weakMapHas);
  848. try {
  849. weakSetHas.call(x, weakSetHas);
  850. } catch (s) {
  851. return true;
  852. }
  853. return x instanceof WeakMap;
  854. } catch (e) {
  855. }
  856. return false;
  857. }
  858. function isWeakRef(x) {
  859. if (!weakRefDeref || !x || typeof x !== "object") {
  860. return false;
  861. }
  862. try {
  863. weakRefDeref.call(x);
  864. return true;
  865. } catch (e) {
  866. }
  867. return false;
  868. }
  869. function isSet(x) {
  870. if (!setSize || !x || typeof x !== "object") {
  871. return false;
  872. }
  873. try {
  874. setSize.call(x);
  875. try {
  876. mapSize.call(x);
  877. } catch (m) {
  878. return true;
  879. }
  880. return x instanceof Set;
  881. } catch (e) {
  882. }
  883. return false;
  884. }
  885. function isWeakSet(x) {
  886. if (!weakSetHas || !x || typeof x !== "object") {
  887. return false;
  888. }
  889. try {
  890. weakSetHas.call(x, weakSetHas);
  891. try {
  892. weakMapHas.call(x, weakMapHas);
  893. } catch (s) {
  894. return true;
  895. }
  896. return x instanceof WeakSet;
  897. } catch (e) {
  898. }
  899. return false;
  900. }
  901. function isElement(x) {
  902. if (!x || typeof x !== "object") {
  903. return false;
  904. }
  905. if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) {
  906. return true;
  907. }
  908. return typeof x.nodeName === "string" && typeof x.getAttribute === "function";
  909. }
  910. function inspectString(str, opts) {
  911. if (str.length > opts.maxStringLength) {
  912. var remaining = str.length - opts.maxStringLength;
  913. var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
  914. return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
  915. }
  916. var s = $replace.call($replace.call(str, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, lowbyte);
  917. return wrapQuotes(s, "single", opts);
  918. }
  919. function lowbyte(c) {
  920. var n = c.charCodeAt(0);
  921. var x = {
  922. 8: "b",
  923. 9: "t",
  924. 10: "n",
  925. 12: "f",
  926. 13: "r"
  927. }[n];
  928. if (x) {
  929. return "\\" + x;
  930. }
  931. return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16));
  932. }
  933. function markBoxed(str) {
  934. return "Object(" + str + ")";
  935. }
  936. function weakCollectionOf(type) {
  937. return type + " { ? }";
  938. }
  939. function collectionOf(type, size, entries, indent) {
  940. var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
  941. return type + " (" + size + ") {" + joinedEntries + "}";
  942. }
  943. function singleLineValues(xs) {
  944. for (var i = 0; i < xs.length; i++) {
  945. if (indexOf(xs[i], "\n") >= 0) {
  946. return false;
  947. }
  948. }
  949. return true;
  950. }
  951. function getIndent(opts, depth) {
  952. var baseIndent;
  953. if (opts.indent === " ") {
  954. baseIndent = " ";
  955. } else if (typeof opts.indent === "number" && opts.indent > 0) {
  956. baseIndent = $join.call(Array(opts.indent + 1), " ");
  957. } else {
  958. return null;
  959. }
  960. return {
  961. base: baseIndent,
  962. prev: $join.call(Array(depth + 1), baseIndent)
  963. };
  964. }
  965. function indentedJoin(xs, indent) {
  966. if (xs.length === 0) {
  967. return "";
  968. }
  969. var lineJoiner = "\n" + indent.prev + indent.base;
  970. return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
  971. }
  972. function arrObjKeys(obj, inspect) {
  973. var isArr = isArray(obj);
  974. var xs = [];
  975. if (isArr) {
  976. xs.length = obj.length;
  977. for (var i = 0; i < obj.length; i++) {
  978. xs[i] = has(obj, i) ? inspect(obj[i], obj) : "";
  979. }
  980. }
  981. var syms = typeof gOPS === "function" ? gOPS(obj) : [];
  982. var symMap;
  983. if (hasShammedSymbols) {
  984. symMap = {};
  985. for (var k = 0; k < syms.length; k++) {
  986. symMap["$" + syms[k]] = syms[k];
  987. }
  988. }
  989. for (var key in obj) {
  990. if (!has(obj, key)) {
  991. continue;
  992. }
  993. if (isArr && String(Number(key)) === key && key < obj.length) {
  994. continue;
  995. }
  996. if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
  997. continue;
  998. } else if ($test.call(/[^\w$]/, key)) {
  999. xs.push(inspect(key, obj) + ": " + inspect(obj[key], obj));
  1000. } else {
  1001. xs.push(key + ": " + inspect(obj[key], obj));
  1002. }
  1003. }
  1004. if (typeof gOPS === "function") {
  1005. for (var j = 0; j < syms.length; j++) {
  1006. if (isEnumerable.call(obj, syms[j])) {
  1007. xs.push("[" + inspect(syms[j]) + "]: " + inspect(obj[syms[j]], obj));
  1008. }
  1009. }
  1010. }
  1011. return xs;
  1012. }
  1013. }
  1014. });
  1015. // node_modules/side-channel/index.js
  1016. var require_side_channel = __commonJS({
  1017. "node_modules/side-channel/index.js"(exports, module) {
  1018. "use strict";
  1019. init_define_APP_INFO();
  1020. var GetIntrinsic = require_get_intrinsic();
  1021. var callBound = require_callBound();
  1022. var inspect = require_object_inspect();
  1023. var $TypeError = GetIntrinsic("%TypeError%");
  1024. var $WeakMap = GetIntrinsic("%WeakMap%", true);
  1025. var $Map = GetIntrinsic("%Map%", true);
  1026. var $weakMapGet = callBound("WeakMap.prototype.get", true);
  1027. var $weakMapSet = callBound("WeakMap.prototype.set", true);
  1028. var $weakMapHas = callBound("WeakMap.prototype.has", true);
  1029. var $mapGet = callBound("Map.prototype.get", true);
  1030. var $mapSet = callBound("Map.prototype.set", true);
  1031. var $mapHas = callBound("Map.prototype.has", true);
  1032. var listGetNode = function(list, key) {
  1033. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  1034. if (curr.key === key) {
  1035. prev.next = curr.next;
  1036. curr.next = list.next;
  1037. list.next = curr;
  1038. return curr;
  1039. }
  1040. }
  1041. };
  1042. var listGet = function(objects, key) {
  1043. var node = listGetNode(objects, key);
  1044. return node && node.value;
  1045. };
  1046. var listSet = function(objects, key, value) {
  1047. var node = listGetNode(objects, key);
  1048. if (node) {
  1049. node.value = value;
  1050. } else {
  1051. objects.next = {
  1052. key,
  1053. next: objects.next,
  1054. value
  1055. };
  1056. }
  1057. };
  1058. var listHas = function(objects, key) {
  1059. return !!listGetNode(objects, key);
  1060. };
  1061. module.exports = function getSideChannel() {
  1062. var $wm;
  1063. var $m;
  1064. var $o;
  1065. var channel = {
  1066. assert: function(key) {
  1067. if (!channel.has(key)) {
  1068. throw new $TypeError("Side channel does not contain " + inspect(key));
  1069. }
  1070. },
  1071. get: function(key) {
  1072. if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
  1073. if ($wm) {
  1074. return $weakMapGet($wm, key);
  1075. }
  1076. } else if ($Map) {
  1077. if ($m) {
  1078. return $mapGet($m, key);
  1079. }
  1080. } else {
  1081. if ($o) {
  1082. return listGet($o, key);
  1083. }
  1084. }
  1085. },
  1086. has: function(key) {
  1087. if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
  1088. if ($wm) {
  1089. return $weakMapHas($wm, key);
  1090. }
  1091. } else if ($Map) {
  1092. if ($m) {
  1093. return $mapHas($m, key);
  1094. }
  1095. } else {
  1096. if ($o) {
  1097. return listHas($o, key);
  1098. }
  1099. }
  1100. return false;
  1101. },
  1102. set: function(key, value) {
  1103. if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
  1104. if (!$wm) {
  1105. $wm = new $WeakMap();
  1106. }
  1107. $weakMapSet($wm, key, value);
  1108. } else if ($Map) {
  1109. if (!$m) {
  1110. $m = new $Map();
  1111. }
  1112. $mapSet($m, key, value);
  1113. } else {
  1114. if (!$o) {
  1115. $o = { key: {}, next: null };
  1116. }
  1117. listSet($o, key, value);
  1118. }
  1119. }
  1120. };
  1121. return channel;
  1122. };
  1123. }
  1124. });
  1125. // node_modules/qs/lib/formats.js
  1126. var require_formats = __commonJS({
  1127. "node_modules/qs/lib/formats.js"(exports, module) {
  1128. "use strict";
  1129. init_define_APP_INFO();
  1130. var replace = String.prototype.replace;
  1131. var percentTwenties = /%20/g;
  1132. var Format = {
  1133. RFC1738: "RFC1738",
  1134. RFC3986: "RFC3986"
  1135. };
  1136. module.exports = {
  1137. "default": Format.RFC3986,
  1138. formatters: {
  1139. RFC1738: function(value) {
  1140. return replace.call(value, percentTwenties, "+");
  1141. },
  1142. RFC3986: function(value) {
  1143. return String(value);
  1144. }
  1145. },
  1146. RFC1738: Format.RFC1738,
  1147. RFC3986: Format.RFC3986
  1148. };
  1149. }
  1150. });
  1151. // node_modules/qs/lib/utils.js
  1152. var require_utils = __commonJS({
  1153. "node_modules/qs/lib/utils.js"(exports, module) {
  1154. "use strict";
  1155. init_define_APP_INFO();
  1156. var formats = require_formats();
  1157. var has = Object.prototype.hasOwnProperty;
  1158. var isArray = Array.isArray;
  1159. var hexTable = function() {
  1160. var array = [];
  1161. for (var i = 0; i < 256; ++i) {
  1162. array.push("%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase());
  1163. }
  1164. return array;
  1165. }();
  1166. var compactQueue = function compactQueue2(queue) {
  1167. while (queue.length > 1) {
  1168. var item = queue.pop();
  1169. var obj = item.obj[item.prop];
  1170. if (isArray(obj)) {
  1171. var compacted = [];
  1172. for (var j = 0; j < obj.length; ++j) {
  1173. if (typeof obj[j] !== "undefined") {
  1174. compacted.push(obj[j]);
  1175. }
  1176. }
  1177. item.obj[item.prop] = compacted;
  1178. }
  1179. }
  1180. };
  1181. var arrayToObject = function arrayToObject2(source, options) {
  1182. var obj = options && options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  1183. for (var i = 0; i < source.length; ++i) {
  1184. if (typeof source[i] !== "undefined") {
  1185. obj[i] = source[i];
  1186. }
  1187. }
  1188. return obj;
  1189. };
  1190. var merge = function merge2(target, source, options) {
  1191. if (!source) {
  1192. return target;
  1193. }
  1194. if (typeof source !== "object") {
  1195. if (isArray(target)) {
  1196. target.push(source);
  1197. } else if (target && typeof target === "object") {
  1198. if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
  1199. target[source] = true;
  1200. }
  1201. } else {
  1202. return [target, source];
  1203. }
  1204. return target;
  1205. }
  1206. if (!target || typeof target !== "object") {
  1207. return [target].concat(source);
  1208. }
  1209. var mergeTarget = target;
  1210. if (isArray(target) && !isArray(source)) {
  1211. mergeTarget = arrayToObject(target, options);
  1212. }
  1213. if (isArray(target) && isArray(source)) {
  1214. source.forEach(function(item, i) {
  1215. if (has.call(target, i)) {
  1216. var targetItem = target[i];
  1217. if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
  1218. target[i] = merge2(targetItem, item, options);
  1219. } else {
  1220. target.push(item);
  1221. }
  1222. } else {
  1223. target[i] = item;
  1224. }
  1225. });
  1226. return target;
  1227. }
  1228. return Object.keys(source).reduce(function(acc, key) {
  1229. var value = source[key];
  1230. if (has.call(acc, key)) {
  1231. acc[key] = merge2(acc[key], value, options);
  1232. } else {
  1233. acc[key] = value;
  1234. }
  1235. return acc;
  1236. }, mergeTarget);
  1237. };
  1238. var assign = function assignSingleSource(target, source) {
  1239. return Object.keys(source).reduce(function(acc, key) {
  1240. acc[key] = source[key];
  1241. return acc;
  1242. }, target);
  1243. };
  1244. var decode = function(str, decoder, charset) {
  1245. var strWithoutPlus = str.replace(/\+/g, " ");
  1246. if (charset === "iso-8859-1") {
  1247. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  1248. }
  1249. try {
  1250. return decodeURIComponent(strWithoutPlus);
  1251. } catch (e) {
  1252. return strWithoutPlus;
  1253. }
  1254. };
  1255. var encode = function encode2(str, defaultEncoder, charset, kind, format) {
  1256. if (str.length === 0) {
  1257. return str;
  1258. }
  1259. var string = str;
  1260. if (typeof str === "symbol") {
  1261. string = Symbol.prototype.toString.call(str);
  1262. } else if (typeof str !== "string") {
  1263. string = String(str);
  1264. }
  1265. if (charset === "iso-8859-1") {
  1266. return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
  1267. return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
  1268. });
  1269. }
  1270. var out = "";
  1271. for (var i = 0; i < string.length; ++i) {
  1272. var c = string.charCodeAt(i);
  1273. if (c === 45 || c === 46 || c === 95 || c === 126 || c >= 48 && c <= 57 || c >= 65 && c <= 90 || c >= 97 && c <= 122 || format === formats.RFC1738 && (c === 40 || c === 41)) {
  1274. out += string.charAt(i);
  1275. continue;
  1276. }
  1277. if (c < 128) {
  1278. out = out + hexTable[c];
  1279. continue;
  1280. }
  1281. if (c < 2048) {
  1282. out = out + (hexTable[192 | c >> 6] + hexTable[128 | c & 63]);
  1283. continue;
  1284. }
  1285. if (c < 55296 || c >= 57344) {
  1286. out = out + (hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]);
  1287. continue;
  1288. }
  1289. i += 1;
  1290. c = 65536 + ((c & 1023) << 10 | string.charCodeAt(i) & 1023);
  1291. out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
  1292. }
  1293. return out;
  1294. };
  1295. var compact = function compact2(value) {
  1296. var queue = [{ obj: { o: value }, prop: "o" }];
  1297. var refs = [];
  1298. for (var i = 0; i < queue.length; ++i) {
  1299. var item = queue[i];
  1300. var obj = item.obj[item.prop];
  1301. var keys = Object.keys(obj);
  1302. for (var j = 0; j < keys.length; ++j) {
  1303. var key = keys[j];
  1304. var val = obj[key];
  1305. if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
  1306. queue.push({ obj, prop: key });
  1307. refs.push(val);
  1308. }
  1309. }
  1310. }
  1311. compactQueue(queue);
  1312. return value;
  1313. };
  1314. var isRegExp = function isRegExp2(obj) {
  1315. return Object.prototype.toString.call(obj) === "[object RegExp]";
  1316. };
  1317. var isBuffer = function isBuffer2(obj) {
  1318. if (!obj || typeof obj !== "object") {
  1319. return false;
  1320. }
  1321. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  1322. };
  1323. var combine = function combine2(a, b) {
  1324. return [].concat(a, b);
  1325. };
  1326. var maybeMap = function maybeMap2(val, fn) {
  1327. if (isArray(val)) {
  1328. var mapped = [];
  1329. for (var i = 0; i < val.length; i += 1) {
  1330. mapped.push(fn(val[i]));
  1331. }
  1332. return mapped;
  1333. }
  1334. return fn(val);
  1335. };
  1336. module.exports = {
  1337. arrayToObject,
  1338. assign,
  1339. combine,
  1340. compact,
  1341. decode,
  1342. encode,
  1343. isBuffer,
  1344. isRegExp,
  1345. maybeMap,
  1346. merge
  1347. };
  1348. }
  1349. });
  1350. // node_modules/qs/lib/stringify.js
  1351. var require_stringify = __commonJS({
  1352. "node_modules/qs/lib/stringify.js"(exports, module) {
  1353. "use strict";
  1354. init_define_APP_INFO();
  1355. var getSideChannel = require_side_channel();
  1356. var utils = require_utils();
  1357. var formats = require_formats();
  1358. var has = Object.prototype.hasOwnProperty;
  1359. var arrayPrefixGenerators = {
  1360. brackets: function brackets(prefix) {
  1361. return prefix + "[]";
  1362. },
  1363. comma: "comma",
  1364. indices: function indices(prefix, key) {
  1365. return prefix + "[" + key + "]";
  1366. },
  1367. repeat: function repeat(prefix) {
  1368. return prefix;
  1369. }
  1370. };
  1371. var isArray = Array.isArray;
  1372. var split = String.prototype.split;
  1373. var push = Array.prototype.push;
  1374. var pushToArray = function(arr, valueOrArray) {
  1375. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  1376. };
  1377. var toISO = Date.prototype.toISOString;
  1378. var defaultFormat = formats["default"];
  1379. var defaults = {
  1380. addQueryPrefix: false,
  1381. allowDots: false,
  1382. charset: "utf-8",
  1383. charsetSentinel: false,
  1384. delimiter: "&",
  1385. encode: true,
  1386. encoder: utils.encode,
  1387. encodeValuesOnly: false,
  1388. format: defaultFormat,
  1389. formatter: formats.formatters[defaultFormat],
  1390. indices: false,
  1391. serializeDate: function serializeDate(date) {
  1392. return toISO.call(date);
  1393. },
  1394. skipNulls: false,
  1395. strictNullHandling: false
  1396. };
  1397. var isNonNullishPrimitive = function isNonNullishPrimitive2(v) {
  1398. return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
  1399. };
  1400. var sentinel = {};
  1401. var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
  1402. var obj = object;
  1403. var tmpSc = sideChannel;
  1404. var step = 0;
  1405. var findFlag = false;
  1406. while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
  1407. var pos = tmpSc.get(object);
  1408. step += 1;
  1409. if (typeof pos !== "undefined") {
  1410. if (pos === step) {
  1411. throw new RangeError("Cyclic object value");
  1412. } else {
  1413. findFlag = true;
  1414. }
  1415. }
  1416. if (typeof tmpSc.get(sentinel) === "undefined") {
  1417. step = 0;
  1418. }
  1419. }
  1420. if (typeof filter === "function") {
  1421. obj = filter(prefix, obj);
  1422. } else if (obj instanceof Date) {
  1423. obj = serializeDate(obj);
  1424. } else if (generateArrayPrefix === "comma" && isArray(obj)) {
  1425. obj = utils.maybeMap(obj, function(value2) {
  1426. if (value2 instanceof Date) {
  1427. return serializeDate(value2);
  1428. }
  1429. return value2;
  1430. });
  1431. }
  1432. if (obj === null) {
  1433. if (strictNullHandling) {
  1434. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
  1435. }
  1436. obj = "";
  1437. }
  1438. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  1439. if (encoder) {
  1440. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
  1441. if (generateArrayPrefix === "comma" && encodeValuesOnly) {
  1442. var valuesArray = split.call(String(obj), ",");
  1443. var valuesJoined = "";
  1444. for (var i = 0; i < valuesArray.length; ++i) {
  1445. valuesJoined += (i === 0 ? "" : ",") + formatter(encoder(valuesArray[i], defaults.encoder, charset, "value", format));
  1446. }
  1447. return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? "[]" : "") + "=" + valuesJoined];
  1448. }
  1449. return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))];
  1450. }
  1451. return [formatter(prefix) + "=" + formatter(String(obj))];
  1452. }
  1453. var values = [];
  1454. if (typeof obj === "undefined") {
  1455. return values;
  1456. }
  1457. var objKeys;
  1458. if (generateArrayPrefix === "comma" && isArray(obj)) {
  1459. objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
  1460. } else if (isArray(filter)) {
  1461. objKeys = filter;
  1462. } else {
  1463. var keys = Object.keys(obj);
  1464. objKeys = sort ? keys.sort(sort) : keys;
  1465. }
  1466. var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + "[]" : prefix;
  1467. for (var j = 0; j < objKeys.length; ++j) {
  1468. var key = objKeys[j];
  1469. var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
  1470. if (skipNulls && value === null) {
  1471. continue;
  1472. }
  1473. var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
  1474. sideChannel.set(object, step);
  1475. var valueSideChannel = getSideChannel();
  1476. valueSideChannel.set(sentinel, sideChannel);
  1477. pushToArray(values, stringify2(
  1478. value,
  1479. keyPrefix,
  1480. generateArrayPrefix,
  1481. commaRoundTrip,
  1482. strictNullHandling,
  1483. skipNulls,
  1484. encoder,
  1485. filter,
  1486. sort,
  1487. allowDots,
  1488. serializeDate,
  1489. format,
  1490. formatter,
  1491. encodeValuesOnly,
  1492. charset,
  1493. valueSideChannel
  1494. ));
  1495. }
  1496. return values;
  1497. };
  1498. var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
  1499. if (!opts) {
  1500. return defaults;
  1501. }
  1502. if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
  1503. throw new TypeError("Encoder has to be a function.");
  1504. }
  1505. var charset = opts.charset || defaults.charset;
  1506. if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
  1507. throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
  1508. }
  1509. var format = formats["default"];
  1510. if (typeof opts.format !== "undefined") {
  1511. if (!has.call(formats.formatters, opts.format)) {
  1512. throw new TypeError("Unknown format option provided.");
  1513. }
  1514. format = opts.format;
  1515. }
  1516. var formatter = formats.formatters[format];
  1517. var filter = defaults.filter;
  1518. if (typeof opts.filter === "function" || isArray(opts.filter)) {
  1519. filter = opts.filter;
  1520. }
  1521. return {
  1522. addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
  1523. allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
  1524. charset,
  1525. charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
  1526. delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
  1527. encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
  1528. encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
  1529. encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  1530. filter,
  1531. format,
  1532. formatter,
  1533. serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
  1534. skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
  1535. sort: typeof opts.sort === "function" ? opts.sort : null,
  1536. strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
  1537. };
  1538. };
  1539. module.exports = function(object, opts) {
  1540. var obj = object;
  1541. var options = normalizeStringifyOptions(opts);
  1542. var objKeys;
  1543. var filter;
  1544. if (typeof options.filter === "function") {
  1545. filter = options.filter;
  1546. obj = filter("", obj);
  1547. } else if (isArray(options.filter)) {
  1548. filter = options.filter;
  1549. objKeys = filter;
  1550. }
  1551. var keys = [];
  1552. if (typeof obj !== "object" || obj === null) {
  1553. return "";
  1554. }
  1555. var arrayFormat;
  1556. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  1557. arrayFormat = opts.arrayFormat;
  1558. } else if (opts && "indices" in opts) {
  1559. arrayFormat = opts.indices ? "indices" : "repeat";
  1560. } else {
  1561. arrayFormat = "indices";
  1562. }
  1563. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  1564. if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
  1565. throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
  1566. }
  1567. var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
  1568. if (!objKeys) {
  1569. objKeys = Object.keys(obj);
  1570. }
  1571. if (options.sort) {
  1572. objKeys.sort(options.sort);
  1573. }
  1574. var sideChannel = getSideChannel();
  1575. for (var i = 0; i < objKeys.length; ++i) {
  1576. var key = objKeys[i];
  1577. if (options.skipNulls && obj[key] === null) {
  1578. continue;
  1579. }
  1580. pushToArray(keys, stringify(
  1581. obj[key],
  1582. key,
  1583. generateArrayPrefix,
  1584. commaRoundTrip,
  1585. options.strictNullHandling,
  1586. options.skipNulls,
  1587. options.encode ? options.encoder : null,
  1588. options.filter,
  1589. options.sort,
  1590. options.allowDots,
  1591. options.serializeDate,
  1592. options.format,
  1593. options.formatter,
  1594. options.encodeValuesOnly,
  1595. options.charset,
  1596. sideChannel
  1597. ));
  1598. }
  1599. var joined = keys.join(options.delimiter);
  1600. var prefix = options.addQueryPrefix === true ? "?" : "";
  1601. if (options.charsetSentinel) {
  1602. if (options.charset === "iso-8859-1") {
  1603. prefix += "utf8=%26%2310003%3B&";
  1604. } else {
  1605. prefix += "utf8=%E2%9C%93&";
  1606. }
  1607. }
  1608. return joined.length > 0 ? prefix + joined : "";
  1609. };
  1610. }
  1611. });
  1612. // node_modules/qs/lib/parse.js
  1613. var require_parse = __commonJS({
  1614. "node_modules/qs/lib/parse.js"(exports, module) {
  1615. "use strict";
  1616. init_define_APP_INFO();
  1617. var utils = require_utils();
  1618. var has = Object.prototype.hasOwnProperty;
  1619. var isArray = Array.isArray;
  1620. var defaults = {
  1621. allowDots: false,
  1622. allowPrototypes: false,
  1623. allowSparse: false,
  1624. arrayLimit: 20,
  1625. charset: "utf-8",
  1626. charsetSentinel: false,
  1627. comma: false,
  1628. decoder: utils.decode,
  1629. delimiter: "&",
  1630. depth: 5,
  1631. ignoreQueryPrefix: false,
  1632. interpretNumericEntities: false,
  1633. parameterLimit: 1e3,
  1634. parseArrays: true,
  1635. plainObjects: false,
  1636. strictNullHandling: false
  1637. };
  1638. var interpretNumericEntities = function(str) {
  1639. return str.replace(/&#(\d+);/g, function($0, numberStr) {
  1640. return String.fromCharCode(parseInt(numberStr, 10));
  1641. });
  1642. };
  1643. var parseArrayValue = function(val, options) {
  1644. if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
  1645. return val.split(",");
  1646. }
  1647. return val;
  1648. };
  1649. var isoSentinel = "utf8=%26%2310003%3B";
  1650. var charsetSentinel = "utf8=%E2%9C%93";
  1651. var parseValues = function parseQueryStringValues(str, options) {
  1652. var obj = {};
  1653. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
  1654. var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
  1655. var parts = cleanStr.split(options.delimiter, limit);
  1656. var skipIndex = -1;
  1657. var i;
  1658. var charset = options.charset;
  1659. if (options.charsetSentinel) {
  1660. for (i = 0; i < parts.length; ++i) {
  1661. if (parts[i].indexOf("utf8=") === 0) {
  1662. if (parts[i] === charsetSentinel) {
  1663. charset = "utf-8";
  1664. } else if (parts[i] === isoSentinel) {
  1665. charset = "iso-8859-1";
  1666. }
  1667. skipIndex = i;
  1668. i = parts.length;
  1669. }
  1670. }
  1671. }
  1672. for (i = 0; i < parts.length; ++i) {
  1673. if (i === skipIndex) {
  1674. continue;
  1675. }
  1676. var part = parts[i];
  1677. var bracketEqualsPos = part.indexOf("]=");
  1678. var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
  1679. var key, val;
  1680. if (pos === -1) {
  1681. key = options.decoder(part, defaults.decoder, charset, "key");
  1682. val = options.strictNullHandling ? null : "";
  1683. } else {
  1684. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
  1685. val = utils.maybeMap(
  1686. parseArrayValue(part.slice(pos + 1), options),
  1687. function(encodedVal) {
  1688. return options.decoder(encodedVal, defaults.decoder, charset, "value");
  1689. }
  1690. );
  1691. }
  1692. if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
  1693. val = interpretNumericEntities(val);
  1694. }
  1695. if (part.indexOf("[]=") > -1) {
  1696. val = isArray(val) ? [val] : val;
  1697. }
  1698. if (has.call(obj, key)) {
  1699. obj[key] = utils.combine(obj[key], val);
  1700. } else {
  1701. obj[key] = val;
  1702. }
  1703. }
  1704. return obj;
  1705. };
  1706. var parseObject = function(chain, val, options, valuesParsed) {
  1707. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  1708. for (var i = chain.length - 1; i >= 0; --i) {
  1709. var obj;
  1710. var root = chain[i];
  1711. if (root === "[]" && options.parseArrays) {
  1712. obj = [].concat(leaf);
  1713. } else {
  1714. obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  1715. var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
  1716. var index = parseInt(cleanRoot, 10);
  1717. if (!options.parseArrays && cleanRoot === "") {
  1718. obj = { 0: leaf };
  1719. } else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
  1720. obj = [];
  1721. obj[index] = leaf;
  1722. } else if (cleanRoot !== "__proto__") {
  1723. obj[cleanRoot] = leaf;
  1724. }
  1725. }
  1726. leaf = obj;
  1727. }
  1728. return leaf;
  1729. };
  1730. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  1731. if (!givenKey) {
  1732. return;
  1733. }
  1734. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
  1735. var brackets = /(\[[^[\]]*])/;
  1736. var child = /(\[[^[\]]*])/g;
  1737. var segment = options.depth > 0 && brackets.exec(key);
  1738. var parent = segment ? key.slice(0, segment.index) : key;
  1739. var keys = [];
  1740. if (parent) {
  1741. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  1742. if (!options.allowPrototypes) {
  1743. return;
  1744. }
  1745. }
  1746. keys.push(parent);
  1747. }
  1748. var i = 0;
  1749. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  1750. i += 1;
  1751. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  1752. if (!options.allowPrototypes) {
  1753. return;
  1754. }
  1755. }
  1756. keys.push(segment[1]);
  1757. }
  1758. if (segment) {
  1759. keys.push("[" + key.slice(segment.index) + "]");
  1760. }
  1761. return parseObject(keys, val, options, valuesParsed);
  1762. };
  1763. var normalizeParseOptions = function normalizeParseOptions2(opts) {
  1764. if (!opts) {
  1765. return defaults;
  1766. }
  1767. if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
  1768. throw new TypeError("Decoder has to be a function.");
  1769. }
  1770. if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
  1771. throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
  1772. }
  1773. var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
  1774. return {
  1775. allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
  1776. allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
  1777. allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
  1778. arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
  1779. charset,
  1780. charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
  1781. comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
  1782. decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
  1783. delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  1784. depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
  1785. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  1786. interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  1787. parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
  1788. parseArrays: opts.parseArrays !== false,
  1789. plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
  1790. strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
  1791. };
  1792. };
  1793. module.exports = function(str, opts) {
  1794. var options = normalizeParseOptions(opts);
  1795. if (str === "" || str === null || typeof str === "undefined") {
  1796. return options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  1797. }
  1798. var tempObj = typeof str === "string" ? parseValues(str, options) : str;
  1799. var obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  1800. var keys = Object.keys(tempObj);
  1801. for (var i = 0; i < keys.length; ++i) {
  1802. var key = keys[i];
  1803. var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
  1804. obj = utils.merge(obj, newObj, options);
  1805. }
  1806. if (options.allowSparse === true) {
  1807. return obj;
  1808. }
  1809. return utils.compact(obj);
  1810. };
  1811. }
  1812. });
  1813. // node_modules/qs/lib/index.js
  1814. var require_lib = __commonJS({
  1815. "node_modules/qs/lib/index.js"(exports, module) {
  1816. "use strict";
  1817. init_define_APP_INFO();
  1818. var stringify = require_stringify();
  1819. var parse = require_parse();
  1820. var formats = require_formats();
  1821. module.exports = {
  1822. formats,
  1823. parse,
  1824. stringify
  1825. };
  1826. }
  1827. });
  1828. // dep:qs
  1829. init_define_APP_INFO();
  1830. var qs_default = require_lib();
  1831. export {
  1832. qs_default as default
  1833. };
  1834. //# sourceMappingURL=qs.js.map