UNPKG

vue-files-preview-inno

Version:

A tool for previewing files such as doc, excel, pdf, image, markdown, txt, audio, and video and so on.

1 lines 3.11 kB
{"version":3,"file":"index.mjs","sources":["../../../../node_modules/d/index.js"],"sourcesContent":["\"use strict\";\n\nvar isValue = require(\"type/value/is\")\n , isPlainFunction = require(\"type/plain-function/is\")\n , assign = require(\"es5-ext/object/assign\")\n , normalizeOpts = require(\"es5-ext/object/normalize-options\")\n , contains = require(\"es5-ext/string/#/contains\");\n\nvar d = (module.exports = function (dscr, value/*, options*/) {\n\tvar c, e, w, options, desc;\n\tif (arguments.length < 2 || typeof dscr !== \"string\") {\n\t\toptions = value;\n\t\tvalue = dscr;\n\t\tdscr = null;\n\t} else {\n\t\toptions = arguments[2];\n\t}\n\tif (isValue(dscr)) {\n\t\tc = contains.call(dscr, \"c\");\n\t\te = contains.call(dscr, \"e\");\n\t\tw = contains.call(dscr, \"w\");\n\t} else {\n\t\tc = w = true;\n\t\te = false;\n\t}\n\n\tdesc = { value: value, configurable: c, enumerable: e, writable: w };\n\treturn !options ? desc : assign(normalizeOpts(options), desc);\n});\n\nd.gs = function (dscr, get, set/*, options*/) {\n\tvar c, e, options, desc;\n\tif (typeof dscr !== \"string\") {\n\t\toptions = set;\n\t\tset = get;\n\t\tget = dscr;\n\t\tdscr = null;\n\t} else {\n\t\toptions = arguments[3];\n\t}\n\tif (!isValue(get)) {\n\t\tget = undefined;\n\t} else if (!isPlainFunction(get)) {\n\t\toptions = get;\n\t\tget = set = undefined;\n\t} else if (!isValue(set)) {\n\t\tset = undefined;\n\t} else if (!isPlainFunction(set)) {\n\t\toptions = set;\n\t\tset = undefined;\n\t}\n\tif (isValue(dscr)) {\n\t\tc = contains.call(dscr, \"c\");\n\t\te = contains.call(dscr, \"e\");\n\t} else {\n\t\tc = true;\n\t\te = false;\n\t}\n\n\tdesc = { get: get, set: set, configurable: c, enumerable: e };\n\treturn !options ? desc : assign(normalizeOpts(options), desc);\n};\n"],"names":["isValue","require$$0","isPlainFunction","require$$1","assign","require$$2","normalizeOpts","require$$3","contains","require$$4","d","dModule","dscr","value","c","e","w","options","desc","get","set"],"mappings":";;;;;;AAEA,IAAIA,IAAkBC,GAClBC,IAAkBC,GAClBC,IAAkBC,GAClBC,IAAkBC,GAClBC,IAAkBC,GAElBC,IAAKC,EAAA,UAAiB,SAAUC,GAAMC,GAAoB;AAC7D,MAAIC,GAAGC,GAAGC,GAAGC,GAASC;AACtB,SAAI,UAAU,SAAS,KAAK,OAAON,KAAS,YAC3CK,IAAUJ,GACVA,IAAQD,GACRA,IAAO,QAEPK,IAAU,UAAU,CAAC,GAElBjB,EAAQY,CAAI,KACfE,IAAIN,EAAS,KAAKI,GAAM,GAAG,GAC3BG,IAAIP,EAAS,KAAKI,GAAM,GAAG,GAC3BI,IAAIR,EAAS,KAAKI,GAAM,GAAG,MAE3BE,IAAIE,IAAI,IACRD,IAAI,KAGLG,IAAO,EAAE,OAAOL,GAAO,cAAcC,GAAG,YAAYC,GAAG,UAAUC,EAAC,GAC1DC,IAAiBb,EAAOE,EAAcW,CAAO,GAAGC,CAAI,IAA1CA;AACnB;AAEAR,EAAE,KAAK,SAAUE,GAAMO,GAAKC,GAAkB;AAC7C,MAAIN,GAAGC,GAAGE,GAASC;AACnB,SAAI,OAAON,KAAS,YACnBK,IAAUG,GACVA,IAAMD,GACNA,IAAMP,GACNA,IAAO,QAEPK,IAAU,UAAU,CAAC,GAEjBjB,EAAQmB,CAAG,IAEJjB,EAAgBiB,CAAG,IAGnBnB,EAAQoB,CAAG,IAEXlB,EAAgBkB,CAAG,MAC9BH,IAAUG,GACVA,IAAM,UAHNA,IAAM,UAHNH,IAAUE,GACVA,IAAMC,IAAM,UAHZD,IAAM,QAUHnB,EAAQY,CAAI,KACfE,IAAIN,EAAS,KAAKI,GAAM,GAAG,GAC3BG,IAAIP,EAAS,KAAKI,GAAM,GAAG,MAE3BE,IAAI,IACJC,IAAI,KAGLG,IAAO,EAAE,KAAKC,GAAK,KAAKC,GAAK,cAAcN,GAAG,YAAYC,EAAC,GACnDE,IAAiBb,EAAOE,EAAcW,CAAO,GAAGC,CAAI,IAA1CA;AACnB;;","x_google_ignoreList":[0]}