{"version":3,"sources":["jsdelivr-header.js","/npm/redux-watch@1.2.0/index.js"],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,ACNA,aACA,IAAI,SAAW,QAAQ,eAAe,IAEtC,SAAS,eAAgB,EAAG,GAC1B,OAAO,IAAM,CACf,CAEA,SAAS,MAAO,EAAU,EAAY,GACpC,EAAU,GAAW,eACrB,IAAI,EAAe,SAAS,IAAY,GACxC,OAAO,SAAY,GACjB,OAAO,WACL,IAAI,EAAW,SAAS,IAAY,GACpC,IAAK,EAAQ,EAAc,GAAW,CACpC,IAAI,EAAW,EACf,EAAe,EACf,EAAG,EAAU,EAAU,EACzB,CACF,CACF,CACF,CAEA,OAAO,QAAU","file":"/npm/redux-watch@1.2.0/index.js","sourceRoot":"","sourcesContent":["/**\n * Minified by jsDelivr using Terser v5.39.0.\n * Original file: /npm/redux-watch@1.2.0/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'\nvar getValue = require('object-path').get\n\nfunction defaultCompare (a, b) {\n  return a === b\n}\n\nfunction watch (getState, objectPath, compare) {\n  compare = compare || defaultCompare\n  var currentValue = getValue(getState(), objectPath)\n  return function w (fn) {\n    return function () {\n      var newValue = getValue(getState(), objectPath)\n      if (!compare(currentValue, newValue)) {\n        var oldValue = currentValue\n        currentValue = newValue\n        fn(newValue, oldValue, objectPath)\n      }\n    }\n  }\n}\n\nmodule.exports = watch\n"]}