/** * Flux v4.0.4 * * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ !function(i,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.Flux=t():i.Flux=t()}(this,function(){return function(i){function t(e){if(n[e])return n[e].exports;var s=n[e]={exports:{},id:e,loaded:!1};return i[e].call(s.exports,s,s.exports,t),s.loaded=!0,s.exports}var n={};return t.m=i,t.c=n,t.p="",t(0)}([function(i,t,n){i.exports.Dispatcher=n(1)},function(i,t,n){"use strict";function e(i,t,n){return t=s(t),t in i?Object.defineProperty(i,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):i[t]=n,i}function s(i){var t=r(i,"string");return"symbol"==typeof t?t:String(t)}function r(i,t){var n,e;if("object"!=typeof i||null===i)return i;if(n=i[Symbol.toPrimitive],void 0!==n){if(e=n.call(i,t||"default"),"object"!=typeof e)return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(i)}var o=n(2),a="ID_",c=function(){function i(){e(this,"_callbacks",void 0),e(this,"_isDispatching",void 0),e(this,"_isHandled",void 0),e(this,"_isPending",void 0),e(this,"_lastID",void 0),e(this,"_pendingPayload",void 0),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}var t=i.prototype;return t.register=function(i){var t=a+this._lastID++;return this._callbacks[t]=i,t},t.unregister=function(i){this._callbacks[i]?void 0:o(!1),delete this._callbacks[i]},t.waitFor=function(i){var t,n;for(this._isDispatching?void 0:o(!1),t=0;t2?n-2:0),r=2;r