{"version":3,"sources":["jsdelivr-header.js","/npm/uwire@1.1.0/cjs/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,MAAM,MAAC,OAAS,QAAQ,UAElB,aAAe,EACf,SAAW,IAEX,OAAS,EAAE,aAAY,gBAC3B,MAAM,EAAQ,SAAS,cAIvB,OAHA,EAAM,cAAc,GACpB,EAAM,YAAY,GAClB,EAAM,iBACC,CAAU,EAGb,SAAW,CAAC,EAAM,IAVP,MAUqB,EAAK,SACvC,EAAI,EAAa,EAChB,EAAY,OAAO,GAAQ,EAAK,UAChC,EAAY,EAAK,UAAY,EAAK,WACrC,EAEF,QAAQ,SAAW,SAEnB,MAAM,WAAa,IACjB,MAAM,WAAC,GAAc,GACf,OAAC,GAAU,EACjB,GAAI,EAAS,EACX,OAAO,EAAS,EAAW,GAAK,EAClC,MAAM,EAAQ,MAAM,KAAK,EAAY,GAGrC,MAAO,CACL,aA5BiB,EA6BjB,SA5Ba,IA6Bb,WALiB,EAAM,GAMvB,UALgB,EAAM,EAAS,GAM/B,OAAA,GACE,GAAI,EAAW,SAAW,EAAQ,CAChC,IAAI,EAAI,EACR,KAAO,EAAI,GACT,EAAS,YAAY,EAAM,KAC/B,CACA,OAAO,CACT,EACD,EAEH,QAAQ,WAAa","file":"/npm/uwire@1.1.0/cjs/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.37.0.\n * Original file: /npm/uwire@1.1.0/cjs/index.js\n *\n * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files\n */\n","'use strict';\nconst {slice} = require('uarray');\n\nconst ELEMENT_NODE = 1;\nconst nodeType = 111;\n\nconst remove = ({firstChild, lastChild}) => {\n  const range = document.createRange();\n  range.setStartAfter(firstChild);\n  range.setEndAfter(lastChild);\n  range.deleteContents();\n  return firstChild;\n};\n\nconst diffable = (node, operation) => node.nodeType === nodeType ?\n  ((1 / operation) < 0 ?\n    (operation ? remove(node) : node.lastChild) :\n    (operation ? node.valueOf() : node.firstChild)) :\n  node\n;\nexports.diffable = diffable;\n\nconst persistent = fragment => {\n  const {childNodes} = fragment;\n  const {length} = childNodes;\n  if (length < 2)\n    return length ? childNodes[0] : fragment;\n  const nodes = slice.call(childNodes, 0);\n  const firstChild = nodes[0];\n  const lastChild = nodes[length - 1];\n  return {\n    ELEMENT_NODE,\n    nodeType,\n    firstChild,\n    lastChild,\n    valueOf() {\n      if (childNodes.length !== length) {\n        let i = 0;\n        while (i < length)\n          fragment.appendChild(nodes[i++]);\n      }\n      return fragment;\n    }\n  };\n};\nexports.persistent = persistent;\n"]}