@gowiny_uni-router.js 85 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292
  1. var __create = Object.create;
  2. var __defProp = Object.defineProperty;
  3. var __defProps = Object.defineProperties;
  4. var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
  5. var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
  6. var __getOwnPropNames = Object.getOwnPropertyNames;
  7. var __getOwnPropSymbols = Object.getOwnPropertySymbols;
  8. var __getProtoOf = Object.getPrototypeOf;
  9. var __hasOwnProp = Object.prototype.hasOwnProperty;
  10. var __propIsEnum = Object.prototype.propertyIsEnumerable;
  11. var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
  12. var __spreadValues = (a, b) => {
  13. for (var prop in b || (b = {}))
  14. if (__hasOwnProp.call(b, prop))
  15. __defNormalProp(a, prop, b[prop]);
  16. if (__getOwnPropSymbols)
  17. for (var prop of __getOwnPropSymbols(b)) {
  18. if (__propIsEnum.call(b, prop))
  19. __defNormalProp(a, prop, b[prop]);
  20. }
  21. return a;
  22. };
  23. var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
  24. var __esm = (fn, res) => function __init() {
  25. return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
  26. };
  27. var __commonJS = (cb, mod) => function __require() {
  28. return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
  29. };
  30. var __copyProps = (to, from, except, desc) => {
  31. if (from && typeof from === "object" || typeof from === "function") {
  32. for (let key of __getOwnPropNames(from))
  33. if (!__hasOwnProp.call(to, key) && key !== except)
  34. __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  35. }
  36. return to;
  37. };
  38. var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
  39. var __publicField = (obj, key, value) => {
  40. __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
  41. return value;
  42. };
  43. // <define:process.env.UNI_STAT_TITLE_JSON>
  44. var init_define_process_env_UNI_STAT_TITLE_JSON = __esm({
  45. "<define:process.env.UNI_STAT_TITLE_JSON>"() {
  46. }
  47. });
  48. // ../../../../development/hbuildX_project/GraceUI6/node_modules/has-symbols/shams.js
  49. var require_shams = __commonJS({
  50. "../../../../development/hbuildX_project/GraceUI6/node_modules/has-symbols/shams.js"(exports, module) {
  51. "use strict";
  52. init_define_process_env_UNI_STAT_TITLE_JSON();
  53. module.exports = function hasSymbols() {
  54. if (typeof Symbol !== "function" || typeof Object.getOwnPropertySymbols !== "function") {
  55. return false;
  56. }
  57. if (typeof Symbol.iterator === "symbol") {
  58. return true;
  59. }
  60. var obj = {};
  61. var sym = Symbol("test");
  62. var symObj = Object(sym);
  63. if (typeof sym === "string") {
  64. return false;
  65. }
  66. if (Object.prototype.toString.call(sym) !== "[object Symbol]") {
  67. return false;
  68. }
  69. if (Object.prototype.toString.call(symObj) !== "[object Symbol]") {
  70. return false;
  71. }
  72. var symVal = 42;
  73. obj[sym] = symVal;
  74. for (sym in obj) {
  75. return false;
  76. }
  77. if (typeof Object.keys === "function" && Object.keys(obj).length !== 0) {
  78. return false;
  79. }
  80. if (typeof Object.getOwnPropertyNames === "function" && Object.getOwnPropertyNames(obj).length !== 0) {
  81. return false;
  82. }
  83. var syms = Object.getOwnPropertySymbols(obj);
  84. if (syms.length !== 1 || syms[0] !== sym) {
  85. return false;
  86. }
  87. if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) {
  88. return false;
  89. }
  90. if (typeof Object.getOwnPropertyDescriptor === "function") {
  91. var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
  92. if (descriptor.value !== symVal || descriptor.enumerable !== true) {
  93. return false;
  94. }
  95. }
  96. return true;
  97. };
  98. }
  99. });
  100. // ../../../../development/hbuildX_project/GraceUI6/node_modules/has-symbols/index.js
  101. var require_has_symbols = __commonJS({
  102. "../../../../development/hbuildX_project/GraceUI6/node_modules/has-symbols/index.js"(exports, module) {
  103. "use strict";
  104. init_define_process_env_UNI_STAT_TITLE_JSON();
  105. var origSymbol = typeof Symbol !== "undefined" && Symbol;
  106. var hasSymbolSham = require_shams();
  107. module.exports = function hasNativeSymbols() {
  108. if (typeof origSymbol !== "function") {
  109. return false;
  110. }
  111. if (typeof Symbol !== "function") {
  112. return false;
  113. }
  114. if (typeof origSymbol("foo") !== "symbol") {
  115. return false;
  116. }
  117. if (typeof Symbol("bar") !== "symbol") {
  118. return false;
  119. }
  120. return hasSymbolSham();
  121. };
  122. }
  123. });
  124. // ../../../../development/hbuildX_project/GraceUI6/node_modules/function-bind/implementation.js
  125. var require_implementation = __commonJS({
  126. "../../../../development/hbuildX_project/GraceUI6/node_modules/function-bind/implementation.js"(exports, module) {
  127. "use strict";
  128. init_define_process_env_UNI_STAT_TITLE_JSON();
  129. var ERROR_MESSAGE = "Function.prototype.bind called on incompatible ";
  130. var slice = Array.prototype.slice;
  131. var toStr = Object.prototype.toString;
  132. var funcType = "[object Function]";
  133. module.exports = function bind(that) {
  134. var target = this;
  135. if (typeof target !== "function" || toStr.call(target) !== funcType) {
  136. throw new TypeError(ERROR_MESSAGE + target);
  137. }
  138. var args = slice.call(arguments, 1);
  139. var bound;
  140. var binder = function() {
  141. if (this instanceof bound) {
  142. var result = target.apply(this, args.concat(slice.call(arguments)));
  143. if (Object(result) === result) {
  144. return result;
  145. }
  146. return this;
  147. } else {
  148. return target.apply(that, args.concat(slice.call(arguments)));
  149. }
  150. };
  151. var boundLength = Math.max(0, target.length - args.length);
  152. var boundArgs = [];
  153. for (var i = 0; i < boundLength; i++) {
  154. boundArgs.push("$" + i);
  155. }
  156. bound = Function("binder", "return function (" + boundArgs.join(",") + "){ return binder.apply(this,arguments); }")(binder);
  157. if (target.prototype) {
  158. var Empty = function Empty2() {
  159. };
  160. Empty.prototype = target.prototype;
  161. bound.prototype = new Empty();
  162. Empty.prototype = null;
  163. }
  164. return bound;
  165. };
  166. }
  167. });
  168. // ../../../../development/hbuildX_project/GraceUI6/node_modules/function-bind/index.js
  169. var require_function_bind = __commonJS({
  170. "../../../../development/hbuildX_project/GraceUI6/node_modules/function-bind/index.js"(exports, module) {
  171. "use strict";
  172. init_define_process_env_UNI_STAT_TITLE_JSON();
  173. var implementation = require_implementation();
  174. module.exports = Function.prototype.bind || implementation;
  175. }
  176. });
  177. // ../../../../development/hbuildX_project/GraceUI6/node_modules/has/src/index.js
  178. var require_src = __commonJS({
  179. "../../../../development/hbuildX_project/GraceUI6/node_modules/has/src/index.js"(exports, module) {
  180. "use strict";
  181. init_define_process_env_UNI_STAT_TITLE_JSON();
  182. var bind = require_function_bind();
  183. module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
  184. }
  185. });
  186. // ../../../../development/hbuildX_project/GraceUI6/node_modules/get-intrinsic/index.js
  187. var require_get_intrinsic = __commonJS({
  188. "../../../../development/hbuildX_project/GraceUI6/node_modules/get-intrinsic/index.js"(exports, module) {
  189. "use strict";
  190. init_define_process_env_UNI_STAT_TITLE_JSON();
  191. var undefined2;
  192. var $SyntaxError = SyntaxError;
  193. var $Function = Function;
  194. var $TypeError = TypeError;
  195. var getEvalledConstructor = function(expressionSyntax) {
  196. try {
  197. return $Function('"use strict"; return (' + expressionSyntax + ").constructor;")();
  198. } catch (e) {
  199. }
  200. };
  201. var $gOPD = Object.getOwnPropertyDescriptor;
  202. if ($gOPD) {
  203. try {
  204. $gOPD({}, "");
  205. } catch (e) {
  206. $gOPD = null;
  207. }
  208. }
  209. var throwTypeError = function() {
  210. throw new $TypeError();
  211. };
  212. var ThrowTypeError = $gOPD ? function() {
  213. try {
  214. arguments.callee;
  215. return throwTypeError;
  216. } catch (calleeThrows) {
  217. try {
  218. return $gOPD(arguments, "callee").get;
  219. } catch (gOPDthrows) {
  220. return throwTypeError;
  221. }
  222. }
  223. }() : throwTypeError;
  224. var hasSymbols = require_has_symbols()();
  225. var getProto = Object.getPrototypeOf || function(x) {
  226. return x.__proto__;
  227. };
  228. var needsEval = {};
  229. var TypedArray = typeof Uint8Array === "undefined" ? undefined2 : getProto(Uint8Array);
  230. var INTRINSICS = {
  231. "%AggregateError%": typeof AggregateError === "undefined" ? undefined2 : AggregateError,
  232. "%Array%": Array,
  233. "%ArrayBuffer%": typeof ArrayBuffer === "undefined" ? undefined2 : ArrayBuffer,
  234. "%ArrayIteratorPrototype%": hasSymbols ? getProto([][Symbol.iterator]()) : undefined2,
  235. "%AsyncFromSyncIteratorPrototype%": undefined2,
  236. "%AsyncFunction%": needsEval,
  237. "%AsyncGenerator%": needsEval,
  238. "%AsyncGeneratorFunction%": needsEval,
  239. "%AsyncIteratorPrototype%": needsEval,
  240. "%Atomics%": typeof Atomics === "undefined" ? undefined2 : Atomics,
  241. "%BigInt%": typeof BigInt === "undefined" ? undefined2 : BigInt,
  242. "%Boolean%": Boolean,
  243. "%DataView%": typeof DataView === "undefined" ? undefined2 : DataView,
  244. "%Date%": Date,
  245. "%decodeURI%": decodeURI,
  246. "%decodeURIComponent%": decodeURIComponent,
  247. "%encodeURI%": encodeURI,
  248. "%encodeURIComponent%": encodeURIComponent,
  249. "%Error%": Error,
  250. "%eval%": eval,
  251. "%EvalError%": EvalError,
  252. "%Float32Array%": typeof Float32Array === "undefined" ? undefined2 : Float32Array,
  253. "%Float64Array%": typeof Float64Array === "undefined" ? undefined2 : Float64Array,
  254. "%FinalizationRegistry%": typeof FinalizationRegistry === "undefined" ? undefined2 : FinalizationRegistry,
  255. "%Function%": $Function,
  256. "%GeneratorFunction%": needsEval,
  257. "%Int8Array%": typeof Int8Array === "undefined" ? undefined2 : Int8Array,
  258. "%Int16Array%": typeof Int16Array === "undefined" ? undefined2 : Int16Array,
  259. "%Int32Array%": typeof Int32Array === "undefined" ? undefined2 : Int32Array,
  260. "%isFinite%": isFinite,
  261. "%isNaN%": isNaN,
  262. "%IteratorPrototype%": hasSymbols ? getProto(getProto([][Symbol.iterator]())) : undefined2,
  263. "%JSON%": typeof JSON === "object" ? JSON : undefined2,
  264. "%Map%": typeof Map === "undefined" ? undefined2 : Map,
  265. "%MapIteratorPrototype%": typeof Map === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Map())[Symbol.iterator]()),
  266. "%Math%": Math,
  267. "%Number%": Number,
  268. "%Object%": Object,
  269. "%parseFloat%": parseFloat,
  270. "%parseInt%": parseInt,
  271. "%Promise%": typeof Promise === "undefined" ? undefined2 : Promise,
  272. "%Proxy%": typeof Proxy === "undefined" ? undefined2 : Proxy,
  273. "%RangeError%": RangeError,
  274. "%ReferenceError%": ReferenceError,
  275. "%Reflect%": typeof Reflect === "undefined" ? undefined2 : Reflect,
  276. "%RegExp%": RegExp,
  277. "%Set%": typeof Set === "undefined" ? undefined2 : Set,
  278. "%SetIteratorPrototype%": typeof Set === "undefined" || !hasSymbols ? undefined2 : getProto((/* @__PURE__ */ new Set())[Symbol.iterator]()),
  279. "%SharedArrayBuffer%": typeof SharedArrayBuffer === "undefined" ? undefined2 : SharedArrayBuffer,
  280. "%String%": String,
  281. "%StringIteratorPrototype%": hasSymbols ? getProto(""[Symbol.iterator]()) : undefined2,
  282. "%Symbol%": hasSymbols ? Symbol : undefined2,
  283. "%SyntaxError%": $SyntaxError,
  284. "%ThrowTypeError%": ThrowTypeError,
  285. "%TypedArray%": TypedArray,
  286. "%TypeError%": $TypeError,
  287. "%Uint8Array%": typeof Uint8Array === "undefined" ? undefined2 : Uint8Array,
  288. "%Uint8ClampedArray%": typeof Uint8ClampedArray === "undefined" ? undefined2 : Uint8ClampedArray,
  289. "%Uint16Array%": typeof Uint16Array === "undefined" ? undefined2 : Uint16Array,
  290. "%Uint32Array%": typeof Uint32Array === "undefined" ? undefined2 : Uint32Array,
  291. "%URIError%": URIError,
  292. "%WeakMap%": typeof WeakMap === "undefined" ? undefined2 : WeakMap,
  293. "%WeakRef%": typeof WeakRef === "undefined" ? undefined2 : WeakRef,
  294. "%WeakSet%": typeof WeakSet === "undefined" ? undefined2 : WeakSet
  295. };
  296. var doEval = function doEval2(name) {
  297. var value;
  298. if (name === "%AsyncFunction%") {
  299. value = getEvalledConstructor("async function () {}");
  300. } else if (name === "%GeneratorFunction%") {
  301. value = getEvalledConstructor("function* () {}");
  302. } else if (name === "%AsyncGeneratorFunction%") {
  303. value = getEvalledConstructor("async function* () {}");
  304. } else if (name === "%AsyncGenerator%") {
  305. var fn = doEval2("%AsyncGeneratorFunction%");
  306. if (fn) {
  307. value = fn.prototype;
  308. }
  309. } else if (name === "%AsyncIteratorPrototype%") {
  310. var gen = doEval2("%AsyncGenerator%");
  311. if (gen) {
  312. value = getProto(gen.prototype);
  313. }
  314. }
  315. INTRINSICS[name] = value;
  316. return value;
  317. };
  318. var LEGACY_ALIASES = {
  319. "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
  320. "%ArrayPrototype%": ["Array", "prototype"],
  321. "%ArrayProto_entries%": ["Array", "prototype", "entries"],
  322. "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
  323. "%ArrayProto_keys%": ["Array", "prototype", "keys"],
  324. "%ArrayProto_values%": ["Array", "prototype", "values"],
  325. "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
  326. "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
  327. "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
  328. "%BooleanPrototype%": ["Boolean", "prototype"],
  329. "%DataViewPrototype%": ["DataView", "prototype"],
  330. "%DatePrototype%": ["Date", "prototype"],
  331. "%ErrorPrototype%": ["Error", "prototype"],
  332. "%EvalErrorPrototype%": ["EvalError", "prototype"],
  333. "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
  334. "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
  335. "%FunctionPrototype%": ["Function", "prototype"],
  336. "%Generator%": ["GeneratorFunction", "prototype"],
  337. "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
  338. "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
  339. "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
  340. "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
  341. "%JSONParse%": ["JSON", "parse"],
  342. "%JSONStringify%": ["JSON", "stringify"],
  343. "%MapPrototype%": ["Map", "prototype"],
  344. "%NumberPrototype%": ["Number", "prototype"],
  345. "%ObjectPrototype%": ["Object", "prototype"],
  346. "%ObjProto_toString%": ["Object", "prototype", "toString"],
  347. "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
  348. "%PromisePrototype%": ["Promise", "prototype"],
  349. "%PromiseProto_then%": ["Promise", "prototype", "then"],
  350. "%Promise_all%": ["Promise", "all"],
  351. "%Promise_reject%": ["Promise", "reject"],
  352. "%Promise_resolve%": ["Promise", "resolve"],
  353. "%RangeErrorPrototype%": ["RangeError", "prototype"],
  354. "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
  355. "%RegExpPrototype%": ["RegExp", "prototype"],
  356. "%SetPrototype%": ["Set", "prototype"],
  357. "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
  358. "%StringPrototype%": ["String", "prototype"],
  359. "%SymbolPrototype%": ["Symbol", "prototype"],
  360. "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
  361. "%TypedArrayPrototype%": ["TypedArray", "prototype"],
  362. "%TypeErrorPrototype%": ["TypeError", "prototype"],
  363. "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
  364. "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
  365. "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
  366. "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
  367. "%URIErrorPrototype%": ["URIError", "prototype"],
  368. "%WeakMapPrototype%": ["WeakMap", "prototype"],
  369. "%WeakSetPrototype%": ["WeakSet", "prototype"]
  370. };
  371. var bind = require_function_bind();
  372. var hasOwn = require_src();
  373. var $concat = bind.call(Function.call, Array.prototype.concat);
  374. var $spliceApply = bind.call(Function.apply, Array.prototype.splice);
  375. var $replace = bind.call(Function.call, String.prototype.replace);
  376. var $strSlice = bind.call(Function.call, String.prototype.slice);
  377. var $exec = bind.call(Function.call, RegExp.prototype.exec);
  378. var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
  379. var reEscapeChar = /\\(\\)?/g;
  380. var stringToPath = function stringToPath2(string) {
  381. var first = $strSlice(string, 0, 1);
  382. var last = $strSlice(string, -1);
  383. if (first === "%" && last !== "%") {
  384. throw new $SyntaxError("invalid intrinsic syntax, expected closing `%`");
  385. } else if (last === "%" && first !== "%") {
  386. throw new $SyntaxError("invalid intrinsic syntax, expected opening `%`");
  387. }
  388. var result = [];
  389. $replace(string, rePropName, function(match, number, quote, subString) {
  390. result[result.length] = quote ? $replace(subString, reEscapeChar, "$1") : number || match;
  391. });
  392. return result;
  393. };
  394. var getBaseIntrinsic = function getBaseIntrinsic2(name, allowMissing) {
  395. var intrinsicName = name;
  396. var alias;
  397. if (hasOwn(LEGACY_ALIASES, intrinsicName)) {
  398. alias = LEGACY_ALIASES[intrinsicName];
  399. intrinsicName = "%" + alias[0] + "%";
  400. }
  401. if (hasOwn(INTRINSICS, intrinsicName)) {
  402. var value = INTRINSICS[intrinsicName];
  403. if (value === needsEval) {
  404. value = doEval(intrinsicName);
  405. }
  406. if (typeof value === "undefined" && !allowMissing) {
  407. throw new $TypeError("intrinsic " + name + " exists, but is not available. Please file an issue!");
  408. }
  409. return {
  410. alias,
  411. name: intrinsicName,
  412. value
  413. };
  414. }
  415. throw new $SyntaxError("intrinsic " + name + " does not exist!");
  416. };
  417. module.exports = function GetIntrinsic(name, allowMissing) {
  418. if (typeof name !== "string" || name.length === 0) {
  419. throw new $TypeError("intrinsic name must be a non-empty string");
  420. }
  421. if (arguments.length > 1 && typeof allowMissing !== "boolean") {
  422. throw new $TypeError('"allowMissing" argument must be a boolean');
  423. }
  424. if ($exec(/^%?[^%]*%?$/, name) === null) {
  425. throw new $SyntaxError("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
  426. }
  427. var parts = stringToPath(name);
  428. var intrinsicBaseName = parts.length > 0 ? parts[0] : "";
  429. var intrinsic = getBaseIntrinsic("%" + intrinsicBaseName + "%", allowMissing);
  430. var intrinsicRealName = intrinsic.name;
  431. var value = intrinsic.value;
  432. var skipFurtherCaching = false;
  433. var alias = intrinsic.alias;
  434. if (alias) {
  435. intrinsicBaseName = alias[0];
  436. $spliceApply(parts, $concat([0, 1], alias));
  437. }
  438. for (var i = 1, isOwn = true; i < parts.length; i += 1) {
  439. var part = parts[i];
  440. var first = $strSlice(part, 0, 1);
  441. var last = $strSlice(part, -1);
  442. if ((first === '"' || first === "'" || first === "`" || (last === '"' || last === "'" || last === "`")) && first !== last) {
  443. throw new $SyntaxError("property names with quotes must have matching quotes");
  444. }
  445. if (part === "constructor" || !isOwn) {
  446. skipFurtherCaching = true;
  447. }
  448. intrinsicBaseName += "." + part;
  449. intrinsicRealName = "%" + intrinsicBaseName + "%";
  450. if (hasOwn(INTRINSICS, intrinsicRealName)) {
  451. value = INTRINSICS[intrinsicRealName];
  452. } else if (value != null) {
  453. if (!(part in value)) {
  454. if (!allowMissing) {
  455. throw new $TypeError("base intrinsic for " + name + " exists, but the property is not available.");
  456. }
  457. return void 0;
  458. }
  459. if ($gOPD && i + 1 >= parts.length) {
  460. var desc = $gOPD(value, part);
  461. isOwn = !!desc;
  462. if (isOwn && "get" in desc && !("originalValue" in desc.get)) {
  463. value = desc.get;
  464. } else {
  465. value = value[part];
  466. }
  467. } else {
  468. isOwn = hasOwn(value, part);
  469. value = value[part];
  470. }
  471. if (isOwn && !skipFurtherCaching) {
  472. INTRINSICS[intrinsicRealName] = value;
  473. }
  474. }
  475. }
  476. return value;
  477. };
  478. }
  479. });
  480. // ../../../../development/hbuildX_project/GraceUI6/node_modules/call-bind/index.js
  481. var require_call_bind = __commonJS({
  482. "../../../../development/hbuildX_project/GraceUI6/node_modules/call-bind/index.js"(exports, module) {
  483. "use strict";
  484. init_define_process_env_UNI_STAT_TITLE_JSON();
  485. var bind = require_function_bind();
  486. var GetIntrinsic = require_get_intrinsic();
  487. var $apply = GetIntrinsic("%Function.prototype.apply%");
  488. var $call = GetIntrinsic("%Function.prototype.call%");
  489. var $reflectApply = GetIntrinsic("%Reflect.apply%", true) || bind.call($call, $apply);
  490. var $gOPD = GetIntrinsic("%Object.getOwnPropertyDescriptor%", true);
  491. var $defineProperty = GetIntrinsic("%Object.defineProperty%", true);
  492. var $max = GetIntrinsic("%Math.max%");
  493. if ($defineProperty) {
  494. try {
  495. $defineProperty({}, "a", { value: 1 });
  496. } catch (e) {
  497. $defineProperty = null;
  498. }
  499. }
  500. module.exports = function callBind(originalFunction) {
  501. var func = $reflectApply(bind, $call, arguments);
  502. if ($gOPD && $defineProperty) {
  503. var desc = $gOPD(func, "length");
  504. if (desc.configurable) {
  505. $defineProperty(func, "length", { value: 1 + $max(0, originalFunction.length - (arguments.length - 1)) });
  506. }
  507. }
  508. return func;
  509. };
  510. var applyBind = function applyBind2() {
  511. return $reflectApply(bind, $apply, arguments);
  512. };
  513. if ($defineProperty) {
  514. $defineProperty(module.exports, "apply", { value: applyBind });
  515. } else {
  516. module.exports.apply = applyBind;
  517. }
  518. }
  519. });
  520. // ../../../../development/hbuildX_project/GraceUI6/node_modules/call-bind/callBound.js
  521. var require_callBound = __commonJS({
  522. "../../../../development/hbuildX_project/GraceUI6/node_modules/call-bind/callBound.js"(exports, module) {
  523. "use strict";
  524. init_define_process_env_UNI_STAT_TITLE_JSON();
  525. var GetIntrinsic = require_get_intrinsic();
  526. var callBind = require_call_bind();
  527. var $indexOf = callBind(GetIntrinsic("String.prototype.indexOf"));
  528. module.exports = function callBoundIntrinsic(name, allowMissing) {
  529. var intrinsic = GetIntrinsic(name, !!allowMissing);
  530. if (typeof intrinsic === "function" && $indexOf(name, ".prototype.") > -1) {
  531. return callBind(intrinsic);
  532. }
  533. return intrinsic;
  534. };
  535. }
  536. });
  537. // (disabled):../../../../development/hbuildX_project/GraceUI6/node_modules/object-inspect/util.inspect
  538. var require_util = __commonJS({
  539. "(disabled):../../../../development/hbuildX_project/GraceUI6/node_modules/object-inspect/util.inspect"() {
  540. init_define_process_env_UNI_STAT_TITLE_JSON();
  541. }
  542. });
  543. // ../../../../development/hbuildX_project/GraceUI6/node_modules/object-inspect/index.js
  544. var require_object_inspect = __commonJS({
  545. "../../../../development/hbuildX_project/GraceUI6/node_modules/object-inspect/index.js"(exports, module) {
  546. init_define_process_env_UNI_STAT_TITLE_JSON();
  547. var hasMap = typeof Map === "function" && Map.prototype;
  548. var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, "size") : null;
  549. var mapSize = hasMap && mapSizeDescriptor && typeof mapSizeDescriptor.get === "function" ? mapSizeDescriptor.get : null;
  550. var mapForEach = hasMap && Map.prototype.forEach;
  551. var hasSet = typeof Set === "function" && Set.prototype;
  552. var setSizeDescriptor = Object.getOwnPropertyDescriptor && hasSet ? Object.getOwnPropertyDescriptor(Set.prototype, "size") : null;
  553. var setSize = hasSet && setSizeDescriptor && typeof setSizeDescriptor.get === "function" ? setSizeDescriptor.get : null;
  554. var setForEach = hasSet && Set.prototype.forEach;
  555. var hasWeakMap = typeof WeakMap === "function" && WeakMap.prototype;
  556. var weakMapHas = hasWeakMap ? WeakMap.prototype.has : null;
  557. var hasWeakSet = typeof WeakSet === "function" && WeakSet.prototype;
  558. var weakSetHas = hasWeakSet ? WeakSet.prototype.has : null;
  559. var hasWeakRef = typeof WeakRef === "function" && WeakRef.prototype;
  560. var weakRefDeref = hasWeakRef ? WeakRef.prototype.deref : null;
  561. var booleanValueOf = Boolean.prototype.valueOf;
  562. var objectToString = Object.prototype.toString;
  563. var functionToString = Function.prototype.toString;
  564. var $match = String.prototype.match;
  565. var $slice = String.prototype.slice;
  566. var $replace = String.prototype.replace;
  567. var $toUpperCase = String.prototype.toUpperCase;
  568. var $toLowerCase = String.prototype.toLowerCase;
  569. var $test = RegExp.prototype.test;
  570. var $concat = Array.prototype.concat;
  571. var $join = Array.prototype.join;
  572. var $arrSlice = Array.prototype.slice;
  573. var $floor = Math.floor;
  574. var bigIntValueOf = typeof BigInt === "function" ? BigInt.prototype.valueOf : null;
  575. var gOPS = Object.getOwnPropertySymbols;
  576. var symToString = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? Symbol.prototype.toString : null;
  577. var hasShammedSymbols = typeof Symbol === "function" && typeof Symbol.iterator === "object";
  578. var toStringTag = typeof Symbol === "function" && Symbol.toStringTag && (typeof Symbol.toStringTag === hasShammedSymbols ? "object" : "symbol") ? Symbol.toStringTag : null;
  579. var isEnumerable = Object.prototype.propertyIsEnumerable;
  580. var gPO = (typeof Reflect === "function" ? Reflect.getPrototypeOf : Object.getPrototypeOf) || ([].__proto__ === Array.prototype ? function(O) {
  581. return O.__proto__;
  582. } : null);
  583. function addNumericSeparator(num, str) {
  584. if (num === Infinity || num === -Infinity || num !== num || num && num > -1e3 && num < 1e3 || $test.call(/e/, str)) {
  585. return str;
  586. }
  587. var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
  588. if (typeof num === "number") {
  589. var int = num < 0 ? -$floor(-num) : $floor(num);
  590. if (int !== num) {
  591. var intStr = String(int);
  592. var dec = $slice.call(str, intStr.length + 1);
  593. return $replace.call(intStr, sepRegex, "$&_") + "." + $replace.call($replace.call(dec, /([0-9]{3})/g, "$&_"), /_$/, "");
  594. }
  595. }
  596. return $replace.call(str, sepRegex, "$&_");
  597. }
  598. var utilInspect = require_util();
  599. var inspectCustom = utilInspect.custom;
  600. var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
  601. module.exports = function inspect_(obj, options, depth, seen) {
  602. var opts = options || {};
  603. if (has(opts, "quoteStyle") && (opts.quoteStyle !== "single" && opts.quoteStyle !== "double")) {
  604. throw new TypeError('option "quoteStyle" must be "single" or "double"');
  605. }
  606. if (has(opts, "maxStringLength") && (typeof opts.maxStringLength === "number" ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
  607. throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
  608. }
  609. var customInspect = has(opts, "customInspect") ? opts.customInspect : true;
  610. if (typeof customInspect !== "boolean" && customInspect !== "symbol") {
  611. throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
  612. }
  613. if (has(opts, "indent") && opts.indent !== null && opts.indent !== " " && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
  614. throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
  615. }
  616. if (has(opts, "numericSeparator") && typeof opts.numericSeparator !== "boolean") {
  617. throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
  618. }
  619. var numericSeparator = opts.numericSeparator;
  620. if (typeof obj === "undefined") {
  621. return "undefined";
  622. }
  623. if (obj === null) {
  624. return "null";
  625. }
  626. if (typeof obj === "boolean") {
  627. return obj ? "true" : "false";
  628. }
  629. if (typeof obj === "string") {
  630. return inspectString(obj, opts);
  631. }
  632. if (typeof obj === "number") {
  633. if (obj === 0) {
  634. return Infinity / obj > 0 ? "0" : "-0";
  635. }
  636. var str = String(obj);
  637. return numericSeparator ? addNumericSeparator(obj, str) : str;
  638. }
  639. if (typeof obj === "bigint") {
  640. var bigIntStr = String(obj) + "n";
  641. return numericSeparator ? addNumericSeparator(obj, bigIntStr) : bigIntStr;
  642. }
  643. var maxDepth = typeof opts.depth === "undefined" ? 5 : opts.depth;
  644. if (typeof depth === "undefined") {
  645. depth = 0;
  646. }
  647. if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
  648. return isArray(obj) ? "[Array]" : "[Object]";
  649. }
  650. var indent = getIndent(opts, depth);
  651. if (typeof seen === "undefined") {
  652. seen = [];
  653. } else if (indexOf(seen, obj) >= 0) {
  654. return "[Circular]";
  655. }
  656. function inspect(value, from, noIndent) {
  657. if (from) {
  658. seen = $arrSlice.call(seen);
  659. seen.push(from);
  660. }
  661. if (noIndent) {
  662. var newOpts = {
  663. depth: opts.depth
  664. };
  665. if (has(opts, "quoteStyle")) {
  666. newOpts.quoteStyle = opts.quoteStyle;
  667. }
  668. return inspect_(value, newOpts, depth + 1, seen);
  669. }
  670. return inspect_(value, opts, depth + 1, seen);
  671. }
  672. if (typeof obj === "function" && !isRegExp(obj)) {
  673. var name = nameOf(obj);
  674. var keys = arrObjKeys(obj, inspect);
  675. return "[Function" + (name ? ": " + name : " (anonymous)") + "]" + (keys.length > 0 ? " { " + $join.call(keys, ", ") + " }" : "");
  676. }
  677. if (isSymbol(obj)) {
  678. var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, "$1") : symToString.call(obj);
  679. return typeof obj === "object" && !hasShammedSymbols ? markBoxed(symString) : symString;
  680. }
  681. if (isElement(obj)) {
  682. var s = "<" + $toLowerCase.call(String(obj.nodeName));
  683. var attrs = obj.attributes || [];
  684. for (var i = 0; i < attrs.length; i++) {
  685. s += " " + attrs[i].name + "=" + wrapQuotes(quote(attrs[i].value), "double", opts);
  686. }
  687. s += ">";
  688. if (obj.childNodes && obj.childNodes.length) {
  689. s += "...";
  690. }
  691. s += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
  692. return s;
  693. }
  694. if (isArray(obj)) {
  695. if (obj.length === 0) {
  696. return "[]";
  697. }
  698. var xs = arrObjKeys(obj, inspect);
  699. if (indent && !singleLineValues(xs)) {
  700. return "[" + indentedJoin(xs, indent) + "]";
  701. }
  702. return "[ " + $join.call(xs, ", ") + " ]";
  703. }
  704. if (isError(obj)) {
  705. var parts = arrObjKeys(obj, inspect);
  706. if (!("cause" in Error.prototype) && "cause" in obj && !isEnumerable.call(obj, "cause")) {
  707. return "{ [" + String(obj) + "] " + $join.call($concat.call("[cause]: " + inspect(obj.cause), parts), ", ") + " }";
  708. }
  709. if (parts.length === 0) {
  710. return "[" + String(obj) + "]";
  711. }
  712. return "{ [" + String(obj) + "] " + $join.call(parts, ", ") + " }";
  713. }
  714. if (typeof obj === "object" && customInspect) {
  715. if (inspectSymbol && typeof obj[inspectSymbol] === "function" && utilInspect) {
  716. return utilInspect(obj, { depth: maxDepth - depth });
  717. } else if (customInspect !== "symbol" && typeof obj.inspect === "function") {
  718. return obj.inspect();
  719. }
  720. }
  721. if (isMap(obj)) {
  722. var mapParts = [];
  723. mapForEach.call(obj, function(value, key) {
  724. mapParts.push(inspect(key, obj, true) + " => " + inspect(value, obj));
  725. });
  726. return collectionOf("Map", mapSize.call(obj), mapParts, indent);
  727. }
  728. if (isSet(obj)) {
  729. var setParts = [];
  730. setForEach.call(obj, function(value) {
  731. setParts.push(inspect(value, obj));
  732. });
  733. return collectionOf("Set", setSize.call(obj), setParts, indent);
  734. }
  735. if (isWeakMap(obj)) {
  736. return weakCollectionOf("WeakMap");
  737. }
  738. if (isWeakSet(obj)) {
  739. return weakCollectionOf("WeakSet");
  740. }
  741. if (isWeakRef(obj)) {
  742. return weakCollectionOf("WeakRef");
  743. }
  744. if (isNumber2(obj)) {
  745. return markBoxed(inspect(Number(obj)));
  746. }
  747. if (isBigInt(obj)) {
  748. return markBoxed(inspect(bigIntValueOf.call(obj)));
  749. }
  750. if (isBoolean(obj)) {
  751. return markBoxed(booleanValueOf.call(obj));
  752. }
  753. if (isString2(obj)) {
  754. return markBoxed(inspect(String(obj)));
  755. }
  756. if (!isDate(obj) && !isRegExp(obj)) {
  757. var ys = arrObjKeys(obj, inspect);
  758. var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
  759. var protoTag = obj instanceof Object ? "" : "null prototype";
  760. var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? "Object" : "";
  761. var constructorTag = isPlainObject || typeof obj.constructor !== "function" ? "" : obj.constructor.name ? obj.constructor.name + " " : "";
  762. var tag = constructorTag + (stringTag || protoTag ? "[" + $join.call($concat.call([], stringTag || [], protoTag || []), ": ") + "] " : "");
  763. if (ys.length === 0) {
  764. return tag + "{}";
  765. }
  766. if (indent) {
  767. return tag + "{" + indentedJoin(ys, indent) + "}";
  768. }
  769. return tag + "{ " + $join.call(ys, ", ") + " }";
  770. }
  771. return String(obj);
  772. };
  773. function wrapQuotes(s, defaultStyle, opts) {
  774. var quoteChar = (opts.quoteStyle || defaultStyle) === "double" ? '"' : "'";
  775. return quoteChar + s + quoteChar;
  776. }
  777. function quote(s) {
  778. return $replace.call(String(s), /"/g, "&quot;");
  779. }
  780. function isArray(obj) {
  781. return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  782. }
  783. function isDate(obj) {
  784. return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  785. }
  786. function isRegExp(obj) {
  787. return toStr(obj) === "[object RegExp]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  788. }
  789. function isError(obj) {
  790. return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  791. }
  792. function isString2(obj) {
  793. return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  794. }
  795. function isNumber2(obj) {
  796. return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  797. }
  798. function isBoolean(obj) {
  799. return toStr(obj) === "[object Boolean]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
  800. }
  801. function isSymbol(obj) {
  802. if (hasShammedSymbols) {
  803. return obj && typeof obj === "object" && obj instanceof Symbol;
  804. }
  805. if (typeof obj === "symbol") {
  806. return true;
  807. }
  808. if (!obj || typeof obj !== "object" || !symToString) {
  809. return false;
  810. }
  811. try {
  812. symToString.call(obj);
  813. return true;
  814. } catch (e) {
  815. }
  816. return false;
  817. }
  818. function isBigInt(obj) {
  819. if (!obj || typeof obj !== "object" || !bigIntValueOf) {
  820. return false;
  821. }
  822. try {
  823. bigIntValueOf.call(obj);
  824. return true;
  825. } catch (e) {
  826. }
  827. return false;
  828. }
  829. var hasOwn = Object.prototype.hasOwnProperty || function(key) {
  830. return key in this;
  831. };
  832. function has(obj, key) {
  833. return hasOwn.call(obj, key);
  834. }
  835. function toStr(obj) {
  836. return objectToString.call(obj);
  837. }
  838. function nameOf(f) {
  839. if (f.name) {
  840. return f.name;
  841. }
  842. var m = $match.call(functionToString.call(f), /^function\s*([\w$]+)/);
  843. if (m) {
  844. return m[1];
  845. }
  846. return null;
  847. }
  848. function indexOf(xs, x) {
  849. if (xs.indexOf) {
  850. return xs.indexOf(x);
  851. }
  852. for (var i = 0, l = xs.length; i < l; i++) {
  853. if (xs[i] === x) {
  854. return i;
  855. }
  856. }
  857. return -1;
  858. }
  859. function isMap(x) {
  860. if (!mapSize || !x || typeof x !== "object") {
  861. return false;
  862. }
  863. try {
  864. mapSize.call(x);
  865. try {
  866. setSize.call(x);
  867. } catch (s) {
  868. return true;
  869. }
  870. return x instanceof Map;
  871. } catch (e) {
  872. }
  873. return false;
  874. }
  875. function isWeakMap(x) {
  876. if (!weakMapHas || !x || typeof x !== "object") {
  877. return false;
  878. }
  879. try {
  880. weakMapHas.call(x, weakMapHas);
  881. try {
  882. weakSetHas.call(x, weakSetHas);
  883. } catch (s) {
  884. return true;
  885. }
  886. return x instanceof WeakMap;
  887. } catch (e) {
  888. }
  889. return false;
  890. }
  891. function isWeakRef(x) {
  892. if (!weakRefDeref || !x || typeof x !== "object") {
  893. return false;
  894. }
  895. try {
  896. weakRefDeref.call(x);
  897. return true;
  898. } catch (e) {
  899. }
  900. return false;
  901. }
  902. function isSet(x) {
  903. if (!setSize || !x || typeof x !== "object") {
  904. return false;
  905. }
  906. try {
  907. setSize.call(x);
  908. try {
  909. mapSize.call(x);
  910. } catch (m) {
  911. return true;
  912. }
  913. return x instanceof Set;
  914. } catch (e) {
  915. }
  916. return false;
  917. }
  918. function isWeakSet(x) {
  919. if (!weakSetHas || !x || typeof x !== "object") {
  920. return false;
  921. }
  922. try {
  923. weakSetHas.call(x, weakSetHas);
  924. try {
  925. weakMapHas.call(x, weakMapHas);
  926. } catch (s) {
  927. return true;
  928. }
  929. return x instanceof WeakSet;
  930. } catch (e) {
  931. }
  932. return false;
  933. }
  934. function isElement(x) {
  935. if (!x || typeof x !== "object") {
  936. return false;
  937. }
  938. if (typeof HTMLElement !== "undefined" && x instanceof HTMLElement) {
  939. return true;
  940. }
  941. return typeof x.nodeName === "string" && typeof x.getAttribute === "function";
  942. }
  943. function inspectString(str, opts) {
  944. if (str.length > opts.maxStringLength) {
  945. var remaining = str.length - opts.maxStringLength;
  946. var trailer = "... " + remaining + " more character" + (remaining > 1 ? "s" : "");
  947. return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
  948. }
  949. var s = $replace.call($replace.call(str, /(['\\])/g, "\\$1"), /[\x00-\x1f]/g, lowbyte);
  950. return wrapQuotes(s, "single", opts);
  951. }
  952. function lowbyte(c) {
  953. var n = c.charCodeAt(0);
  954. var x = {
  955. 8: "b",
  956. 9: "t",
  957. 10: "n",
  958. 12: "f",
  959. 13: "r"
  960. }[n];
  961. if (x) {
  962. return "\\" + x;
  963. }
  964. return "\\x" + (n < 16 ? "0" : "") + $toUpperCase.call(n.toString(16));
  965. }
  966. function markBoxed(str) {
  967. return "Object(" + str + ")";
  968. }
  969. function weakCollectionOf(type) {
  970. return type + " { ? }";
  971. }
  972. function collectionOf(type, size, entries, indent) {
  973. var joinedEntries = indent ? indentedJoin(entries, indent) : $join.call(entries, ", ");
  974. return type + " (" + size + ") {" + joinedEntries + "}";
  975. }
  976. function singleLineValues(xs) {
  977. for (var i = 0; i < xs.length; i++) {
  978. if (indexOf(xs[i], "\n") >= 0) {
  979. return false;
  980. }
  981. }
  982. return true;
  983. }
  984. function getIndent(opts, depth) {
  985. var baseIndent;
  986. if (opts.indent === " ") {
  987. baseIndent = " ";
  988. } else if (typeof opts.indent === "number" && opts.indent > 0) {
  989. baseIndent = $join.call(Array(opts.indent + 1), " ");
  990. } else {
  991. return null;
  992. }
  993. return {
  994. base: baseIndent,
  995. prev: $join.call(Array(depth + 1), baseIndent)
  996. };
  997. }
  998. function indentedJoin(xs, indent) {
  999. if (xs.length === 0) {
  1000. return "";
  1001. }
  1002. var lineJoiner = "\n" + indent.prev + indent.base;
  1003. return lineJoiner + $join.call(xs, "," + lineJoiner) + "\n" + indent.prev;
  1004. }
  1005. function arrObjKeys(obj, inspect) {
  1006. var isArr = isArray(obj);
  1007. var xs = [];
  1008. if (isArr) {
  1009. xs.length = obj.length;
  1010. for (var i = 0; i < obj.length; i++) {
  1011. xs[i] = has(obj, i) ? inspect(obj[i], obj) : "";
  1012. }
  1013. }
  1014. var syms = typeof gOPS === "function" ? gOPS(obj) : [];
  1015. var symMap;
  1016. if (hasShammedSymbols) {
  1017. symMap = {};
  1018. for (var k = 0; k < syms.length; k++) {
  1019. symMap["$" + syms[k]] = syms[k];
  1020. }
  1021. }
  1022. for (var key in obj) {
  1023. if (!has(obj, key)) {
  1024. continue;
  1025. }
  1026. if (isArr && String(Number(key)) === key && key < obj.length) {
  1027. continue;
  1028. }
  1029. if (hasShammedSymbols && symMap["$" + key] instanceof Symbol) {
  1030. continue;
  1031. } else if ($test.call(/[^\w$]/, key)) {
  1032. xs.push(inspect(key, obj) + ": " + inspect(obj[key], obj));
  1033. } else {
  1034. xs.push(key + ": " + inspect(obj[key], obj));
  1035. }
  1036. }
  1037. if (typeof gOPS === "function") {
  1038. for (var j = 0; j < syms.length; j++) {
  1039. if (isEnumerable.call(obj, syms[j])) {
  1040. xs.push("[" + inspect(syms[j]) + "]: " + inspect(obj[syms[j]], obj));
  1041. }
  1042. }
  1043. }
  1044. return xs;
  1045. }
  1046. }
  1047. });
  1048. // ../../../../development/hbuildX_project/GraceUI6/node_modules/side-channel/index.js
  1049. var require_side_channel = __commonJS({
  1050. "../../../../development/hbuildX_project/GraceUI6/node_modules/side-channel/index.js"(exports, module) {
  1051. "use strict";
  1052. init_define_process_env_UNI_STAT_TITLE_JSON();
  1053. var GetIntrinsic = require_get_intrinsic();
  1054. var callBound = require_callBound();
  1055. var inspect = require_object_inspect();
  1056. var $TypeError = GetIntrinsic("%TypeError%");
  1057. var $WeakMap = GetIntrinsic("%WeakMap%", true);
  1058. var $Map = GetIntrinsic("%Map%", true);
  1059. var $weakMapGet = callBound("WeakMap.prototype.get", true);
  1060. var $weakMapSet = callBound("WeakMap.prototype.set", true);
  1061. var $weakMapHas = callBound("WeakMap.prototype.has", true);
  1062. var $mapGet = callBound("Map.prototype.get", true);
  1063. var $mapSet = callBound("Map.prototype.set", true);
  1064. var $mapHas = callBound("Map.prototype.has", true);
  1065. var listGetNode = function(list, key) {
  1066. for (var prev = list, curr; (curr = prev.next) !== null; prev = curr) {
  1067. if (curr.key === key) {
  1068. prev.next = curr.next;
  1069. curr.next = list.next;
  1070. list.next = curr;
  1071. return curr;
  1072. }
  1073. }
  1074. };
  1075. var listGet = function(objects, key) {
  1076. var node = listGetNode(objects, key);
  1077. return node && node.value;
  1078. };
  1079. var listSet = function(objects, key, value) {
  1080. var node = listGetNode(objects, key);
  1081. if (node) {
  1082. node.value = value;
  1083. } else {
  1084. objects.next = {
  1085. key,
  1086. next: objects.next,
  1087. value
  1088. };
  1089. }
  1090. };
  1091. var listHas = function(objects, key) {
  1092. return !!listGetNode(objects, key);
  1093. };
  1094. module.exports = function getSideChannel() {
  1095. var $wm;
  1096. var $m;
  1097. var $o;
  1098. var channel = {
  1099. assert: function(key) {
  1100. if (!channel.has(key)) {
  1101. throw new $TypeError("Side channel does not contain " + inspect(key));
  1102. }
  1103. },
  1104. get: function(key) {
  1105. if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
  1106. if ($wm) {
  1107. return $weakMapGet($wm, key);
  1108. }
  1109. } else if ($Map) {
  1110. if ($m) {
  1111. return $mapGet($m, key);
  1112. }
  1113. } else {
  1114. if ($o) {
  1115. return listGet($o, key);
  1116. }
  1117. }
  1118. },
  1119. has: function(key) {
  1120. if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
  1121. if ($wm) {
  1122. return $weakMapHas($wm, key);
  1123. }
  1124. } else if ($Map) {
  1125. if ($m) {
  1126. return $mapHas($m, key);
  1127. }
  1128. } else {
  1129. if ($o) {
  1130. return listHas($o, key);
  1131. }
  1132. }
  1133. return false;
  1134. },
  1135. set: function(key, value) {
  1136. if ($WeakMap && key && (typeof key === "object" || typeof key === "function")) {
  1137. if (!$wm) {
  1138. $wm = new $WeakMap();
  1139. }
  1140. $weakMapSet($wm, key, value);
  1141. } else if ($Map) {
  1142. if (!$m) {
  1143. $m = new $Map();
  1144. }
  1145. $mapSet($m, key, value);
  1146. } else {
  1147. if (!$o) {
  1148. $o = { key: {}, next: null };
  1149. }
  1150. listSet($o, key, value);
  1151. }
  1152. }
  1153. };
  1154. return channel;
  1155. };
  1156. }
  1157. });
  1158. // ../../../../development/hbuildX_project/GraceUI6/node_modules/qs/lib/formats.js
  1159. var require_formats = __commonJS({
  1160. "../../../../development/hbuildX_project/GraceUI6/node_modules/qs/lib/formats.js"(exports, module) {
  1161. "use strict";
  1162. init_define_process_env_UNI_STAT_TITLE_JSON();
  1163. var replace = String.prototype.replace;
  1164. var percentTwenties = /%20/g;
  1165. var Format = {
  1166. RFC1738: "RFC1738",
  1167. RFC3986: "RFC3986"
  1168. };
  1169. module.exports = {
  1170. "default": Format.RFC3986,
  1171. formatters: {
  1172. RFC1738: function(value) {
  1173. return replace.call(value, percentTwenties, "+");
  1174. },
  1175. RFC3986: function(value) {
  1176. return String(value);
  1177. }
  1178. },
  1179. RFC1738: Format.RFC1738,
  1180. RFC3986: Format.RFC3986
  1181. };
  1182. }
  1183. });
  1184. // ../../../../development/hbuildX_project/GraceUI6/node_modules/qs/lib/utils.js
  1185. var require_utils = __commonJS({
  1186. "../../../../development/hbuildX_project/GraceUI6/node_modules/qs/lib/utils.js"(exports, module) {
  1187. "use strict";
  1188. init_define_process_env_UNI_STAT_TITLE_JSON();
  1189. var formats = require_formats();
  1190. var has = Object.prototype.hasOwnProperty;
  1191. var isArray = Array.isArray;
  1192. var hexTable = function() {
  1193. var array = [];
  1194. for (var i = 0; i < 256; ++i) {
  1195. array.push("%" + ((i < 16 ? "0" : "") + i.toString(16)).toUpperCase());
  1196. }
  1197. return array;
  1198. }();
  1199. var compactQueue = function compactQueue2(queue) {
  1200. while (queue.length > 1) {
  1201. var item = queue.pop();
  1202. var obj = item.obj[item.prop];
  1203. if (isArray(obj)) {
  1204. var compacted = [];
  1205. for (var j = 0; j < obj.length; ++j) {
  1206. if (typeof obj[j] !== "undefined") {
  1207. compacted.push(obj[j]);
  1208. }
  1209. }
  1210. item.obj[item.prop] = compacted;
  1211. }
  1212. }
  1213. };
  1214. var arrayToObject = function arrayToObject2(source, options) {
  1215. var obj = options && options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  1216. for (var i = 0; i < source.length; ++i) {
  1217. if (typeof source[i] !== "undefined") {
  1218. obj[i] = source[i];
  1219. }
  1220. }
  1221. return obj;
  1222. };
  1223. var merge = function merge2(target, source, options) {
  1224. if (!source) {
  1225. return target;
  1226. }
  1227. if (typeof source !== "object") {
  1228. if (isArray(target)) {
  1229. target.push(source);
  1230. } else if (target && typeof target === "object") {
  1231. if (options && (options.plainObjects || options.allowPrototypes) || !has.call(Object.prototype, source)) {
  1232. target[source] = true;
  1233. }
  1234. } else {
  1235. return [target, source];
  1236. }
  1237. return target;
  1238. }
  1239. if (!target || typeof target !== "object") {
  1240. return [target].concat(source);
  1241. }
  1242. var mergeTarget = target;
  1243. if (isArray(target) && !isArray(source)) {
  1244. mergeTarget = arrayToObject(target, options);
  1245. }
  1246. if (isArray(target) && isArray(source)) {
  1247. source.forEach(function(item, i) {
  1248. if (has.call(target, i)) {
  1249. var targetItem = target[i];
  1250. if (targetItem && typeof targetItem === "object" && item && typeof item === "object") {
  1251. target[i] = merge2(targetItem, item, options);
  1252. } else {
  1253. target.push(item);
  1254. }
  1255. } else {
  1256. target[i] = item;
  1257. }
  1258. });
  1259. return target;
  1260. }
  1261. return Object.keys(source).reduce(function(acc, key) {
  1262. var value = source[key];
  1263. if (has.call(acc, key)) {
  1264. acc[key] = merge2(acc[key], value, options);
  1265. } else {
  1266. acc[key] = value;
  1267. }
  1268. return acc;
  1269. }, mergeTarget);
  1270. };
  1271. var assign = function assignSingleSource(target, source) {
  1272. return Object.keys(source).reduce(function(acc, key) {
  1273. acc[key] = source[key];
  1274. return acc;
  1275. }, target);
  1276. };
  1277. var decode = function(str, decoder, charset) {
  1278. var strWithoutPlus = str.replace(/\+/g, " ");
  1279. if (charset === "iso-8859-1") {
  1280. return strWithoutPlus.replace(/%[0-9a-f]{2}/gi, unescape);
  1281. }
  1282. try {
  1283. return decodeURIComponent(strWithoutPlus);
  1284. } catch (e) {
  1285. return strWithoutPlus;
  1286. }
  1287. };
  1288. var encode = function encode2(str, defaultEncoder, charset, kind, format) {
  1289. if (str.length === 0) {
  1290. return str;
  1291. }
  1292. var string = str;
  1293. if (typeof str === "symbol") {
  1294. string = Symbol.prototype.toString.call(str);
  1295. } else if (typeof str !== "string") {
  1296. string = String(str);
  1297. }
  1298. if (charset === "iso-8859-1") {
  1299. return escape(string).replace(/%u[0-9a-f]{4}/gi, function($0) {
  1300. return "%26%23" + parseInt($0.slice(2), 16) + "%3B";
  1301. });
  1302. }
  1303. var out = "";
  1304. for (var i = 0; i < string.length; ++i) {
  1305. var c = string.charCodeAt(i);
  1306. 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)) {
  1307. out += string.charAt(i);
  1308. continue;
  1309. }
  1310. if (c < 128) {
  1311. out = out + hexTable[c];
  1312. continue;
  1313. }
  1314. if (c < 2048) {
  1315. out = out + (hexTable[192 | c >> 6] + hexTable[128 | c & 63]);
  1316. continue;
  1317. }
  1318. if (c < 55296 || c >= 57344) {
  1319. out = out + (hexTable[224 | c >> 12] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63]);
  1320. continue;
  1321. }
  1322. i += 1;
  1323. c = 65536 + ((c & 1023) << 10 | string.charCodeAt(i) & 1023);
  1324. out += hexTable[240 | c >> 18] + hexTable[128 | c >> 12 & 63] + hexTable[128 | c >> 6 & 63] + hexTable[128 | c & 63];
  1325. }
  1326. return out;
  1327. };
  1328. var compact = function compact2(value) {
  1329. var queue = [{ obj: { o: value }, prop: "o" }];
  1330. var refs = [];
  1331. for (var i = 0; i < queue.length; ++i) {
  1332. var item = queue[i];
  1333. var obj = item.obj[item.prop];
  1334. var keys = Object.keys(obj);
  1335. for (var j = 0; j < keys.length; ++j) {
  1336. var key = keys[j];
  1337. var val = obj[key];
  1338. if (typeof val === "object" && val !== null && refs.indexOf(val) === -1) {
  1339. queue.push({ obj, prop: key });
  1340. refs.push(val);
  1341. }
  1342. }
  1343. }
  1344. compactQueue(queue);
  1345. return value;
  1346. };
  1347. var isRegExp = function isRegExp2(obj) {
  1348. return Object.prototype.toString.call(obj) === "[object RegExp]";
  1349. };
  1350. var isBuffer = function isBuffer2(obj) {
  1351. if (!obj || typeof obj !== "object") {
  1352. return false;
  1353. }
  1354. return !!(obj.constructor && obj.constructor.isBuffer && obj.constructor.isBuffer(obj));
  1355. };
  1356. var combine = function combine2(a, b) {
  1357. return [].concat(a, b);
  1358. };
  1359. var maybeMap = function maybeMap2(val, fn) {
  1360. if (isArray(val)) {
  1361. var mapped = [];
  1362. for (var i = 0; i < val.length; i += 1) {
  1363. mapped.push(fn(val[i]));
  1364. }
  1365. return mapped;
  1366. }
  1367. return fn(val);
  1368. };
  1369. module.exports = {
  1370. arrayToObject,
  1371. assign,
  1372. combine,
  1373. compact,
  1374. decode,
  1375. encode,
  1376. isBuffer,
  1377. isRegExp,
  1378. maybeMap,
  1379. merge
  1380. };
  1381. }
  1382. });
  1383. // ../../../../development/hbuildX_project/GraceUI6/node_modules/qs/lib/stringify.js
  1384. var require_stringify = __commonJS({
  1385. "../../../../development/hbuildX_project/GraceUI6/node_modules/qs/lib/stringify.js"(exports, module) {
  1386. "use strict";
  1387. init_define_process_env_UNI_STAT_TITLE_JSON();
  1388. var getSideChannel = require_side_channel();
  1389. var utils = require_utils();
  1390. var formats = require_formats();
  1391. var has = Object.prototype.hasOwnProperty;
  1392. var arrayPrefixGenerators = {
  1393. brackets: function brackets(prefix) {
  1394. return prefix + "[]";
  1395. },
  1396. comma: "comma",
  1397. indices: function indices(prefix, key) {
  1398. return prefix + "[" + key + "]";
  1399. },
  1400. repeat: function repeat(prefix) {
  1401. return prefix;
  1402. }
  1403. };
  1404. var isArray = Array.isArray;
  1405. var split = String.prototype.split;
  1406. var push = Array.prototype.push;
  1407. var pushToArray = function(arr, valueOrArray) {
  1408. push.apply(arr, isArray(valueOrArray) ? valueOrArray : [valueOrArray]);
  1409. };
  1410. var toISO = Date.prototype.toISOString;
  1411. var defaultFormat = formats["default"];
  1412. var defaults = {
  1413. addQueryPrefix: false,
  1414. allowDots: false,
  1415. charset: "utf-8",
  1416. charsetSentinel: false,
  1417. delimiter: "&",
  1418. encode: true,
  1419. encoder: utils.encode,
  1420. encodeValuesOnly: false,
  1421. format: defaultFormat,
  1422. formatter: formats.formatters[defaultFormat],
  1423. indices: false,
  1424. serializeDate: function serializeDate(date) {
  1425. return toISO.call(date);
  1426. },
  1427. skipNulls: false,
  1428. strictNullHandling: false
  1429. };
  1430. var isNonNullishPrimitive = function isNonNullishPrimitive2(v) {
  1431. return typeof v === "string" || typeof v === "number" || typeof v === "boolean" || typeof v === "symbol" || typeof v === "bigint";
  1432. };
  1433. var sentinel = {};
  1434. var stringify = function stringify2(object, prefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, sideChannel) {
  1435. var obj = object;
  1436. var tmpSc = sideChannel;
  1437. var step = 0;
  1438. var findFlag = false;
  1439. while ((tmpSc = tmpSc.get(sentinel)) !== void 0 && !findFlag) {
  1440. var pos = tmpSc.get(object);
  1441. step += 1;
  1442. if (typeof pos !== "undefined") {
  1443. if (pos === step) {
  1444. throw new RangeError("Cyclic object value");
  1445. } else {
  1446. findFlag = true;
  1447. }
  1448. }
  1449. if (typeof tmpSc.get(sentinel) === "undefined") {
  1450. step = 0;
  1451. }
  1452. }
  1453. if (typeof filter === "function") {
  1454. obj = filter(prefix, obj);
  1455. } else if (obj instanceof Date) {
  1456. obj = serializeDate(obj);
  1457. } else if (generateArrayPrefix === "comma" && isArray(obj)) {
  1458. obj = utils.maybeMap(obj, function(value2) {
  1459. if (value2 instanceof Date) {
  1460. return serializeDate(value2);
  1461. }
  1462. return value2;
  1463. });
  1464. }
  1465. if (obj === null) {
  1466. if (strictNullHandling) {
  1467. return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, "key", format) : prefix;
  1468. }
  1469. obj = "";
  1470. }
  1471. if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
  1472. if (encoder) {
  1473. var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, "key", format);
  1474. if (generateArrayPrefix === "comma" && encodeValuesOnly) {
  1475. var valuesArray = split.call(String(obj), ",");
  1476. var valuesJoined = "";
  1477. for (var i = 0; i < valuesArray.length; ++i) {
  1478. valuesJoined += (i === 0 ? "" : ",") + formatter(encoder(valuesArray[i], defaults.encoder, charset, "value", format));
  1479. }
  1480. return [formatter(keyValue) + (commaRoundTrip && isArray(obj) && valuesArray.length === 1 ? "[]" : "") + "=" + valuesJoined];
  1481. }
  1482. return [formatter(keyValue) + "=" + formatter(encoder(obj, defaults.encoder, charset, "value", format))];
  1483. }
  1484. return [formatter(prefix) + "=" + formatter(String(obj))];
  1485. }
  1486. var values = [];
  1487. if (typeof obj === "undefined") {
  1488. return values;
  1489. }
  1490. var objKeys;
  1491. if (generateArrayPrefix === "comma" && isArray(obj)) {
  1492. objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
  1493. } else if (isArray(filter)) {
  1494. objKeys = filter;
  1495. } else {
  1496. var keys = Object.keys(obj);
  1497. objKeys = sort ? keys.sort(sort) : keys;
  1498. }
  1499. var adjustedPrefix = commaRoundTrip && isArray(obj) && obj.length === 1 ? prefix + "[]" : prefix;
  1500. for (var j = 0; j < objKeys.length; ++j) {
  1501. var key = objKeys[j];
  1502. var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
  1503. if (skipNulls && value === null) {
  1504. continue;
  1505. }
  1506. var keyPrefix = isArray(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
  1507. sideChannel.set(object, step);
  1508. var valueSideChannel = getSideChannel();
  1509. valueSideChannel.set(sentinel, sideChannel);
  1510. pushToArray(values, stringify2(value, keyPrefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
  1511. }
  1512. return values;
  1513. };
  1514. var normalizeStringifyOptions = function normalizeStringifyOptions2(opts) {
  1515. if (!opts) {
  1516. return defaults;
  1517. }
  1518. if (opts.encoder !== null && typeof opts.encoder !== "undefined" && typeof opts.encoder !== "function") {
  1519. throw new TypeError("Encoder has to be a function.");
  1520. }
  1521. var charset = opts.charset || defaults.charset;
  1522. if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
  1523. throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
  1524. }
  1525. var format = formats["default"];
  1526. if (typeof opts.format !== "undefined") {
  1527. if (!has.call(formats.formatters, opts.format)) {
  1528. throw new TypeError("Unknown format option provided.");
  1529. }
  1530. format = opts.format;
  1531. }
  1532. var formatter = formats.formatters[format];
  1533. var filter = defaults.filter;
  1534. if (typeof opts.filter === "function" || isArray(opts.filter)) {
  1535. filter = opts.filter;
  1536. }
  1537. return {
  1538. addQueryPrefix: typeof opts.addQueryPrefix === "boolean" ? opts.addQueryPrefix : defaults.addQueryPrefix,
  1539. allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
  1540. charset,
  1541. charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
  1542. delimiter: typeof opts.delimiter === "undefined" ? defaults.delimiter : opts.delimiter,
  1543. encode: typeof opts.encode === "boolean" ? opts.encode : defaults.encode,
  1544. encoder: typeof opts.encoder === "function" ? opts.encoder : defaults.encoder,
  1545. encodeValuesOnly: typeof opts.encodeValuesOnly === "boolean" ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
  1546. filter,
  1547. format,
  1548. formatter,
  1549. serializeDate: typeof opts.serializeDate === "function" ? opts.serializeDate : defaults.serializeDate,
  1550. skipNulls: typeof opts.skipNulls === "boolean" ? opts.skipNulls : defaults.skipNulls,
  1551. sort: typeof opts.sort === "function" ? opts.sort : null,
  1552. strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
  1553. };
  1554. };
  1555. module.exports = function(object, opts) {
  1556. var obj = object;
  1557. var options = normalizeStringifyOptions(opts);
  1558. var objKeys;
  1559. var filter;
  1560. if (typeof options.filter === "function") {
  1561. filter = options.filter;
  1562. obj = filter("", obj);
  1563. } else if (isArray(options.filter)) {
  1564. filter = options.filter;
  1565. objKeys = filter;
  1566. }
  1567. var keys = [];
  1568. if (typeof obj !== "object" || obj === null) {
  1569. return "";
  1570. }
  1571. var arrayFormat;
  1572. if (opts && opts.arrayFormat in arrayPrefixGenerators) {
  1573. arrayFormat = opts.arrayFormat;
  1574. } else if (opts && "indices" in opts) {
  1575. arrayFormat = opts.indices ? "indices" : "repeat";
  1576. } else {
  1577. arrayFormat = "indices";
  1578. }
  1579. var generateArrayPrefix = arrayPrefixGenerators[arrayFormat];
  1580. if (opts && "commaRoundTrip" in opts && typeof opts.commaRoundTrip !== "boolean") {
  1581. throw new TypeError("`commaRoundTrip` must be a boolean, or absent");
  1582. }
  1583. var commaRoundTrip = generateArrayPrefix === "comma" && opts && opts.commaRoundTrip;
  1584. if (!objKeys) {
  1585. objKeys = Object.keys(obj);
  1586. }
  1587. if (options.sort) {
  1588. objKeys.sort(options.sort);
  1589. }
  1590. var sideChannel = getSideChannel();
  1591. for (var i = 0; i < objKeys.length; ++i) {
  1592. var key = objKeys[i];
  1593. if (options.skipNulls && obj[key] === null) {
  1594. continue;
  1595. }
  1596. pushToArray(keys, stringify(obj[key], key, generateArrayPrefix, commaRoundTrip, options.strictNullHandling, options.skipNulls, options.encode ? options.encoder : null, options.filter, options.sort, options.allowDots, options.serializeDate, options.format, options.formatter, options.encodeValuesOnly, options.charset, sideChannel));
  1597. }
  1598. var joined = keys.join(options.delimiter);
  1599. var prefix = options.addQueryPrefix === true ? "?" : "";
  1600. if (options.charsetSentinel) {
  1601. if (options.charset === "iso-8859-1") {
  1602. prefix += "utf8=%26%2310003%3B&";
  1603. } else {
  1604. prefix += "utf8=%E2%9C%93&";
  1605. }
  1606. }
  1607. return joined.length > 0 ? prefix + joined : "";
  1608. };
  1609. }
  1610. });
  1611. // ../../../../development/hbuildX_project/GraceUI6/node_modules/qs/lib/parse.js
  1612. var require_parse = __commonJS({
  1613. "../../../../development/hbuildX_project/GraceUI6/node_modules/qs/lib/parse.js"(exports, module) {
  1614. "use strict";
  1615. init_define_process_env_UNI_STAT_TITLE_JSON();
  1616. var utils = require_utils();
  1617. var has = Object.prototype.hasOwnProperty;
  1618. var isArray = Array.isArray;
  1619. var defaults = {
  1620. allowDots: false,
  1621. allowPrototypes: false,
  1622. allowSparse: false,
  1623. arrayLimit: 20,
  1624. charset: "utf-8",
  1625. charsetSentinel: false,
  1626. comma: false,
  1627. decoder: utils.decode,
  1628. delimiter: "&",
  1629. depth: 5,
  1630. ignoreQueryPrefix: false,
  1631. interpretNumericEntities: false,
  1632. parameterLimit: 1e3,
  1633. parseArrays: true,
  1634. plainObjects: false,
  1635. strictNullHandling: false
  1636. };
  1637. var interpretNumericEntities = function(str) {
  1638. return str.replace(/&#(\d+);/g, function($0, numberStr) {
  1639. return String.fromCharCode(parseInt(numberStr, 10));
  1640. });
  1641. };
  1642. var parseArrayValue = function(val, options) {
  1643. if (val && typeof val === "string" && options.comma && val.indexOf(",") > -1) {
  1644. return val.split(",");
  1645. }
  1646. return val;
  1647. };
  1648. var isoSentinel = "utf8=%26%2310003%3B";
  1649. var charsetSentinel = "utf8=%E2%9C%93";
  1650. var parseValues = function parseQueryStringValues(str, options) {
  1651. var obj = {};
  1652. var cleanStr = options.ignoreQueryPrefix ? str.replace(/^\?/, "") : str;
  1653. var limit = options.parameterLimit === Infinity ? void 0 : options.parameterLimit;
  1654. var parts = cleanStr.split(options.delimiter, limit);
  1655. var skipIndex = -1;
  1656. var i;
  1657. var charset = options.charset;
  1658. if (options.charsetSentinel) {
  1659. for (i = 0; i < parts.length; ++i) {
  1660. if (parts[i].indexOf("utf8=") === 0) {
  1661. if (parts[i] === charsetSentinel) {
  1662. charset = "utf-8";
  1663. } else if (parts[i] === isoSentinel) {
  1664. charset = "iso-8859-1";
  1665. }
  1666. skipIndex = i;
  1667. i = parts.length;
  1668. }
  1669. }
  1670. }
  1671. for (i = 0; i < parts.length; ++i) {
  1672. if (i === skipIndex) {
  1673. continue;
  1674. }
  1675. var part = parts[i];
  1676. var bracketEqualsPos = part.indexOf("]=");
  1677. var pos = bracketEqualsPos === -1 ? part.indexOf("=") : bracketEqualsPos + 1;
  1678. var key, val;
  1679. if (pos === -1) {
  1680. key = options.decoder(part, defaults.decoder, charset, "key");
  1681. val = options.strictNullHandling ? null : "";
  1682. } else {
  1683. key = options.decoder(part.slice(0, pos), defaults.decoder, charset, "key");
  1684. val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options), function(encodedVal) {
  1685. return options.decoder(encodedVal, defaults.decoder, charset, "value");
  1686. });
  1687. }
  1688. if (val && options.interpretNumericEntities && charset === "iso-8859-1") {
  1689. val = interpretNumericEntities(val);
  1690. }
  1691. if (part.indexOf("[]=") > -1) {
  1692. val = isArray(val) ? [val] : val;
  1693. }
  1694. if (has.call(obj, key)) {
  1695. obj[key] = utils.combine(obj[key], val);
  1696. } else {
  1697. obj[key] = val;
  1698. }
  1699. }
  1700. return obj;
  1701. };
  1702. var parseObject = function(chain, val, options, valuesParsed) {
  1703. var leaf = valuesParsed ? val : parseArrayValue(val, options);
  1704. for (var i = chain.length - 1; i >= 0; --i) {
  1705. var obj;
  1706. var root = chain[i];
  1707. if (root === "[]" && options.parseArrays) {
  1708. obj = [].concat(leaf);
  1709. } else {
  1710. obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  1711. var cleanRoot = root.charAt(0) === "[" && root.charAt(root.length - 1) === "]" ? root.slice(1, -1) : root;
  1712. var index = parseInt(cleanRoot, 10);
  1713. if (!options.parseArrays && cleanRoot === "") {
  1714. obj = { 0: leaf };
  1715. } else if (!isNaN(index) && root !== cleanRoot && String(index) === cleanRoot && index >= 0 && (options.parseArrays && index <= options.arrayLimit)) {
  1716. obj = [];
  1717. obj[index] = leaf;
  1718. } else if (cleanRoot !== "__proto__") {
  1719. obj[cleanRoot] = leaf;
  1720. }
  1721. }
  1722. leaf = obj;
  1723. }
  1724. return leaf;
  1725. };
  1726. var parseKeys = function parseQueryStringKeys(givenKey, val, options, valuesParsed) {
  1727. if (!givenKey) {
  1728. return;
  1729. }
  1730. var key = options.allowDots ? givenKey.replace(/\.([^.[]+)/g, "[$1]") : givenKey;
  1731. var brackets = /(\[[^[\]]*])/;
  1732. var child = /(\[[^[\]]*])/g;
  1733. var segment = options.depth > 0 && brackets.exec(key);
  1734. var parent = segment ? key.slice(0, segment.index) : key;
  1735. var keys = [];
  1736. if (parent) {
  1737. if (!options.plainObjects && has.call(Object.prototype, parent)) {
  1738. if (!options.allowPrototypes) {
  1739. return;
  1740. }
  1741. }
  1742. keys.push(parent);
  1743. }
  1744. var i = 0;
  1745. while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
  1746. i += 1;
  1747. if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
  1748. if (!options.allowPrototypes) {
  1749. return;
  1750. }
  1751. }
  1752. keys.push(segment[1]);
  1753. }
  1754. if (segment) {
  1755. keys.push("[" + key.slice(segment.index) + "]");
  1756. }
  1757. return parseObject(keys, val, options, valuesParsed);
  1758. };
  1759. var normalizeParseOptions = function normalizeParseOptions2(opts) {
  1760. if (!opts) {
  1761. return defaults;
  1762. }
  1763. if (opts.decoder !== null && opts.decoder !== void 0 && typeof opts.decoder !== "function") {
  1764. throw new TypeError("Decoder has to be a function.");
  1765. }
  1766. if (typeof opts.charset !== "undefined" && opts.charset !== "utf-8" && opts.charset !== "iso-8859-1") {
  1767. throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");
  1768. }
  1769. var charset = typeof opts.charset === "undefined" ? defaults.charset : opts.charset;
  1770. return {
  1771. allowDots: typeof opts.allowDots === "undefined" ? defaults.allowDots : !!opts.allowDots,
  1772. allowPrototypes: typeof opts.allowPrototypes === "boolean" ? opts.allowPrototypes : defaults.allowPrototypes,
  1773. allowSparse: typeof opts.allowSparse === "boolean" ? opts.allowSparse : defaults.allowSparse,
  1774. arrayLimit: typeof opts.arrayLimit === "number" ? opts.arrayLimit : defaults.arrayLimit,
  1775. charset,
  1776. charsetSentinel: typeof opts.charsetSentinel === "boolean" ? opts.charsetSentinel : defaults.charsetSentinel,
  1777. comma: typeof opts.comma === "boolean" ? opts.comma : defaults.comma,
  1778. decoder: typeof opts.decoder === "function" ? opts.decoder : defaults.decoder,
  1779. delimiter: typeof opts.delimiter === "string" || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
  1780. depth: typeof opts.depth === "number" || opts.depth === false ? +opts.depth : defaults.depth,
  1781. ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
  1782. interpretNumericEntities: typeof opts.interpretNumericEntities === "boolean" ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
  1783. parameterLimit: typeof opts.parameterLimit === "number" ? opts.parameterLimit : defaults.parameterLimit,
  1784. parseArrays: opts.parseArrays !== false,
  1785. plainObjects: typeof opts.plainObjects === "boolean" ? opts.plainObjects : defaults.plainObjects,
  1786. strictNullHandling: typeof opts.strictNullHandling === "boolean" ? opts.strictNullHandling : defaults.strictNullHandling
  1787. };
  1788. };
  1789. module.exports = function(str, opts) {
  1790. var options = normalizeParseOptions(opts);
  1791. if (str === "" || str === null || typeof str === "undefined") {
  1792. return options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  1793. }
  1794. var tempObj = typeof str === "string" ? parseValues(str, options) : str;
  1795. var obj = options.plainObjects ? /* @__PURE__ */ Object.create(null) : {};
  1796. var keys = Object.keys(tempObj);
  1797. for (var i = 0; i < keys.length; ++i) {
  1798. var key = keys[i];
  1799. var newObj = parseKeys(key, tempObj[key], options, typeof str === "string");
  1800. obj = utils.merge(obj, newObj, options);
  1801. }
  1802. if (options.allowSparse === true) {
  1803. return obj;
  1804. }
  1805. return utils.compact(obj);
  1806. };
  1807. }
  1808. });
  1809. // ../../../../development/hbuildX_project/GraceUI6/node_modules/qs/lib/index.js
  1810. var require_lib = __commonJS({
  1811. "../../../../development/hbuildX_project/GraceUI6/node_modules/qs/lib/index.js"(exports, module) {
  1812. "use strict";
  1813. init_define_process_env_UNI_STAT_TITLE_JSON();
  1814. var stringify = require_stringify();
  1815. var parse = require_parse();
  1816. var formats = require_formats();
  1817. module.exports = {
  1818. formats,
  1819. parse,
  1820. stringify
  1821. };
  1822. }
  1823. });
  1824. // dep:@gowiny_uni-router
  1825. init_define_process_env_UNI_STAT_TITLE_JSON();
  1826. // ../../../../development/hbuildX_project/GraceUI6/node_modules/@gowiny/uni-router/dist/index.esm.js
  1827. init_define_process_env_UNI_STAT_TITLE_JSON();
  1828. // ../../../../development/hbuildX_project/GraceUI6/node_modules/@gowiny/js-utils/dist/index.esm.js
  1829. init_define_process_env_UNI_STAT_TITLE_JSON();
  1830. function isString(val) {
  1831. return typeof val === "string";
  1832. }
  1833. function isNumber(val) {
  1834. return typeof val === "number";
  1835. }
  1836. function isObject(val) {
  1837. return typeof val === "object";
  1838. }
  1839. async function queueInvoke(fns, target, args, assert) {
  1840. if (!fns) {
  1841. return;
  1842. }
  1843. if (Array.isArray(fns)) {
  1844. const len = fns.length;
  1845. let result;
  1846. for (let i = 0; i < len; i++) {
  1847. const item = fns[i];
  1848. result = await item.apply(target, args);
  1849. if (assert && !await assert(result)) {
  1850. return result;
  1851. }
  1852. }
  1853. return result;
  1854. } else {
  1855. return fns.apply(target, args);
  1856. }
  1857. }
  1858. function invoke(fns, target, args) {
  1859. if (!fns) {
  1860. return;
  1861. }
  1862. let result;
  1863. if (Array.isArray(fns)) {
  1864. for (let i = 0; i < fns.length; i++) {
  1865. const item = fns[i];
  1866. result = item.apply(target, args);
  1867. }
  1868. } else {
  1869. result = fns.apply(target, args);
  1870. }
  1871. return result;
  1872. }
  1873. // ../../../../development/hbuildX_project/GraceUI6/node_modules/@gowiny/uni-router/dist/index.esm.js
  1874. var import_qs = __toESM(require_lib());
  1875. var UniLifecycleHooks = { INIT: "onInit", LOAD: "onLoad", SHOW: "onShow", READY: "onReady" };
  1876. var StaticContext = { navLock: false, beforeEachLock: false, firstRequestState: "not", firstRequestListeners: [], handleFirstRequestResult(t) {
  1877. StaticContext.firstRequestListeners.forEach((e) => {
  1878. e.success(t);
  1879. }), StaticContext.firstRequestListeners = [];
  1880. }, app: void 0, route: void 0, toRoute: void 0, fromRoute: void 0, router: void 0 };
  1881. function getRouteByPage(t) {
  1882. let e = t.route || "";
  1883. e.startsWith("/") || (e = "/" + e);
  1884. return { fullPath: e, path: e };
  1885. }
  1886. function warn(t, ...e) {
  1887. const o = t.options.debugger;
  1888. o && (o === true || o.info) && console.warn(...e);
  1889. }
  1890. function getCurrentPagePath() {
  1891. const t = getCurrentPage();
  1892. return t && t.route ? "/" + t.route : void 0;
  1893. }
  1894. function getCurrentPage() {
  1895. const t = getCurrentPages();
  1896. return t.length > 0 ? t[t.length - 1] : void 0;
  1897. }
  1898. function getRouteByPath(t, e, o, a) {
  1899. a = a || formatFullPath(e, o);
  1900. const r = e.replace(/^\//, ""), n = t.routeMap.pathMap[r];
  1901. let i;
  1902. return i = n ? __spreadProps(__spreadValues({}, n), { fullPath: a, path: e, query: o }) : { fullPath: a, path: e, query: o }, i;
  1903. }
  1904. function getRouteByUrl(t, e) {
  1905. const o = t.indexOf("?");
  1906. let a, r;
  1907. o > -1 ? (r = t.substring(0, o), a = t.substring(o + 1)) : (r = t, a = "");
  1908. const n = a ? import_qs.default.parse(a) : {}, i = r.replace(/^\//, ""), c = e.routeMap.pathMap[i];
  1909. let u;
  1910. return u = c ? __spreadProps(__spreadValues({}, c), { fullPath: t, path: r, query: n }) : { fullPath: t, path: r, query: n }, u;
  1911. }
  1912. function formatFullPath(t, e) {
  1913. const o = import_qs.default.stringify(e);
  1914. return o ? `${t}?${o}` : t;
  1915. }
  1916. function lockNavjump(t, e, o, a = false) {
  1917. const r = {};
  1918. if (isString(t))
  1919. r.url = t;
  1920. else {
  1921. const o2 = t;
  1922. let a2, n2 = o2.query;
  1923. if (o2.name) {
  1924. a2 = e.routeMap.nameMap[o2.name].path;
  1925. } else
  1926. a2 = o2.path, n2 = o2.query;
  1927. const i = formatFullPath(a2, n2), c = __spreadValues({}, o2);
  1928. delete c.name, delete c.path, delete c.query, Object.assign(r, c), r.url = i;
  1929. }
  1930. let n;
  1931. switch (r.$force = a, o) {
  1932. case "push":
  1933. n = uni.navigateTo(r);
  1934. break;
  1935. case "replace":
  1936. n = uni.redirectTo(r);
  1937. break;
  1938. case "pushTab":
  1939. n = uni.switchTab(r);
  1940. break;
  1941. case "replaceAll":
  1942. n = uni.reLaunch(r);
  1943. break;
  1944. default:
  1945. throw new Error("\u8DEF\u7531\u7C7B\u578B\u4E0D\u6B63\u786E");
  1946. }
  1947. return n;
  1948. }
  1949. function appendPages(t, e, o) {
  1950. o.forEach((o2) => {
  1951. const a = o2.path, r = a.startsWith("/") ? a : "/" + a, n = __spreadProps(__spreadValues({}, o2), { path: r });
  1952. e[r] = n, t.push(n);
  1953. });
  1954. }
  1955. function parseRoutesFromPages({ pages: t, subPackages: e = [] }) {
  1956. const o = [], a = {};
  1957. return appendPages(o, a, t), e.forEach((t2) => {
  1958. appendPages(o, a, t2.pages);
  1959. }), o;
  1960. }
  1961. async function callEachHooks(t, e, o, a) {
  1962. let r = t.lifeCycleHooks[e];
  1963. return await queueInvoke(r, null, [o, a], (t2) => t2 !== false && !isObject(t2));
  1964. }
  1965. async function invokeAfterEach(t, e, o) {
  1966. return await callEachHooks(t, "ae", e, o);
  1967. }
  1968. async function invokeBeforeEach(t, e, o) {
  1969. StaticContext.beforeEachLock = true;
  1970. try {
  1971. const a = await callEachHooks(t, "be", e, o);
  1972. if (a === true || a == null)
  1973. return true;
  1974. if (a !== false) {
  1975. let e2, o2 = "push";
  1976. if (isString(a))
  1977. e2 = { path: a }, o2 = "push";
  1978. else if (isObject(a)) {
  1979. const t2 = a;
  1980. e2 = t2.to, o2 = t2.navType;
  1981. }
  1982. e2 && lockNavjump(e2, t, o2, true);
  1983. }
  1984. return false;
  1985. } finally {
  1986. StaticContext.beforeEachLock = false;
  1987. }
  1988. }
  1989. var IS_WAPPED = false;
  1990. var oldMethods = { navigateTo: uni.navigateTo, redirectTo: uni.redirectTo, reLaunch: uni.reLaunch, switchTab: uni.switchTab, navigateBack: uni.navigateBack };
  1991. function callOldMethod(t, e) {
  1992. const o = oldMethods[t];
  1993. o && o(e);
  1994. }
  1995. function callNavError(t, e, o) {
  1996. e.fail && e.fail(o), e.complete && e.complete(), t && (StaticContext.navLock = false);
  1997. }
  1998. function callNavSuccess(t, e) {
  1999. callOldMethod(t, __spreadProps(__spreadValues({}, e), { async success(...t2) {
  2000. try {
  2001. e.success && await e.success(...t2);
  2002. } finally {
  2003. StaticContext.route = StaticContext.toRoute, StaticContext.lastFullPath = StaticContext.route ? StaticContext.route.fullPath : void 0, StaticContext.router && StaticContext.toRoute && (StaticContext.router.route = StaticContext.route, await invokeAfterEach(StaticContext.router, StaticContext.toRoute, StaticContext.fromRoute)), StaticContext.navLock = false;
  2004. }
  2005. }, async fail(...t2) {
  2006. try {
  2007. console.error(t2 && t2[0] ? t2[0].errMsg : ""), e.fail && await e.fail(...t2);
  2008. } finally {
  2009. StaticContext.navLock = false;
  2010. }
  2011. }, complete(...t2) {
  2012. e.complete && e.complete(...t2);
  2013. } }));
  2014. }
  2015. function createWapper(t) {
  2016. return async function(e) {
  2017. if ((StaticContext.navLock || StaticContext.beforeEachLock) && !e.$force)
  2018. return StaticContext.router && warn(StaticContext.router, "\u5F53\u524D\u9875\u9762\u6B63\u5728\u5904\u4E8E\u8DF3\u8F6C\u72B6\u6001\uFF0C\u8BF7\u7A0D\u540E\u518D\u8FDB\u884C\u8DF3\u8F6C...."), callNavError(false, e, "\u5F53\u524D\u9875\u9762\u6B63\u5728\u5904\u4E8E\u8DF3\u8F6C\u72B6\u6001\uFF0C\u8BF7\u7A0D\u540E\u518D\u8FDB\u884C\u8DF3\u8F6C....");
  2019. StaticContext.navLock = true;
  2020. try {
  2021. if (!StaticContext.router)
  2022. return callNavSuccess(t, e);
  2023. const o = StaticContext.router;
  2024. let a;
  2025. if (t == "navigateBack") {
  2026. const t2 = isNumber(e.delta) ? e.delta : 1, r2 = getCurrentPages(), n = r2.length - t2 - 1;
  2027. a = n < 0 ? getRouteByUrl(o.indexRouteRule.path, o) : getRouteByPage(r2[n]);
  2028. } else {
  2029. a = getRouteByUrl(e.url, o);
  2030. }
  2031. const r = StaticContext.route;
  2032. StaticContext.toRoute = a, StaticContext.fromRoute = r, StaticContext.destFullPath = a.fullPath;
  2033. return await invokeBeforeEach(o, a, r) ? callNavSuccess(t, e) : callNavError(true, e, "\u8DEF\u7531\u5B88\u536B\u62E6\u622A");
  2034. } catch (t2) {
  2035. return callNavError(true, e, t2);
  2036. }
  2037. };
  2038. }
  2039. function addNavInterceptor() {
  2040. IS_WAPPED || (IS_WAPPED = true, uni.navigateTo = createWapper("navigateTo"), uni.redirectTo = createWapper("redirectTo"), uni.reLaunch = createWapper("reLaunch"), uni.switchTab = createWapper("switchTab"), uni.navigateBack = createWapper("navigateBack"));
  2041. }
  2042. var DEFAULT_PROXY_METHODS = [UniLifecycleHooks.INIT, UniLifecycleHooks.LOAD, UniLifecycleHooks.SHOW, UniLifecycleHooks.READY];
  2043. function getRouterData(t) {
  2044. return t.__routerData || (t.__routerData = {}), t.__routerData;
  2045. }
  2046. function getOriHookDataMap(t) {
  2047. const e = getRouterData(t);
  2048. return e.oriHookDataMap || (e.oriHookDataMap = {}), e.oriHookDataMap;
  2049. }
  2050. function getOriHookData(t, e) {
  2051. const o = getOriHookDataMap(t);
  2052. let a = o[e];
  2053. return a || (a = { oldVal: [] }, o[e] = a), a;
  2054. }
  2055. function invokeOriMethod(t, e, o) {
  2056. const a = (getRouterData(e).oldMethods || {})[t];
  2057. if (a)
  2058. return a.apply(e, o);
  2059. }
  2060. function invokeOriHooks(t, e, o) {
  2061. const a = getOriHookData(e, t);
  2062. invoke(a.oldVal, e, o);
  2063. }
  2064. function saveOriRoute(t, e) {
  2065. getRouterData(t).oriRoute = e;
  2066. }
  2067. function getOriRoute(t) {
  2068. const e = getRouterData(t);
  2069. return e.oriRoute || (e.oriRoute = {}), e.oriRoute;
  2070. }
  2071. function saveCurrRouteByCurrPage(t, e, o = {}) {
  2072. const a = getCurrentPage();
  2073. if (!a || !a.route)
  2074. return;
  2075. const r = "/" + a.route;
  2076. saveOriRoute(e, { path: r, query: o });
  2077. const n = getRouteByPath(t, r, o);
  2078. t.route = n;
  2079. }
  2080. function wapperMethod(t, e, o, a) {
  2081. return wapperFun(t, "method", e, o, a, invokeOriMethod);
  2082. }
  2083. async function wapperFun(t, e, o, a, r, n) {
  2084. const i = getRouterData(o);
  2085. if ((i.hookLock || false) === true) {
  2086. i.hookListeners || (i.hookListeners = []);
  2087. const t2 = new Promise((t3, e3) => {
  2088. i.hookListeners.push({ success: t3, fail: e3 });
  2089. });
  2090. let e2;
  2091. return await t2 && (e2 = n(a, o, r)), e2;
  2092. }
  2093. let c;
  2094. i.hookLock = true;
  2095. try {
  2096. const u = getCurrentPagePath();
  2097. let s;
  2098. e !== "hook" || UniLifecycleHooks.INIT != a && UniLifecycleHooks.LOAD != a ? s = getOriRoute(o).query || {} : (s = r[0] || {}, saveOriRoute(o, { path: u, query: s }));
  2099. let l = true;
  2100. if (u) {
  2101. const e2 = formatFullPath(u, s);
  2102. if (StaticContext.destFullPath != e2) {
  2103. const o2 = getRouteByPath(t, u, s, e2), a2 = StaticContext.route;
  2104. StaticContext.toRoute = o2, StaticContext.fromRoute = a2, l = await invokeBeforeEach(t, o2, a2), l && (StaticContext.route = o2, t.route = o2, StaticContext.lastFullPath = e2, await invokeAfterEach(t, o2, a2));
  2105. }
  2106. }
  2107. if (l && (c = n(a, o, r)), i.hookListeners) {
  2108. const t2 = i.hookListeners;
  2109. for (let e2 = 0; e2 < t2.length; e2++) {
  2110. t2[e2].success(l);
  2111. }
  2112. i.hookListeners = [];
  2113. }
  2114. } catch (t2) {
  2115. if (i.hookListeners) {
  2116. const e2 = i.hookListeners;
  2117. for (let o2 = 0; o2 < e2.length; o2++) {
  2118. e2[o2].fail(t2);
  2119. }
  2120. i.hookListeners = [];
  2121. }
  2122. }
  2123. return i.hookLock = false, c;
  2124. }
  2125. function wapperHook(t, e, o, a) {
  2126. return wapperFun(t, "hook", e, o, a, invokeOriHooks);
  2127. }
  2128. function wapperUniHooks(t, e, o) {
  2129. return function(...a) {
  2130. wapperHook(t, e, o, a);
  2131. };
  2132. }
  2133. function appendRoutes(t, e, o = "", a) {
  2134. if (!a || a.length == 0)
  2135. return;
  2136. const r = e.pathMap, n = e.nameMap;
  2137. a.forEach((a2) => {
  2138. const { alias: i, path: c, name: u } = a2;
  2139. if (c == null)
  2140. throw new Error(`\u8BF7\u63D0\u4F9B\u4E00\u4E2A\u5B8C\u6574\u7684\u8DEF\u7531\u5BF9\u8C61\uFF0C\u5305\u62EC\u4EE5\u7EDD\u5BF9\u8DEF\u5F84\u5F00\u59CB\u7684 \u2018path\u2019 \u5B57\u7B26\u4E32 ${JSON.stringify(a2)}`);
  2141. if (r[o + c] = a2, u && (n[u] = a2), i)
  2142. if (Array.isArray(i))
  2143. i.forEach((t2) => {
  2144. r[o + t2] = a2;
  2145. });
  2146. else {
  2147. r[o + i] = a2;
  2148. }
  2149. appendRoutes(t, e, a2.path, a2.children);
  2150. });
  2151. }
  2152. function createRouteMap(t, e) {
  2153. const o = { pathMap: /* @__PURE__ */ Object.create(null), nameMap: /* @__PURE__ */ Object.create(null) };
  2154. return appendRoutes(t, o, "", e), o;
  2155. }
  2156. function registerEachHooks(t, e, o) {
  2157. let a = t.lifeCycleHooks[e];
  2158. a || (a = [], t.lifeCycleHooks[e] = a), a.push(o);
  2159. }
  2160. function isPageHook(t) {
  2161. return t.$mpType === "page";
  2162. }
  2163. var RouterImpl = class {
  2164. constructor(t) {
  2165. __publicField(this, "proxyMode");
  2166. __publicField(this, "proxyMethods");
  2167. __publicField(this, "routes");
  2168. __publicField(this, "indexRouteRule");
  2169. __publicField(this, "lifeCycleHooks", {});
  2170. __publicField(this, "$locked", false);
  2171. __publicField(this, "options");
  2172. __publicField(this, "routeMap");
  2173. __publicField(this, "route");
  2174. this.options = t, this.proxyMode = t.proxyMode || "hook", this.proxyMethods = t.proxyMethods || DEFAULT_PROXY_METHODS, this.routes = parseRoutesFromPages(t.pageData), this.indexRouteRule = this.routes[0], this.routeMap = createRouteMap(this, this.routes);
  2175. }
  2176. setupRouter(t) {
  2177. t.use(this);
  2178. }
  2179. push(t) {
  2180. return lockNavjump(t, this, "push");
  2181. }
  2182. replace(t) {
  2183. return lockNavjump(t, this, "replace");
  2184. }
  2185. replaceAll(t) {
  2186. return lockNavjump(t, this, "replaceAll");
  2187. }
  2188. pushTab(t) {
  2189. return lockNavjump(t, this, "pushTab");
  2190. }
  2191. back(...t) {
  2192. return uni.navigateBack(...t);
  2193. }
  2194. beforeEach(t) {
  2195. registerEachHooks(this, "be", t);
  2196. }
  2197. afterEach(t) {
  2198. registerEachHooks(this, "ae", t);
  2199. }
  2200. async install(t, ...e) {
  2201. const o = this;
  2202. let a;
  2203. StaticContext.app = t, StaticContext.router = o, Object.defineProperty(t.config.globalProperties, "$Router", { get: () => o }), Object.defineProperty(t.config.globalProperties, "$Route", { get: () => o.route }), o.proxyMode === "hook" ? a = { beforeCreate() {
  2204. if (!isPageHook(this))
  2205. return;
  2206. const t2 = this;
  2207. o.proxyMethods.forEach((e2) => {
  2208. const a2 = getOriHookData(t2, e2), r = t2.$[e2] || [], n = Array.isArray(r) ? r : [r];
  2209. a2.oldVal = n, a2.wapper = wapperUniHooks(o, t2, e2);
  2210. const i = [a2.wapper], c = i;
  2211. i.push = function(...t3) {
  2212. return a2.oldVal.push(...t3), i.length;
  2213. }, i.pop = function() {
  2214. return a2.oldVal.pop();
  2215. }, i.shift = function() {
  2216. return a2.oldVal.shift();
  2217. }, i.unshift = function(...t3) {
  2218. return a2.oldVal.unshift(...t3), i.length;
  2219. }, c.splice = function(...t3) {
  2220. return a2.oldVal.splice(...t3);
  2221. }, i.reverse = function() {
  2222. return a2.oldVal.reverse();
  2223. }, i.sort = function() {
  2224. return a2.oldVal.sort();
  2225. }, a2.newVal = i, Object.defineProperty(t2.$, e2, { get: () => a2.newVal, set(t3) {
  2226. t3 !== a2.newVal && t3 !== a2.wapper && (t3 ? Array.isArray(t3) ? t3.indexOf(a2.wapper) > -1 ? t3.length > 1 && t3.forEach((t4) => {
  2227. t4 !== a2.wapper && a2.oldVal.push(t4);
  2228. }) : a2.oldVal = t3 : a2.oldVal = [t3] : a2.oldVal = []);
  2229. } });
  2230. });
  2231. } } : o.proxyMode === "method" && (a = { created() {
  2232. if (!isPageHook(this))
  2233. return;
  2234. const t2 = this, e2 = getRouterData(t2), a2 = {};
  2235. e2.oldMethods = a2, o.proxyMethods.forEach((e3) => {
  2236. const r = t2[e3];
  2237. r ? (a2[e3] = r, t2[e3] = (...a3) => wapperMethod(o, t2, e3, a3)) : console.warn(`\u6B64\u9875\u9762\u6CA1\u6709\u65B9\u6CD5:${e3}`);
  2238. });
  2239. }, onInit(t2) {
  2240. isPageHook(this) && saveCurrRouteByCurrPage(o, this, t2);
  2241. }, onLoad(t2) {
  2242. isPageHook(this) && saveCurrRouteByCurrPage(o, this, t2);
  2243. } }), a && t.mixin(a), addNavInterceptor();
  2244. }
  2245. };
  2246. function createRouter(t) {
  2247. return new RouterImpl(t);
  2248. }
  2249. export {
  2250. UniLifecycleHooks,
  2251. createRouter
  2252. };
  2253. /**
  2254. * gowiny-js-utils v1.0.7
  2255. * https://gitee.com/gowiny/js-utils
  2256. *
  2257. * (c) 2022-present gowiny
  2258. * @license MIT
  2259. *
  2260. * Date: 2022-03-24T10:27:26Z
  2261. */
  2262. /**
  2263. * gowiny-uni-router v1.0.14
  2264. * https://gitee.com/gowiny/uni-router
  2265. *
  2266. * (c) 2022-present gowiny
  2267. * @license MIT
  2268. *
  2269. * Date: 2022-12-13T04:48:06Z
  2270. */
  2271. //# sourceMappingURL=@gowiny_uni-router.js.map