{"ast":null,"code":"import { addUniqueItem, removeItem } from './array.js';\nvar SubscriptionManager = /** @class */function () {\n  function SubscriptionManager() {\n    this.subscriptions = [];\n  }\n  SubscriptionManager.prototype.add = function (handler) {\n    var _this = this;\n    addUniqueItem(this.subscriptions, handler);\n    return function () {\n      return removeItem(_this.subscriptions, handler);\n    };\n  };\n  SubscriptionManager.prototype.notify = function (a, b, c) {\n    var numSubscriptions = this.subscriptions.length;\n    if (!numSubscriptions) return;\n    if (numSubscriptions === 1) {\n      /**\n       * If there's only a single handler we can just call it without invoking a loop.\n       */\n      this.subscriptions[0](a, b, c);\n    } else {\n      for (var i = 0; i < numSubscriptions; i++) {\n        /**\n         * Check whether the handler exists before firing as it's possible\n         * the subscriptions were modified during this loop running.\n         */\n        var handler = this.subscriptions[i];\n        handler && handler(a, b, c);\n      }\n    }\n  };\n  SubscriptionManager.prototype.getSize = function () {\n    return this.subscriptions.length;\n  };\n  SubscriptionManager.prototype.clear = function () {\n    this.subscriptions.length = 0;\n  };\n  return SubscriptionManager;\n}();\nexport { SubscriptionManager };","map":{"version":3,"names":["addUniqueItem","removeItem","SubscriptionManager","subscriptions","prototype","add","handler","_this","notify","a","b","c","numSubscriptions","length","i","getSize","clear"],"sources":["C:/ldt/LDT/Safemate_Management/node_modules/framer-motion/dist/es/utils/subscription-manager.js"],"sourcesContent":["import { addUniqueItem, removeItem } from './array.js';\n\nvar SubscriptionManager = /** @class */ (function () {\n    function SubscriptionManager() {\n        this.subscriptions = [];\n    }\n    SubscriptionManager.prototype.add = function (handler) {\n        var _this = this;\n        addUniqueItem(this.subscriptions, handler);\n        return function () { return removeItem(_this.subscriptions, handler); };\n    };\n    SubscriptionManager.prototype.notify = function (a, b, c) {\n        var numSubscriptions = this.subscriptions.length;\n        if (!numSubscriptions)\n            return;\n        if (numSubscriptions === 1) {\n            /**\n             * If there's only a single handler we can just call it without invoking a loop.\n             */\n            this.subscriptions[0](a, b, c);\n        }\n        else {\n            for (var i = 0; i < numSubscriptions; i++) {\n                /**\n                 * Check whether the handler exists before firing as it's possible\n                 * the subscriptions were modified during this loop running.\n                 */\n                var handler = this.subscriptions[i];\n                handler && handler(a, b, c);\n            }\n        }\n    };\n    SubscriptionManager.prototype.getSize = function () {\n        return this.subscriptions.length;\n    };\n    SubscriptionManager.prototype.clear = function () {\n        this.subscriptions.length = 0;\n    };\n    return SubscriptionManager;\n}());\n\nexport { SubscriptionManager };\n"],"mappings":"AAAA,SAASA,aAAa,EAAEC,UAAU,QAAQ,YAAY;AAEtD,IAAIC,mBAAmB,GAAG,aAAe,YAAY;EACjD,SAASA,mBAAmBA,CAAA,EAAG;IAC3B,IAAI,CAACC,aAAa,GAAG,EAAE;EAC3B;EACAD,mBAAmB,CAACE,SAAS,CAACC,GAAG,GAAG,UAAUC,OAAO,EAAE;IACnD,IAAIC,KAAK,GAAG,IAAI;IAChBP,aAAa,CAAC,IAAI,CAACG,aAAa,EAAEG,OAAO,CAAC;IAC1C,OAAO,YAAY;MAAE,OAAOL,UAAU,CAACM,KAAK,CAACJ,aAAa,EAAEG,OAAO,CAAC;IAAE,CAAC;EAC3E,CAAC;EACDJ,mBAAmB,CAACE,SAAS,CAACI,MAAM,GAAG,UAAUC,CAAC,EAAEC,CAAC,EAAEC,CAAC,EAAE;IACtD,IAAIC,gBAAgB,GAAG,IAAI,CAACT,aAAa,CAACU,MAAM;IAChD,IAAI,CAACD,gBAAgB,EACjB;IACJ,IAAIA,gBAAgB,KAAK,CAAC,EAAE;MACxB;AACZ;AACA;MACY,IAAI,CAACT,aAAa,CAAC,CAAC,CAAC,CAACM,CAAC,EAAEC,CAAC,EAAEC,CAAC,CAAC;IAClC,CAAC,MACI;MACD,KAAK,IAAIG,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,gBAAgB,EAAEE,CAAC,EAAE,EAAE;QACvC;AAChB;AACA;AACA;QACgB,IAAIR,OAAO,GAAG,IAAI,CAACH,aAAa,CAACW,CAAC,CAAC;QACnCR,OAAO,IAAIA,OA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