mirror of
https://github.com/pezkuwichain/pezkuwi-mobile-app.git
synced 2026-05-30 07:41:01 +00:00
1 line
9.2 KiB
Plaintext
1 line
9.2 KiB
Plaintext
{"dependencies":[{"name":"nanoid/non-secure","data":{"asyncType":null,"isESMImport":true,"locs":[{"start":{"line":3,"column":0,"index":15},"end":{"line":3,"column":43,"index":58}}],"key":"SN8WVal79eAEDQEpzmVqVAy5JJs=","exportNames":["*"]}}],"output":[{"data":{"code":"__d(function(g,r,_i,a,m,e,d){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.createMemoryHistory=function(){let n=0,i=[];const o=[],s=()=>{o.forEach(t=>{const n=t.cb;t.cb=()=>n(!0)})};return{get index(){const t=window.history.state?.id;if(t){const n=i.findIndex(n=>n.id===t);return n>-1?n:0}return 0},get:t=>i[t],backIndex({path:t}){for(let o=n-1;o>=0;o--){if(i[o].path===t)return o}return-1},push({path:o,state:c}){s();const h=(0,t.nanoid)();i=i.slice(0,n+1),i.push({path:o,state:c,id:h}),n=i.length-1,window.history.pushState({id:h},'',o)},replace({path:o,state:c}){s();const h=window.history.state?.id??(0,t.nanoid)();let w=o;const p=w.includes('#')?'':location.hash;!i.length||i.findIndex(t=>t.id===h)<0?(w+=p,i=[{path:w,state:c,id:h}],n=0):(i[n].path===o&&(w+=p),i[n]={path:o,state:c,id:h}),window.history.replaceState({id:h},'',w)},go(t){s();const c=n+t,h=i.length-1;if(t<0&&!i[c]?(t=-n,n=0):t>0&&c>h?(t=h-n,n=h):n=c,0!==t)return new Promise((i,s)=>{const c=t=>{if(clearTimeout(h),t)return void s(new Error('History was changed during navigation.'));const{title:n}=window.document;window.document.title='',window.document.title=n,i()};o.push({ref:c,cb:c});const h=setTimeout(()=>{const t=o.findIndex(t=>t.ref===c);t>-1&&(o[t].cb(),o.splice(t,1)),n=this.index},100),w=()=>{n=this.index;const t=o.pop();window.removeEventListener('popstate',w),t?.cb()};window.addEventListener('popstate',w),window.history.go(t)})},listen(t){const i=()=>{n=this.index,o.length||t()};return window.addEventListener('popstate',i),()=>window.removeEventListener('popstate',i)}}};var t=r(d[0])});","lineCount":1,"map":[[1,29,1,0],[1,42,1,13,"Object"],[1,49,1,13,"defineProperty"],[1,64,1,13,"e"],[1,66,1,13],[1,80,1,13,"value"],[1,87,1,13],[1,91,1,13,"e"],[1,93,1,13,"createMemoryHistory"],[1,113,4,7],[1,124,5,2],[1,128,5,6,"index"],[1,130,5,14],[1,132,6,6,"items"],[1,134,6,14],[1,137,10,2],[1,143,10,8,"pending"],[1,145,10,18],[1,148,11,8,"interrupt"],[1,150,11,20,"interrupt"],[1,155,15,4,"pending"],[1,157,15,12,"forEach"],[1,165,15,20,"it"],[1,169,16,6],[1,175,16,12,"cb"],[1,177,16,17,"it"],[1,179,16,20,"cb"],[1,182,17,6,"it"],[1,184,17,9,"cb"],[1,187,17,14],[1,191,17,20,"cb"],[1,194,17,23],[1,200,214,2],[1,206,20,18],[1,207,21,4],[1,216,21,8,"index"],[1,219,24,6],[1,225,24,12,"id"],[1,227,24,17,"window"],[1,234,24,24,"history"],[1,242,24,32,"state"],[1,249,24,39,"id"],[1,252,25,6],[1,255,25,10,"id"],[1,257,25,14],[1,258,26,8],[1,264,26,14,"index"],[1,266,26,22,"items"],[1,268,26,28,"findIndex"],[1,278,26,38,"item"],[1,281,26,46,"item"],[1,283,26,51,"id"],[1,288,26,58,"id"],[1,291,27,8],[1,298,27,15,"index"],[1,301,27,20],[1,303,27,28,"index"],[1,305,27,36],[1,306,28,6],[1,307,29,6],[1,314,29,13],[1,315,30,4],[1,317,31,4,"get"],[1,321,31,8,"index"],[1,324,32,13,"items"],[1,326,32,19,"index"],[1,329,34,4,"backIndex"],[1,340,34,14,"path"],[1,345,35,6,"path"],[1,349,38,6],[1,353,38,11],[1,357,38,15,"i"],[1,359,38,19,"index"],[1,361,38,27],[1,363,38,30,"i"],[1,366,38,35],[1,368,38,38,"i"],[1,372,38,43],[1,373,40,8],[1,376,39,21,"items"],[1,378,39,27,"i"],[1,381,40,17,"path"],[1,388,40,26,"path"],[1,390,41,10],[1,397,41,17,"i"],[1,398,43,6],[1,399,44,6],[1,407,45,4],[1,409,46,4,"push"],[1,415,46,9,"path"],[1,420,47,6,"path"],[1,422,47,10,"state"],[1,428,48,6,"state"],[1,432,50,6,"interrupt"],[1,436,51,6],[1,442,51,12,"id"],[1,445,51,17],[1,447,51,17,"nanoid"],[1,459,55,6,"items"],[1,461,55,14,"items"],[1,463,55,20,"slice"],[1,469,55,26],[1,471,55,29,"index"],[1,473,55,37],[1,476,56,6,"items"],[1,478,56,12,"push"],[1,483,56,17],[1,484,57,8,"path"],[1,491,58,8,"state"],[1,499,59,8,"id"],[1,506,61,6,"index"],[1,508,61,14,"items"],[1,510,61,20,"length"],[1,517,61,29],[1,519,67,6,"window"],[1,526,67,13,"history"],[1,534,67,21,"pushState"],[1,544,67,31],[1,545,68,8,"id"],[1,551,69,9],[1,554,69,13,"path"],[1,556,70,4],[1,558,71,4,"replace"],[1,567,71,12,"path"],[1,572,72,6,"path"],[1,574,72,10,"state"],[1,580,73,6,"state"],[1,584,75,6,"interrupt"],[1,588,76,6],[1,594,76,12,"id"],[1,596,76,17,"window"],[1,603,76,24,"history"],[1,611,76,32,"state"],[1,618,76,39,"id"],[1,623,76,45],[1,625,76,45,"nanoid"],[1,637,80,6],[1,641,80,10,"pathWithHash"],[1,643,80,25,"path"],[1,645,81,6],[1,651,81,12,"hash"],[1,653,81,19,"pathWithHash"],[1,655,81,32,"includes"],[1,664,81,41],[1,669,81,48],[1,672,81,53,"location"],[1,681,81,62,"hash"],[1,687,82,11,"items"],[1,689,82,17,"length"],[1,697,82,27,"items"],[1,699,82,33,"findIndex"],[1,709,82,43,"item"],[1,712,82,51,"item"],[1,714,82,56,"id"],[1,719,82,63,"id"],[1,722,82,69],[1,725,90,8,"pathWithHash"],[1,728,90,38,"hash"],[1,730,91,8,"items"],[1,732,91,16],[1,733,91,17],[1,734,92,10,"path"],[1,739,92,16,"pathWithHash"],[1,741,93,10,"state"],[1,749,94,10,"id"],[1,756,96,8,"index"],[1,758,96,16],[1,762,98,12,"items"],[1,764,98,18,"index"],[1,767,98,25,"path"],[1,774,98,34,"path"],[1,778,99,10,"pathWithHash"],[1,781,99,40,"hash"],[1,784,101,8,"items"],[1,786,101,14,"index"],[1,789,101,23],[1,790,102,10,"path"],[1,797,103,10,"state"],[1,805,104,10,"id"],[1,812,107,6,"window"],[1,819,107,13,"history"],[1,827,107,21,"replaceState"],[1,840,107,34],[1,841,108,8,"id"],[1,847,109,9],[1,850,109,13,"pathWithHash"],[1,852,110,4],[1,854,116,4,"go"],[1,857,116,7,"n"],[1,860,117,6,"interrupt"],[1,864,121,6],[1,870,121,12,"nextIndex"],[1,872,121,24,"index"],[1,874,121,32,"n"],[1,876,122,12,"lastItemIndex"],[1,878,122,28,"items"],[1,880,122,34,"length"],[1,887,122,43],[1,889,134,6],[1,892,123,10,"n"],[1,894,123,14],[1,898,123,20,"items"],[1,900,123,26,"nextIndex"],[1,904,125,8,"n"],[1,907,125,13,"index"],[1,909,126,8,"index"],[1,911,126,16],[1,914,127,17,"n"],[1,916,127,21],[1,919,127,26,"nextIndex"],[1,921,127,38,"lastItemIndex"],[1,924,129,8,"n"],[1,926,129,12,"lastItemIndex"],[1,928,129,28,"index"],[1,930,130,8,"index"],[1,932,130,16,"lastItemIndex"],[1,935,132,8,"index"],[1,937,132,16,"nextIndex"],[1,939,134,16],[1,943,134,10,"n"],[1,945,143,6],[1,952,143,13],[1,956,143,17,"Promise"],[1,964,143,25],[1,965,143,26,"resolve"],[1,967,143,35,"reject"],[1,972,144,8],[1,978,144,14,"done"],[1,980,144,21,"interrupted"],[1,984,146,10],[1,987,145,10,"clearTimeout"],[1,1000,145,23,"timer"],[1,1003,146,14,"interrupted"],[1,1005,148,12],[1,1017,147,12,"reject"],[1,1019,147,19],[1,1023,147,23,"Error"],[1,1029,147,29],[1,1072,159,10],[1,1078,159,16,"title"],[1,1084,160,12,"title"],[1,1087,161,14,"window"],[1,1094,161,21,"document"],[1,1103,162,10,"window"],[1,1110,162,17,"document"],[1,1119,162,26,"title"],[1,1125,162,34],[1,1128,163,10,"window"],[1,1135,163,17,"document"],[1,1144,163,26,"title"],[1,1150,163,34,"title"],[1,1152,164,10,"resolve"],[1,1157,166,8,"pending"],[1,1159,166,16,"push"],[1,1164,166,21],[1,1165,167,10,"ref"],[1,1169,167,15,"done"],[1,1171,168,10,"cb"],[1,1174,168,14,"done"],[1,1178,176,8],[1,1184,176,14,"timer"],[1,1186,176,22,"setTimeout"],[1,1197,176,33],[1,1202,177,10],[1,1208,177,16,"foundIndex"],[1,1210,177,29,"pending"],[1,1212,177,37,"findIndex"],[1,1222,177,47,"it"],[1,1225,177,53,"it"],[1,1227,177,56,"ref"],[1,1233,177,64,"done"],[1,1236,178,14,"foundIndex"],[1,1239,178,24],[1,1243,179,12,"pending"],[1,1245,179,20,"foundIndex"],[1,1248,179,32,"cb"],[1,1253,180,12,"pending"],[1,1255,180,20,"splice"],[1,1262,180,27,"foundIndex"],[1,1264,180,39],[1,1268,182,10,"index"],[1,1270,182,18,"this"],[1,1275,182,23,"index"],[1,1282,183,11],[1,1287,184,14,"onPopState"],[1,1289,184,27,"onPopState"],[1,1294,187,10,"index"],[1,1296,187,18,"this"],[1,1301,187,23,"index"],[1,1307,188,10],[1,1313,188,16,"last"],[1,1315,188,23,"pending"],[1,1317,188,31,"pop"],[1,1323,189,10,"window"],[1,1330,189,17,"removeEventListener"],[1,1350,189,37],[1,1361,189,49,"onPopState"],[1,1364,190,10,"last"],[1,1367,190,16,"cb"],[1,1373,192,8,"window"],[1,1380,192,15,"addEventListener"],[1,1397,192,32],[1,1408,192,44,"onPopState"],[1,1411,193,8,"window"],[1,1418,193,15,"history"],[1,1426,193,23,"go"],[1,1429,193,26,"n"],[1,1433,195,4],[1,1435,199,4,"listen"],[1,1442,199,11,"listener"],[1,1445,200,6],[1,1451,200,12,"onPopState"],[1,1453,200,25,"onPopState"],[1,1458,203,8,"index"],[1,1460,203,16,"this"],[1,1465,203,21,"index"],[1,1471,204,12,"pending"],[1,1473,204,20,"length"],[1,1481,208,8,"listener"],[1,1486,211,6],[1,1493,210,6,"window"],[1,1500,210,13,"addEventListener"],[1,1517,210,30],[1,1528,210,42,"onPopState"],[1,1531,211,13],[1,1535,211,19,"window"],[1,1542,211,26,"removeEventListener"],[1,1562,211,46],[1,1573,211,58,"onPopState"],[1,1575,212,4],[1,1577,215,0],[1,1579,3,0],[1,1583,3,0,"_nonSecure"],[1,1585,3,0,"r"],[1,1587,3,0,"d"],[1,1589,3,0],[1,1592,215,1],[1,1595]],"functionMap":{"names":["<global>","createMemoryHistory","interrupt","pending.forEach$argument_0","it.cb","history.get__index","items.findIndex$argument_0","history.get","history.backIndex","history.push","history.replace","history.go","Promise$argument_0","done","setTimeout$argument_0","pending.findIndex$argument_0","onPopState","history.listen","<anonymous>"],"mappings":"AAA;OCG;oBCO;oBCI;cCE,cD;KDC;GDC;IIE;sCCK,sBD;KJI;IMC;KNE;IOC;KPW;IQC;KRwB;ISC;2CJW,sBI;KT4B;IUM;yBC2B;qBCC;SDqB;iCEW;+CCC,qBD;SFM;2BIC;SJO;ODG;KVC;IgBI;yBDC;OCS;aCE,wDD;KhBC;CDG"}},"type":"js/module"}]} |