UNPKG

react-native-avo-inspector

Version:

[![npm version](https://badge.fury.io/js/react-native-avo-inspector.svg)](https://badge.fury.io/js/react-native-avo-inspector)

1 lines 20.9 kB
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var n=t();for(var o in n)("object"==typeof exports?exports:e)[o]=n[o]}}(self,()=>(()=>{"use strict";var e={975(e,t){Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){}return e.newGuid=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"===e?t:3&t|8).toString(16)})},e}();t.default=n},902(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.AvoInspectorEnv=void 0,t.AvoInspectorEnv={Prod:"prod",Dev:"dev",Staging:"staging"}},781(e,t){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+t+" is not a constructor or null");function o(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(o.prototype=t.prototype,new o)}),r=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((o=o.apply(e,t||[])).next())})},i=this&&this.__generator||function(e,t){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(6===a[0]&&i.label<r[1]){i.label=r[1],r=a;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(a);break}r[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.AvoStorage=void 0;var s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.useFallbackStorage=!1,t.fallbackStorage={},t.storageInitialized=!1,t.onStorageInitFuncs=[],t.shouldLog=!1,t.suffix="",t}return o(t,e),t.prototype.init=function(e,t){this.shouldLog=e,this.suffix=t,this.initializeStorageWeb(this.isLocalStorageAvailable())},t.prototype.initializeStorageWeb=function(e){this.storageInitialized=!0,e||(this.useFallbackStorage=!0),this.onStorageInitFuncs.forEach(function(e){e()})},t.prototype.isLocalStorageAvailable=function(){var e=(new Date).toISOString();try{return window.localStorage.setItem(e,e),window.localStorage.getItem(e)===e&&(window.localStorage.removeItem(e),!0)}catch(e){return!1}},t.prototype.isInitialized=function(){return this.storageInitialized},t.prototype.getItemAsync=function(e){return r(this,void 0,void 0,function(){var t=this;return i(this,function(n){switch(n.label){case 0:return[4,new Promise(function(n,o){t.runAfterInit(function(){if(t.useFallbackStorage){var o=t.fallbackStorage[e+t.suffix];n(t.parseJson(o))}else if("undefined"!=typeof window){o=void 0;try{o=window.localStorage.getItem(e+t.suffix)}catch(e){t.shouldLog&&console.error("Avo Inspector Storage getItemAsync error:",e),n(null)}n(t.parseJson(o))}else n(null)})})];case 1:return[2,n.sent()]}})})},t.prototype.getItem=function(e){var t;if(this.storageInitialized){if(this.useFallbackStorage)t=this.fallbackStorage[e+this.suffix];else if(process.env.BROWSER&&"undefined"!=typeof window)try{t=window.localStorage.getItem(e+this.suffix)}catch(e){this.shouldLog&&console.error("Avo Inspector Storage getItem error:",e)}}else t=null;return this.parseJson(t)},t.prototype.setItem=function(e,t){var n=this;this.runAfterInit(function(){if(n.useFallbackStorage)n.fallbackStorage[e+n.suffix]=JSON.stringify(t);else if("undefined"!=typeof window)try{window.localStorage.setItem(e+n.suffix,JSON.stringify(t))}catch(e){n.shouldLog&&console.error("Avo Inspector Storage setItem error:",e)}})},t.prototype.removeItem=function(e){var t=this;this.runAfterInit(function(){if(t.useFallbackStorage)t.fallbackStorage[e+t.suffix]=null;else if("undefined"!=typeof window)try{window.localStorage.removeItem(e+t.suffix)}catch(e){t.shouldLog&&console.error("Avo Inspector Storage removeItem error:",e)}})},t.prototype.runAfterInit=function(e){this.storageInitialized?e():this.onStorageInitFuncs.push(e)},t}(function(){function e(){}return e.prototype.parseJson=function(e){return null!=e?JSON.parse(e):null},e}()),a=function(){function e(e,t){void 0===t&&(t=""),this.Platform=null,this.Platform="browser",this.storageImpl=new s,this.storageImpl.init(e,t)}return e.prototype.isInitialized=function(){return this.storageImpl.isInitialized()},e.prototype.getItemAsync=function(e){return r(this,void 0,void 0,function(){return i(this,function(t){switch(t.label){case 0:return[4,this.storageImpl.getItemAsync(e)];case 1:return[2,t.sent()]}})})},e.prototype.getItem=function(e){return this.storageImpl.getItem(e)},e.prototype.setItem=function(e,t){this.storageImpl.setItem(e,t)},e.prototype.removeItem=function(e){this.storageImpl.removeItem(e)},e.prototype.runAfterInit=function(e){this.storageImpl.runAfterInit(e)},e}();t.AvoStorage=a},988(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AvoBatcher=void 0;var o=n(290),r=function(){function e(t){var n=this;this.events=[],this.networkCallsHandler=t,this.batchFlushAttemptTimestamp=Date.now(),o.AvoInspector.avoStorage.getItemAsync(e.cacheKey).then(function(e){if(null!==e){var t=e.filter(function(e){return null!==e});n.events=n.events.concat(t),n.checkIfBatchNeedsToBeSent()}}).catch(function(e){console.error("Avo Inspector: error getting events from cache",e)})}return e.prototype.handleSessionStarted=function(){this.events.push(this.networkCallsHandler.bodyForSessionStartedCall()),this.saveEvents(),this.checkIfBatchNeedsToBeSent()},e.prototype.handleTrackSchema=function(e,t,n,r,i){this.events.push(this.networkCallsHandler.bodyForEventSchemaCall(e,t,n,r,i)),this.saveEvents(),o.AvoInspector.shouldLog&&console.log("Avo Inspector: saved event "+e+" with schema "+JSON.stringify(t)),this.checkIfBatchNeedsToBeSent()},e.prototype.checkIfBatchNeedsToBeSent=function(){var e=this.events.length;if(0!==e){var t=Date.now(),n=t-this.batchFlushAttemptTimestamp,r=e%o.AvoInspector.batchSize==0,i=n>=1e3*o.AvoInspector.batchFlushSeconds,s=this;if(r||i){this.batchFlushAttemptTimestamp=t;var a=s.events;s.events=[],this.networkCallsHandler.callInspectorWithBatchBody(a,function(e){null!=e?(s.events=s.events.concat(a),o.AvoInspector.shouldLog&&console.log("Avo Inspector: batch sending failed: "+e.message+". We will attempt to send your schemas with next batch")):o.AvoInspector.shouldLog&&console.log("Avo Inspector: batch sent successfully."),s.saveEvents()})}}},e.prototype.saveEvents=function(){if(this.events.length>1e3){var t=this.events.length-1e3;this.events.splice(0,t)}o.AvoInspector.avoStorage.setItem(e.cacheKey,this.events)},Object.defineProperty(e,"cacheKey",{get:function(){return"AvoInspectorEvents"},enumerable:!1,configurable:!0}),e}();t.AvoBatcher=r},290(e,t,n){var o=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((o=o.apply(e,t||[])).next())})},r=this&&this.__generator||function(e,t){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(6===a[0]&&i.label<r[1]){i.label=r[1],r=a;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(a);break}r[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.AvoInspector=t.AvoInspectorLite=void 0;var i=n(902),s=n(635),a=n(988),c=n(286),l=n(781),u=n(84),p=n(330).rE,h=function(){function e(t){if((0,u.isValueEmpty)(t.env)?(this.environment=i.AvoInspectorEnv.Dev,console.warn("[Avo Inspector] No environment provided. Defaulting to dev.")):Object.values(i.AvoInspectorEnv).includes(t.env)?this.environment=t.env:(this.environment=i.AvoInspectorEnv.Dev,console.warn("[Avo Inspector] Unsupported environment provided. Defaulting to dev. Supported environments - Dev, Staging, Prod.")),(0,u.isValueEmpty)(t.apiKey))throw Error("[Avo Inspector] No API key provided. Inspector can't operate without API key.");if(this.apiKey=t.apiKey,(0,u.isValueEmpty)(t.version))throw Error("[Avo Inspector] No version provided. Many features of Inspector rely on versioning. Please provide comparable string version, i.e. integer or semantic.");this.version=t.version,this.environment===i.AvoInspectorEnv.Dev?(e._batchSize=1,e._shouldLog=!0):(e._batchSize=30,e._batchFlushSeconds=30,e._shouldLog=!1),e.avoStorage=new l.AvoStorage(e._shouldLog,null!=t.suffix?t.suffix:""),this.avoNetworkCallsHandler=new c.AvoNetworkCallsHandlerLite(this.apiKey,this.environment.toString(),t.appName||"",this.version,p),this.avoBatcher=new a.AvoBatcher(this.avoNetworkCallsHandler)}return Object.defineProperty(e,"batchSize",{get:function(){return this._batchSize},set:function(e){this._batchSize=1>e?1:e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"batchFlushSeconds",{get:function(){return this._batchFlushSeconds},enumerable:!1,configurable:!0}),Object.defineProperty(e,"shouldLog",{get:function(){return this._shouldLog},set:function(e){this._shouldLog=e},enumerable:!1,configurable:!0}),Object.defineProperty(e,"networkTimeout",{get:function(){return this._networkTimeout},set:function(e){this._networkTimeout=e},enumerable:!1,configurable:!0}),e.prototype.trackSchemaFromEvent=function(t,n){return o(this,void 0,void 0,function(){var o,i;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e.shouldLog&&console.log("Avo Inspector: supplied event "+t+" with params "+JSON.stringify(n)),[4,this.extractSchema(n,!1)];case 1:return o=r.sent(),this.trackSchemaInternal(t,o,null,null),[2,o];case 2:return i=r.sent(),console.error("Avo Inspector: something went wrong. Please report to support@avo.app.",i),[2,[]];case 3:return[2]}})})},e.prototype._avoFunctionTrackSchemaFromEvent=function(t,n,i,s){return o(this,void 0,void 0,function(){var o,a;return r(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),e.shouldLog&&console.log("Avo Inspector: supplied event "+t+" with params "+JSON.stringify(n)),[4,this.extractSchema(n,!1)];case 1:return o=r.sent(),this.trackSchemaInternal(t,o,i,s),[2,o];case 2:return a=r.sent(),console.error("Avo Inspector: something went wrong. Please report to support@avo.app.",a),[2,[]];case 3:return[2]}})})},e.prototype.trackSchema=function(t,n){return o(this,void 0,void 0,function(){return r(this,function(o){try{e.shouldLog&&console.log("Avo Inspector: supplied event "+t+" with schema "+JSON.stringify(n)),this.trackSchemaInternal(t,n,null,null)}catch(e){console.error("Avo Inspector: something went wrong. Please report to support@avo.app.",e)}return[2]})})},e.prototype.trackSchemaInternal=function(e,t,n,o){try{this.avoBatcher.handleTrackSchema(e,t,n,o)}catch(e){console.error("Avo Inspector: something went wrong. Please report to support@avo.app.",e)}},e.prototype.enableLogging=function(t){e._shouldLog=t},e.prototype.extractSchema=function(t){return o(this,arguments,void 0,function(t,n){var o;return void 0===n&&(n=!0),r(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),e.shouldLog&&console.log("Avo Inspector: extracting schema from "+JSON.stringify(t)),[4,s.AvoSchemaParserLite.extractSchema(t)];case 1:return[2,n.sent()];case 2:return o=n.sent(),console.error("Avo Inspector: something went wrong in extractSchema. Please report to support@avo.app.",o),[2,[]];case 3:return[2]}})})},e.prototype.setBatchSize=function(t){e.batchSize=t},e.prototype.setBatchFlushSeconds=function(t){e._batchFlushSeconds=t},e._batchSize=30,e._batchFlushSeconds=30,e._shouldLog=!1,e._networkTimeout=2e3,e}();t.AvoInspectorLite=h,t.AvoInspector=h},286(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AvoNetworkCallsHandler=t.AvoNetworkCallsHandlerLite=void 0;var o=n(975),r=n(290),i=function(){function e(e,t,n,o,r){this.samplingRate=1,this.sending=!1,this.apiKey=e,this.envName=t,this.appName=n,this.appVersion=o,this.libVersion=r}return e.prototype.callInspectorWithBatchBody=function(e,t){var n=this;if(this.sending)t(Error("Batch sending cancelled because another batch sending is in progress. Your events will be sent with next batch."));else{var o=e.filter(function(e){return null!=e});this.fixStreamIds(o),0!==o.length&&(this.shouldDropBySampling()?r.AvoInspector.shouldLog&&console.log("Avo Inspector: last event schema dropped due to sampling rate."):(r.AvoInspector.shouldLog&&(console.log("Avo Inspector: events",o),o.forEach(function(e){"sessionStarted"===e.type?console.log("Avo Inspector: sending session started event."):"event"===e.type&&console.log("Avo Inspector: sending event "+e.eventName+" with schema "+JSON.stringify(e.eventProperties))})),this.sending=!0,this.callInspectorApi(o,function(e){n.sending=!1,t(e)})))}},e.prototype.fixStreamIds=function(e){},e.prototype.bodyForSessionStartedCall=function(){var e=this.createBaseCallBody();return e.type="sessionStarted",e},e.prototype.bodyForEventSchemaCall=function(e,t,n,o,r,i){var s=this.createBaseCallBody();return s.type="event",s.eventName=e,s.eventProperties=t,null!=n?(s.avoFunction=!0,s.eventId=n,s.eventHash=o):(s.avoFunction=!1,s.eventId=null,s.eventHash=null),r&&(s.eventSpecMetadata=r),i&&(s.validatedBranchId=i),s},e.prototype.createBaseCallBody=function(){return{apiKey:this.apiKey,appName:this.appName,appVersion:this.appVersion,libVersion:this.libVersion,env:this.envName,libPlatform:"web",messageId:o.default.newGuid(),trackingId:"",createdAt:(new Date).toISOString(),sessionId:"",streamId:"",samplingRate:this.samplingRate}},e.prototype.callInspectorImmediately=function(e,t){r.AvoInspector.shouldLog&&(console.log("Avo Inspector: calling inspector immediately (with validation)",e.eventName),console.log("Avo Inspector: event body",e)),this.callInspectorApi([e],t)},e.prototype.shouldDropBySampling=function(){return Math.random()>this.samplingRate},e.prototype.callInspectorApi=function(t,n){var o=this,i=new XMLHttpRequest;i.open("POST",e.trackingEndpoint,!0),i.setRequestHeader("Content-Type","text/plain"),i.timeout=r.AvoInspector.networkTimeout,i.send(JSON.stringify(t)),i.onload=function(){if(200!==i.status)n(Error("Error ".concat(i.status,": ").concat(i.statusText)));else{var e=void 0;try{e=JSON.parse(i.response)}catch(e){return void n(Error("Failed to parse response: ".concat(e instanceof Error?e.message:e+"")))}null==e||"number"!=typeof e.samplingRate||isNaN(e.samplingRate)||(o.samplingRate=e.samplingRate),n(null)}},i.onerror=function(){n(Error("Request failed"))},i.ontimeout=function(){n(Error("Request timed out"))}},e.trackingEndpoint="https://api.avo.app/inspector/v1/track",e}();t.AvoNetworkCallsHandlerLite=i,t.AvoNetworkCallsHandler=i},635(e,t){var n=this&&this.__awaiter||function(e,t,n,o){return new(n||(n=Promise))(function(r,i){function s(e){try{c(o.next(e))}catch(e){i(e)}}function a(e){try{c(o.throw(e))}catch(e){i(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,a)}c((o=o.apply(e,t||[])).next())})},o=this&&this.__generator||function(e,t){var n,o,r,i={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(a){return function(c){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,a[0]&&(i=0)),i;)try{if(n=1,o&&(r=2&a[0]?o.return:a[0]?o.throw||((r=o.return)&&r.call(o),0):o.next)&&!(r=r.call(o,a[1])).done)return r;switch(o=0,r&&(a=[2&a[0],r.value]),a[0]){case 0:case 1:r=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,o=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!((r=(r=i.trys).length>0&&r[r.length-1])||6!==a[0]&&2!==a[0])){i=0;continue}if(3===a[0]&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(6===a[0]&&i.label<r[1]){i.label=r[1],r=a;break}if(r&&i.label<r[2]){i.label=r[2],i.ops.push(a);break}r[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],o=0}finally{n=r=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,c])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.AvoSchemaParser=t.AvoSchemaParserLite=void 0;var r=function(e){return"[object Array]"===Object.prototype.toString.call(e)},i=function(){function e(){}return e.extractSchema=function(e){return n(this,void 0,void 0,function(){var t,i=this;return o(this,function(s){switch(s.label){case 0:return null==e?[2,[]]:(t=function(e){return n(i,void 0,void 0,function(){var i,s,a,c,l,u,p,h,f,v,d=this;return o(this,function(y){switch(y.label){case 0:return r(e)?[4,Promise.all(e.map(function(e){return n(d,void 0,void 0,function(){return o(this,function(n){switch(n.label){case 0:return[4,t(e)];case 1:return[2,n.sent()]}})})}))]:[3,2];case 1:return i=y.sent(),[2,this.removeDuplicates(i)];case 2:if("object"!=typeof e)return[3,8];for(l in s=[],c=[],a=e)c.push(l);u=0,y.label=3;case 3:return u<c.length?(l=c[u])in a?(p=l,Object.prototype.hasOwnProperty.call(e,p)?(h=e[p],f={propertyName:p,propertyType:this.getPropValueType(h)},"object"!=typeof h||null==h?[3,5]:(v=f,[4,t(h)])):[3,6]):[3,6]:[3,7];case 4:v.children=y.sent(),y.label=5;case 5:s.push(f),y.label=6;case 6:return u++,[3,3];case 7:return[2,s];case 8:return[2,this.getPropValueType(e)]}})})},[4,t(e)]);case 1:return[2,s.sent()]}})})},e.removeDuplicates=function(e){var t={boolean:{},number:{},string:{}},n=[];return e.filter(function(e){var o=typeof e;return o in t&&"string"==typeof e?!t[o].hasOwnProperty(e)&&(t[o][e]=!0):!n.includes(e)&&n.push(e)})},e.getPropValueType=function(e){var t=typeof e;return null==e?"null":"string"===t?"string":"number"===t||"bigint"===t?(e+"").includes(".")?"float":"int":"boolean"===t?"boolean":"object"===t?r(e)?"list":"object":"unknown"},e}();t.AvoSchemaParserLite=i,t.AvoSchemaParser=i},84(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.isValueEmpty=void 0,t.deepEquals=function e(t,n){if(t===n)return!0;if(!(t instanceof Object&&n instanceof Object))return!1;if(t.constructor!==n.constructor)return!1;for(var o in t)if(t.hasOwnProperty(o)){if(!n.hasOwnProperty(o))return!1;if(t[o]!==n[o]){if("object"!=typeof t[o])return!1;if(!e(t[o],n[o]))return!1}}for(o in n)if(n.hasOwnProperty(o)&&!t.hasOwnProperty(o))return!1;return!0},t.isValueEmpty=function(e){return null==e||0==e.trim().length}},330(e){e.exports=JSON.parse('{"rE":"3.1.0-alpha.2"}')}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,n),i.exports}var o={};return(()=>{var e=o;Object.defineProperty(e,"__esModule",{value:!0}),e.AvoInspectorEnv=e.AvoInspector=void 0;var t=n(290);Object.defineProperty(e,"AvoInspector",{enumerable:!0,get:function(){return t.AvoInspectorLite}});var r=n(902);Object.defineProperty(e,"AvoInspectorEnv",{enumerable:!0,get:function(){return r.AvoInspectorEnv}})})(),o})());