Files
pezkuwi-mobile-app/frontend/.metro-cache/cache/1a/f522a2ad400f64e388469543d996499c6c26a3fb658b2b48f953a4dabb4cb64befc92c
T
2025-11-08 08:58:18 +00:00

1 line
13 KiB
Plaintext

{"dependencies":[{"name":"@walletconnect/window-getters","data":{"asyncType":null,"isESMImport":false,"locs":[{"start":{"line":4,"column":25,"index":138},"end":{"line":4,"column":65,"index":178}}],"key":"hl6gQJeN2MVo0dblLzh1keHk37A=","exportNames":["*"],"imports":1}}],"output":[{"data":{"code":"__d(function (global, require, _$$_IMPORT_DEFAULT, _$$_IMPORT_ALL, module, exports, _dependencyMap) {\n \"use strict\";\n\n Object.defineProperty(exports, \"__esModule\", {\n value: true\n });\n exports.getWindowMetadata = void 0;\n const window_getters_1 = require(_dependencyMap[0], \"@walletconnect/window-getters\");\n function getWindowMetadata() {\n let doc;\n let loc;\n try {\n doc = window_getters_1.getDocumentOrThrow();\n loc = window_getters_1.getLocationOrThrow();\n } catch (e) {\n return null;\n }\n function getIcons() {\n const links = doc.getElementsByTagName(\"link\");\n const icons = [];\n for (let i = 0; i < links.length; i++) {\n const link = links[i];\n const rel = link.getAttribute(\"rel\");\n if (rel) {\n if (rel.toLowerCase().indexOf(\"icon\") > -1) {\n const href = link.getAttribute(\"href\");\n if (href) {\n if (href.toLowerCase().indexOf(\"https:\") === -1 && href.toLowerCase().indexOf(\"http:\") === -1 && href.indexOf(\"//\") !== 0) {\n let absoluteHref = loc.protocol + \"//\" + loc.host;\n if (href.indexOf(\"/\") === 0) {\n absoluteHref += href;\n } else {\n const path = loc.pathname.split(\"/\");\n path.pop();\n const finalPath = path.join(\"/\");\n absoluteHref += finalPath + \"/\" + href;\n }\n icons.push(absoluteHref);\n } else if (href.indexOf(\"//\") === 0) {\n const absoluteUrl = loc.protocol + href;\n icons.push(absoluteUrl);\n } else {\n icons.push(href);\n }\n }\n }\n }\n }\n return icons;\n }\n function getWindowMetadataOfAny(...args) {\n const metaTags = doc.getElementsByTagName(\"meta\");\n for (let i = 0; i < metaTags.length; i++) {\n const tag = metaTags[i];\n const attributes = [\"itemprop\", \"property\", \"name\"].map(target => tag.getAttribute(target)).filter(attr => {\n if (attr) {\n return args.includes(attr);\n }\n return false;\n });\n if (attributes.length && attributes) {\n const content = tag.getAttribute(\"content\");\n if (content) {\n return content;\n }\n }\n }\n return \"\";\n }\n function getName() {\n let name = getWindowMetadataOfAny(\"name\", \"og:site_name\", \"og:title\", \"twitter:title\");\n if (!name) {\n name = doc.title;\n }\n return name;\n }\n function getDescription() {\n const description = getWindowMetadataOfAny(\"description\", \"og:description\", \"twitter:description\", \"keywords\");\n return description;\n }\n const name = getName();\n const description = getDescription();\n const url = loc.origin;\n const icons = getIcons();\n const meta = {\n description,\n url,\n icons,\n name\n };\n return meta;\n }\n exports.getWindowMetadata = getWindowMetadata;\n});","lineCount":94,"map":[[2,2,1,0],[2,14,1,12],[4,2,2,0,"Object"],[4,8,2,6],[4,9,2,7,"defineProperty"],[4,23,2,21],[4,24,2,22,"exports"],[4,31,2,29],[4,33,2,31],[4,45,2,43],[4,47,2,45],[5,4,2,47,"value"],[5,9,2,52],[5,11,2,54],[6,2,2,59],[6,3,2,60],[6,4,2,61],[7,2,3,0,"exports"],[7,9,3,7],[7,10,3,8,"getWindowMetadata"],[7,27,3,25],[7,30,3,28],[7,35,3,33],[7,36,3,34],[8,2,4,0],[8,8,4,6,"window_getters_1"],[8,24,4,22],[8,27,4,25,"require"],[8,34,4,32],[8,35,4,32,"_dependencyMap"],[8,49,4,32],[8,85,4,64],[8,86,4,65],[9,2,5,0],[9,11,5,9,"getWindowMetadata"],[9,28,5,26,"getWindowMetadata"],[9,29,5,26],[9,31,5,29],[10,4,6,4],[10,8,6,8,"doc"],[10,11,6,11],[11,4,7,4],[11,8,7,8,"loc"],[11,11,7,11],[12,4,8,4],[12,8,8,8],[13,6,9,8,"doc"],[13,9,9,11],[13,12,9,14,"window_getters_1"],[13,28,9,30],[13,29,9,31,"getDocumentOrThrow"],[13,47,9,49],[13,48,9,50],[13,49,9,51],[14,6,10,8,"loc"],[14,9,10,11],[14,12,10,14,"window_getters_1"],[14,28,10,30],[14,29,10,31,"getLocationOrThrow"],[14,47,10,49],[14,48,10,50],[14,49,10,51],[15,4,11,4],[15,5,11,5],[15,6,12,4],[15,13,12,11,"e"],[15,14,12,12],[15,16,12,14],[16,6,13,8],[16,13,13,15],[16,17,13,19],[17,4,14,4],[18,4,15,4],[18,13,15,13,"getIcons"],[18,21,15,21,"getIcons"],[18,22,15,21],[18,24,15,24],[19,6,16,8],[19,12,16,14,"links"],[19,17,16,19],[19,20,16,22,"doc"],[19,23,16,25],[19,24,16,26,"getElementsByTagName"],[19,44,16,46],[19,45,16,47],[19,51,16,53],[19,52,16,54],[20,6,17,8],[20,12,17,14,"icons"],[20,17,17,19],[20,20,17,22],[20,22,17,24],[21,6,18,8],[21,11,18,13],[21,15,18,17,"i"],[21,16,18,18],[21,19,18,21],[21,20,18,22],[21,22,18,24,"i"],[21,23,18,25],[21,26,18,28,"links"],[21,31,18,33],[21,32,18,34,"length"],[21,38,18,40],[21,40,18,42,"i"],[21,41,18,43],[21,43,18,45],[21,45,18,47],[22,8,19,12],[22,14,19,18,"link"],[22,18,19,22],[22,21,19,25,"links"],[22,26,19,30],[22,27,19,31,"i"],[22,28,19,32],[22,29,19,33],[23,8,20,12],[23,14,20,18,"rel"],[23,17,20,21],[23,20,20,24,"link"],[23,24,20,28],[23,25,20,29,"getAttribute"],[23,37,20,41],[23,38,20,42],[23,43,20,47],[23,44,20,48],[24,8,21,12],[24,12,21,16,"rel"],[24,15,21,19],[24,17,21,21],[25,10,22,16],[25,14,22,20,"rel"],[25,17,22,23],[25,18,22,24,"toLowerCase"],[25,29,22,35],[25,30,22,36],[25,31,22,37],[25,32,22,38,"indexOf"],[25,39,22,45],[25,40,22,46],[25,46,22,52],[25,47,22,53],[25,50,22,56],[25,51,22,57],[25,52,22,58],[25,54,22,60],[26,12,23,20],[26,18,23,26,"href"],[26,22,23,30],[26,25,23,33,"link"],[26,29,23,37],[26,30,23,38,"getAttribute"],[26,42,23,50],[26,43,23,51],[26,49,23,57],[26,50,23,58],[27,12,24,20],[27,16,24,24,"href"],[27,20,24,28],[27,22,24,30],[28,14,25,24],[28,18,25,28,"href"],[28,22,25,32],[28,23,25,33,"toLowerCase"],[28,34,25,44],[28,35,25,45],[28,36,25,46],[28,37,25,47,"indexOf"],[28,44,25,54],[28,45,25,55],[28,53,25,63],[28,54,25,64],[28,59,25,69],[28,60,25,70],[28,61,25,71],[28,65,26,28,"href"],[28,69,26,32],[28,70,26,33,"toLowerCase"],[28,81,26,44],[28,82,26,45],[28,83,26,46],[28,84,26,47,"indexOf"],[28,91,26,54],[28,92,26,55],[28,99,26,62],[28,100,26,63],[28,105,26,68],[28,106,26,69],[28,107,26,70],[28,111,27,28,"href"],[28,115,27,32],[28,116,27,33,"indexOf"],[28,123,27,40],[28,124,27,41],[28,128,27,45],[28,129,27,46],[28,134,27,51],[28,135,27,52],[28,137,27,54],[29,16,28,28],[29,20,28,32,"absoluteHref"],[29,32,28,44],[29,35,28,47,"loc"],[29,38,28,50],[29,39,28,51,"protocol"],[29,47,28,59],[29,50,28,62],[29,54,28,66],[29,57,28,69,"loc"],[29,60,28,72],[29,61,28,73,"host"],[29,65,28,77],[30,16,29,28],[30,20,29,32,"href"],[30,24,29,36],[30,25,29,37,"indexOf"],[30,32,29,44],[30,33,29,45],[30,36,29,48],[30,37,29,49],[30,42,29,54],[30,43,29,55],[30,45,29,57],[31,18,30,32,"absoluteHref"],[31,30,30,44],[31,34,30,48,"href"],[31,38,30,52],[32,16,31,28],[32,17,31,29],[32,23,32,33],[33,18,33,32],[33,24,33,38,"path"],[33,28,33,42],[33,31,33,45,"loc"],[33,34,33,48],[33,35,33,49,"pathname"],[33,43,33,57],[33,44,33,58,"split"],[33,49,33,63],[33,50,33,64],[33,53,33,67],[33,54,33,68],[34,18,34,32,"path"],[34,22,34,36],[34,23,34,37,"pop"],[34,26,34,40],[34,27,34,41],[34,28,34,42],[35,18,35,32],[35,24,35,38,"finalPath"],[35,33,35,47],[35,36,35,50,"path"],[35,40,35,54],[35,41,35,55,"join"],[35,45,35,59],[35,46,35,60],[35,49,35,63],[35,50,35,64],[36,18,36,32,"absoluteHref"],[36,30,36,44],[36,34,36,48,"finalPath"],[36,43,36,57],[36,46,36,60],[36,49,36,63],[36,52,36,66,"href"],[36,56,36,70],[37,16,37,28],[38,16,38,28,"icons"],[38,21,38,33],[38,22,38,34,"push"],[38,26,38,38],[38,27,38,39,"absoluteHref"],[38,39,38,51],[38,40,38,52],[39,14,39,24],[39,15,39,25],[39,21,40,29],[39,25,40,33,"href"],[39,29,40,37],[39,30,40,38,"indexOf"],[39,37,40,45],[39,38,40,46],[39,42,40,50],[39,43,40,51],[39,48,40,56],[39,49,40,57],[39,51,40,59],[40,16,41,28],[40,22,41,34,"absoluteUrl"],[40,33,41,45],[40,36,41,48,"loc"],[40,39,41,51],[40,40,41,52,"protocol"],[40,48,41,60],[40,51,41,63,"href"],[40,55,41,67],[41,16,42,28,"icons"],[41,21,42,33],[41,22,42,34,"push"],[41,26,42,38],[41,27,42,39,"absoluteUrl"],[41,38,42,50],[41,39,42,51],[42,14,43,24],[42,15,43,25],[42,21,44,29],[43,16,45,28,"icons"],[43,21,45,33],[43,22,45,34,"push"],[43,26,45,38],[43,27,45,39,"href"],[43,31,45,43],[43,32,45,44],[44,14,46,24],[45,12,47,20],[46,10,48,16],[47,8,49,12],[48,6,50,8],[49,6,51,8],[49,13,51,15,"icons"],[49,18,51,20],[50,4,52,4],[51,4,53,4],[51,13,53,13,"getWindowMetadataOfAny"],[51,35,53,35,"getWindowMetadataOfAny"],[51,36,53,36],[51,39,53,39,"args"],[51,43,53,43],[51,45,53,45],[52,6,54,8],[52,12,54,14,"metaTags"],[52,20,54,22],[52,23,54,25,"doc"],[52,26,54,28],[52,27,54,29,"getElementsByTagName"],[52,47,54,49],[52,48,54,50],[52,54,54,56],[52,55,54,57],[53,6,55,8],[53,11,55,13],[53,15,55,17,"i"],[53,16,55,18],[53,19,55,21],[53,20,55,22],[53,22,55,24,"i"],[53,23,55,25],[53,26,55,28,"metaTags"],[53,34,55,36],[53,35,55,37,"length"],[53,41,55,43],[53,43,55,45,"i"],[53,44,55,46],[53,46,55,48],[53,48,55,50],[54,8,56,12],[54,14,56,18,"tag"],[54,17,56,21],[54,20,56,24,"metaTags"],[54,28,56,32],[54,29,56,33,"i"],[54,30,56,34],[54,31,56,35],[55,8,57,12],[55,14,57,18,"attributes"],[55,24,57,28],[55,27,57,31],[55,28,57,32],[55,38,57,42],[55,40,57,44],[55,50,57,54],[55,52,57,56],[55,58,57,62],[55,59,57,63],[55,60,58,17,"map"],[55,63,58,20],[55,64,58,22,"target"],[55,70,58,28],[55,74,58,33,"tag"],[55,77,58,36],[55,78,58,37,"getAttribute"],[55,90,58,49],[55,91,58,50,"target"],[55,97,58,56],[55,98,58,57],[55,99,58,58],[55,100,59,17,"filter"],[55,106,59,23],[55,107,59,25,"attr"],[55,111,59,29],[55,115,59,34],[56,10,60,16],[56,14,60,20,"attr"],[56,18,60,24],[56,20,60,26],[57,12,61,20],[57,19,61,27,"args"],[57,23,61,31],[57,24,61,32,"includes"],[57,32,61,40],[57,33,61,41,"attr"],[57,37,61,45],[57,38,61,46],[58,10,62,16],[59,10,63,16],[59,17,63,23],[59,22,63,28],[60,8,64,12],[60,9,64,13],[60,10,64,14],[61,8,65,12],[61,12,65,16,"attributes"],[61,22,65,26],[61,23,65,27,"length"],[61,29,65,33],[61,33,65,37,"attributes"],[61,43,65,47],[61,45,65,49],[62,10,66,16],[62,16,66,22,"content"],[62,23,66,29],[62,26,66,32,"tag"],[62,29,66,35],[62,30,66,36,"getAttribute"],[62,42,66,48],[62,43,66,49],[62,52,66,58],[62,53,66,59],[63,10,67,16],[63,14,67,20,"content"],[63,21,67,27],[63,23,67,29],[64,12,68,20],[64,19,68,27,"content"],[64,26,68,34],[65,10,69,16],[66,8,70,12],[67,6,71,8],[68,6,72,8],[68,13,72,15],[68,15,72,17],[69,4,73,4],[70,4,74,4],[70,13,74,13,"getName"],[70,20,74,20,"getName"],[70,21,74,20],[70,23,74,23],[71,6,75,8],[71,10,75,12,"name"],[71,14,75,16],[71,17,75,19,"getWindowMetadataOfAny"],[71,39,75,41],[71,40,75,42],[71,46,75,48],[71,48,75,50],[71,62,75,64],[71,64,75,66],[71,74,75,76],[71,76,75,78],[71,91,75,93],[71,92,75,94],[72,6,76,8],[72,10,76,12],[72,11,76,13,"name"],[72,15,76,17],[72,17,76,19],[73,8,77,12,"name"],[73,12,77,16],[73,15,77,19,"doc"],[73,18,77,22],[73,19,77,23,"title"],[73,24,77,28],[74,6,78,8],[75,6,79,8],[75,13,79,15,"name"],[75,17,79,19],[76,4,80,4],[77,4,81,4],[77,13,81,13,"getDescription"],[77,27,81,27,"getDescription"],[77,28,81,27],[77,30,81,30],[78,6,82,8],[78,12,82,14,"description"],[78,23,82,25],[78,26,82,28,"getWindowMetadataOfAny"],[78,48,82,50],[78,49,82,51],[78,62,82,64],[78,64,82,66],[78,80,82,82],[78,82,82,84],[78,103,82,105],[78,105,82,107],[78,115,82,117],[78,116,82,118],[79,6,83,8],[79,13,83,15,"description"],[79,24,83,26],[80,4,84,4],[81,4,85,4],[81,10,85,10,"name"],[81,14,85,14],[81,17,85,17,"getName"],[81,24,85,24],[81,25,85,25],[81,26,85,26],[82,4,86,4],[82,10,86,10,"description"],[82,21,86,21],[82,24,86,24,"getDescription"],[82,38,86,38],[82,39,86,39],[82,40,86,40],[83,4,87,4],[83,10,87,10,"url"],[83,13,87,13],[83,16,87,16,"loc"],[83,19,87,19],[83,20,87,20,"origin"],[83,26,87,26],[84,4,88,4],[84,10,88,10,"icons"],[84,15,88,15],[84,18,88,18,"getIcons"],[84,26,88,26],[84,27,88,27],[84,28,88,28],[85,4,89,4],[85,10,89,10,"meta"],[85,14,89,14],[85,17,89,17],[86,6,90,8,"description"],[86,17,90,19],[87,6,91,8,"url"],[87,9,91,11],[88,6,92,8,"icons"],[88,11,92,13],[89,6,93,8,"name"],[90,4,94,4],[90,5,94,5],[91,4,95,4],[91,11,95,11,"meta"],[91,15,95,15],[92,2,96,0],[93,2,97,0,"exports"],[93,9,97,7],[93,10,97,8,"getWindowMetadata"],[93,27,97,25],[93,30,97,28,"getWindowMetadata"],[93,47,97,45],[94,0,97,46],[94,3]],"functionMap":{"names":["<global>","getWindowMetadata","getIcons","getWindowMetadataOfAny","map$argument_0","map.filter$argument_0","getName","getDescription"],"mappings":"AAA;ACI;ICU;KDqC;IEC;qBCK,oCD;wBEC;aFK;KFS;IKC;KLM;IMC;KNG;CDY"},"hasCjsExports":true},"type":"js/module"}]}