{"version":3,"names":[],"mappings":"","sources":["firebase-messaging.js"],"sourcesContent":["try{webpackJsonp([1],[,,,,,function(e,t,r){\"use strict\";function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}Object.defineProperty(t,\"__esModule\",{value:!0});var o,i={AVAILABLE_IN_WINDOW:\"only-available-in-window\",AVAILABLE_IN_SW:\"only-available-in-sw\",SHOULD_BE_INHERITED:\"should-be-overriden\",BAD_SENDER_ID:\"bad-sender-id\",INCORRECT_GCM_SENDER_ID:\"incorrect-gcm-sender-id\",PERMISSION_DEFAULT:\"permission-default\",PERMISSION_BLOCKED:\"permission-blocked\",UNSUPPORTED_BROWSER:\"unsupported-browser\",NOTIFICATIONS_BLOCKED:\"notifications-blocked\",FAILED_DEFAULT_REGISTRATION:\"failed-serviceworker-registration\",SW_REGISTRATION_EXPECTED:\"sw-registration-expected\",GET_SUBSCRIPTION_FAILED:\"get-subscription-failed\",INVALID_SAVED_TOKEN:\"invalid-saved-token\",SW_REG_REDUNDANT:\"sw-reg-redundant\",TOKEN_SUBSCRIBE_FAILED:\"token-subscribe-failed\",TOKEN_SUBSCRIBE_NO_TOKEN:\"token-subscribe-no-token\",TOKEN_SUBSCRIBE_NO_PUSH_SET:\"token-subscribe-no-push-set\",USE_SW_BEFORE_GET_TOKEN:\"use-sw-before-get-token\",INVALID_DELETE_TOKEN:\"invalid-delete-token\",DELETE_TOKEN_NOT_FOUND:\"delete-token-not-found\",DELETE_SCOPE_NOT_FOUND:\"delete-scope-not-found\",BG_HANDLER_FUNCTION_EXPECTED:\"bg-handler-function-expected\",NO_WINDOW_CLIENT_TO_MSG:\"no-window-client-to-msg\",UNABLE_TO_RESUBSCRIBE:\"unable-to-resubscribe\",NO_FCM_TOKEN_FOR_RESUBSCRIBE:\"no-fcm-token-for-resubscribe\",FAILED_TO_DELETE_TOKEN:\"failed-to-delete-token\",NO_SW_IN_REG:\"no-sw-in-reg\",BAD_SCOPE:\"bad-scope\",BAD_VAPID_KEY:\"bad-vapid-key\",BAD_SUBSCRIPTION:\"bad-subscription\",BAD_TOKEN:\"bad-token\",BAD_PUSH_SET:\"bad-push-set\",FAILED_DELETE_VAPID_KEY:\"failed-delete-vapid-key\"},a=(o={},n(o,i.AVAILABLE_IN_WINDOW,\"This method is available in a Window context.\"),n(o,i.AVAILABLE_IN_SW,\"This method is available in a service worker context.\"),n(o,i.SHOULD_BE_INHERITED,\"This method should be overriden by extended classes.\"),n(o,i.BAD_SENDER_ID,\"Please ensure that 'messagingSenderId' is set correctly in the options passed into firebase.initializeApp().\"),n(o,i.PERMISSION_DEFAULT,\"The required permissions were not granted and dismissed instead.\"),n(o,i.PERMISSION_BLOCKED,\"The required permissions were not granted and blocked instead.\"),n(o,i.UNSUPPORTED_BROWSER,\"This browser doesn't support the API's required to use the firebase SDK.\"),n(o,i.NOTIFICATIONS_BLOCKED,\"Notifications have been blocked.\"),n(o,i.FAILED_DEFAULT_REGISTRATION,\"We are unable to register the default service worker. {$browserErrorMessage}\"),n(o,i.SW_REGISTRATION_EXPECTED,\"A service worker registration was the expected input.\"),n(o,i.GET_SUBSCRIPTION_FAILED,\"There was an error when trying to get any existing Push Subscriptions.\"),n(o,i.INVALID_SAVED_TOKEN,\"Unable to access details of the saved token.\"),n(o,i.SW_REG_REDUNDANT,\"The service worker being used for push was made redundant.\"),n(o,i.TOKEN_SUBSCRIBE_FAILED,\"A problem occured while subscribing the user to FCM: {$message}\"),n(o,i.TOKEN_SUBSCRIBE_NO_TOKEN,\"FCM returned no token when subscribing the user to push.\"),n(o,i.TOKEN_SUBSCRIBE_NO_PUSH_SET,\"FCM returned an invalid response when getting an FCM token.\"),n(o,i.USE_SW_BEFORE_GET_TOKEN,\"You must call useServiceWorker() before calling getToken() to ensure your service worker is used.\"),n(o,i.INVALID_DELETE_TOKEN,\"You must pass a valid token into deleteToken(), i.e. the token from getToken().\"),n(o,i.DELETE_TOKEN_NOT_FOUND,\"The deletion attempt for token could not be performed as the token was not found.\"),n(o,i.DELETE_SCOPE_NOT_FOUND,\"The deletion attempt for service worker scope could not be performed as the scope was not found.\"),n(o,i.BG_HANDLER_FUNCTION_EXPECTED,\"The input to setBackgroundMessageHandler() must be a function.\"),n(o,i.NO_WINDOW_CLIENT_TO_MSG,\"An attempt was made to message a non-existant window client.\"),n(o,i.UNABLE_TO_RESUBSCRIBE,\"There was an error while re-subscribing the FCM token for push messaging. Will have to resubscribe the user on next visit. {$message}\"),n(o,i.NO_FCM_TOKEN_FOR_RESUBSCRIBE,\"Could not find an FCM token and as a result, unable to resubscribe. Will have to resubscribe the user on next visit.\"),n(o,i.FAILED_TO_DELETE_TOKEN,\"Unable to delete the currently saved token.\"),n(o,i.NO_SW_IN_REG,\"Even though the service worker registration was successful, there was a problem accessing the service worker itself.\"),n(o,i.INCORRECT_GCM_SENDER_ID,\"Please change your web app manifest's 'gcm_sender_id' value to '103953800507' to use Firebase messaging.\"),n(o,i.BAD_SCOPE,\"The service worker scope must be a string with at least one character.\"),n(o,i.BAD_VAPID_KEY,\"The public VAPID key must be a string with at least one character.\"),n(o,i.BAD_SUBSCRIPTION,\"The subscription must be a valid PushSubscription.\"),n(o,i.BAD_TOKEN,\"The FCM Token used for storage / lookup was not a valid token string.\"),n(o,i.BAD_PUSH_SET,\"The FCM push set used for storage / lookup was not not a valid push set string.\"),n(o,i.FAILED_DELETE_VAPID_KEY,\"The VAPID key could not be deleted.\"),o);t.default={codes:i,map:a},e.exports=t.default},,,,,,,,,,,,,function(e,t,r){\"use strict\";function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError(\"Cannot call a class as a function\")}Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(){function e(e,t){for(var r=0;r