"use strict";exports.__esModule=!0,exports.default=stopTraceReport;var _invoker=_interopRequireWildcard(require("./invoker"));function _getRequireWildcardCache(e){if("function"!=typeof WeakMap)return null;var r=new WeakMap,t=new WeakMap;return(_getRequireWildcardCache=function(e){return e?t:r})(e)}function _interopRequireWildcard(e,r){if(!r&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var t=_getRequireWildcardCache(r);if(t&&t.has(e))return t.get(e);var o={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if("default"!==a&&Object.prototype.hasOwnProperty.call(e,a)){var i=n?Object.getOwnPropertyDescriptor(e,a):null;i&&(i.get||i.set)?Object.defineProperty(o,a,i):o[a]=e[a]}return o.default=e,t&&t.set(e,o),o}function stopTraceReportHandler(e,r){var t=r.resolve,o=r.reject,n=r.containerType,a=r.platformType,i=r.context;if(n){a===_invoker.PLATFORM_TYPE_ENUM.ANDROID?i&&i((function(r){_invoker.default.removeContinuesEvent(e.traceId),_invoker.default.handleBridgeResponse(r,t,o)}),(function(r){_invoker.default.removeContinuesEvent(e.traceId),_invoker.default.handleBridgeResponse(r,t,o)}),"taurus.common","stopTraceReport",e):a===_invoker.PLATFORM_TYPE_ENUM.IOS&&i.callHandler("taurus.common.stopTraceReport",Object.assign({},e),(function(r){_invoker.default.removeContinuesEvent(e.traceId),_invoker.default.handleBridgeResponse(r,t,o)}))}else i&&i.call("stopTraceReport",e,(function(r){_invoker.default.removeContinuesEvent(e.traceId),_invoker.default.handleBridgeResponse(r,t,o)}))}function stopTraceReport(e){return _invoker.default.invoke("stopTraceReport",e)}_invoker.default.registerAPI("stopTraceReport",{mobile:stopTraceReportHandler}),stopTraceReport.version={android:"1.3.4",ios:"1.3.4"},module.exports=exports.default,module.exports.default=exports.default;