UNPKG

@frames.js/debugger

Version:

Debug your Frames.js applications

1 lines 2.13 MB
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6602],{41815:function(e,n,i){i.d(n,{L:function(){return iX},d:function(){return i2},p:function(){return i0}});var a,t,d,l=i(20814),m=i(33056),k=i(75281),o=i(76263),u=i(52702),s=i(64082),c=i(89858);function r(e,n){if(!(e instanceof n))throw TypeError("Cannot call a class as a function")}function S(e){var n=function(e,n){if("object"!=typeof e||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var a=i.call(e,n||"default");if("object"!=typeof a)return a;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(e,"string");return"symbol"==typeof n?n:n+""}function N(e,n){for(var i=0;i<n.length;i++){var a=n[i];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,S(a.key),a)}}function v(e,n,i){return n&&N(e.prototype,n),i&&N(e,i),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(){p=function(){return n};var e,n={},i=Object.prototype,a=i.hasOwnProperty,t=Object.defineProperty||function(e,n,i){e[n]=i.value},d="function"==typeof Symbol?Symbol:{},l=d.iterator||"@@iterator",m=d.asyncIterator||"@@asyncIterator",k=d.toStringTag||"@@toStringTag";function o(e,n,i){return Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}),e[n]}try{o({},"")}catch(e){o=function(e,n,i){return e[n]=i}}function u(n,i,a,d){var l,m,k=Object.create((i&&i.prototype instanceof v?i:v).prototype);return t(k,"_invoke",{value:(l=new V(d||[]),m=c,function(i,t){if(m===r)throw Error("Generator is already running");if(m===S){if("throw"===i)throw t;return{value:e,done:!0}}for(l.method=i,l.arg=t;;){var d=l.delegate;if(d){var k=function n(i,a){var t=a.method,d=i.iterator[t];if(d===e)return a.delegate=null,"throw"===t&&i.iterator.return&&(a.method="return",a.arg=e,n(i,a),"throw"===a.method)||"return"!==t&&(a.method="throw",a.arg=TypeError("The iterator does not provide a '"+t+"' method")),N;var l=s(d,i.iterator,a.arg);if("throw"===l.type)return a.method="throw",a.arg=l.arg,a.delegate=null,N;var m=l.arg;return m?m.done?(a[i.resultName]=m.value,a.next=i.nextLoc,"return"!==a.method&&(a.method="next",a.arg=e),a.delegate=null,N):m:(a.method="throw",a.arg=TypeError("iterator result is not an object"),a.delegate=null,N)}(d,l);if(k){if(k===N)continue;return k}}if("next"===l.method)l.sent=l._sent=l.arg;else if("throw"===l.method){if(m===c)throw m=S,l.arg;l.dispatchException(l.arg)}else"return"===l.method&&l.abrupt("return",l.arg);m=r;var o=s(n,a,l);if("normal"===o.type){if(m=l.done?S:"suspendedYield",o.arg===N)continue;return{value:o.arg,done:l.done}}"throw"===o.type&&(m=S,l.method="throw",l.arg=o.arg)}})}),k}function s(e,n,i){try{return{type:"normal",arg:e.call(n,i)}}catch(e){return{type:"throw",arg:e}}}n.wrap=u;var c="suspendedStart",r="executing",S="completed",N={};function v(){}function F(){}function g(){}var y={};o(y,l,function(){return this});var f=Object.getPrototypeOf,M=f&&f(f(w([])));M&&M!==i&&a.call(M,l)&&(y=M);var C=g.prototype=v.prototype=Object.create(y);function T(e){["next","throw","return"].forEach(function(n){o(e,n,function(e){return this._invoke(n,e)})})}function b(e,n){var i;t(this,"_invoke",{value:function(t,d){function l(){return new n(function(i,l){!function i(t,d,l,m){var k=s(e[t],e,d);if("throw"!==k.type){var o=k.arg,u=o.value;return u&&"object"==typeof u&&a.call(u,"__await")?n.resolve(u.__await).then(function(e){i("next",e,l,m)},function(e){i("throw",e,l,m)}):n.resolve(u).then(function(e){o.value=e,l(o)},function(e){return i("throw",e,l,m)})}m(k.arg)}(t,d,i,l)})}return i=i?i.then(l,l):l()}})}function I(e){var n={tryLoc:e[0]};1 in e&&(n.catchLoc=e[1]),2 in e&&(n.finallyLoc=e[2],n.afterLoc=e[3]),this.tryEntries.push(n)}function A(e){var n=e.completion||{};n.type="normal",delete n.arg,e.completion=n}function V(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(I,this),this.reset(!0)}function w(n){if(n||""===n){var i=n[l];if(i)return i.call(n);if("function"==typeof n.next)return n;if(!isNaN(n.length)){var t=-1,d=function i(){for(;++t<n.length;)if(a.call(n,t))return i.value=n[t],i.done=!1,i;return i.value=e,i.done=!0,i};return d.next=d}}throw TypeError(typeof n+" is not iterable")}return F.prototype=g,t(C,"constructor",{value:g,configurable:!0}),t(g,"constructor",{value:F,configurable:!0}),F.displayName=o(g,k,"GeneratorFunction"),n.isGeneratorFunction=function(e){var n="function"==typeof e&&e.constructor;return!!n&&(n===F||"GeneratorFunction"===(n.displayName||n.name))},n.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,o(e,k,"GeneratorFunction")),e.prototype=Object.create(C),e},n.awrap=function(e){return{__await:e}},T(b.prototype),o(b.prototype,m,function(){return this}),n.AsyncIterator=b,n.async=function(e,i,a,t,d){void 0===d&&(d=Promise);var l=new b(u(e,i,a,t),d);return n.isGeneratorFunction(i)?l:l.next().then(function(e){return e.done?e.value:l.next()})},T(C),o(C,k,"Generator"),o(C,l,function(){return this}),o(C,"toString",function(){return"[object Generator]"}),n.keys=function(e){var n=Object(e),i=[];for(var a in n)i.push(a);return i.reverse(),function e(){for(;i.length;){var a=i.pop();if(a in n)return e.value=a,e.done=!1,e}return e.done=!0,e}},n.values=w,V.prototype={constructor:V,reset:function(n){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(A),!n)for(var i in this)"t"===i.charAt(0)&&a.call(this,i)&&!isNaN(+i.slice(1))&&(this[i]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var i=this;function t(a,t){return m.type="throw",m.arg=n,i.next=a,t&&(i.method="next",i.arg=e),!!t}for(var d=this.tryEntries.length-1;d>=0;--d){var l=this.tryEntries[d],m=l.completion;if("root"===l.tryLoc)return t("end");if(l.tryLoc<=this.prev){var k=a.call(l,"catchLoc"),o=a.call(l,"finallyLoc");if(k&&o){if(this.prev<l.catchLoc)return t(l.catchLoc,!0);if(this.prev<l.finallyLoc)return t(l.finallyLoc)}else if(k){if(this.prev<l.catchLoc)return t(l.catchLoc,!0)}else{if(!o)throw Error("try statement without catch or finally");if(this.prev<l.finallyLoc)return t(l.finallyLoc)}}}},abrupt:function(e,n){for(var i=this.tryEntries.length-1;i>=0;--i){var t=this.tryEntries[i];if(t.tryLoc<=this.prev&&a.call(t,"finallyLoc")&&this.prev<t.finallyLoc){var d=t;break}}d&&("break"===e||"continue"===e)&&d.tryLoc<=n&&n<=d.finallyLoc&&(d=null);var l=d?d.completion:{};return l.type=e,l.arg=n,d?(this.method="next",this.next=d.finallyLoc,N):this.complete(l)},complete:function(e,n){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&n&&(this.next=n),N},finish:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.finallyLoc===e)return this.complete(i.completion,i.afterLoc),A(i),N}},catch:function(e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc===e){var a=i.completion;if("throw"===a.type){var t=a.arg;A(i)}return t}}throw Error("illegal catch attempt")},delegateYield:function(n,i,a){return this.delegate={iterator:w(n),resultName:i,nextLoc:a},"next"===this.method&&(this.arg=e),N}},n}function F(e,n,i,a,t,d,l){try{var m=e[d](l),k=m.value}catch(e){i(e);return}m.done?n(k):Promise.resolve(k).then(a,t)}function g(e){return function(){var n=this,i=arguments;return new Promise(function(a,t){var d=e.apply(n,i);function l(e){F(d,a,t,l,m,"next",e)}function m(e){F(d,a,t,l,m,"throw",e)}l(void 0)})}}function y(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,n){return(f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,n){return e.__proto__=n,e})(e,n)}function M(e,n){if("function"!=typeof n&&null!==n)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),n&&f(e,n)}function C(e){return(C=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function T(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(T=function(){return!!e})()}function b(e){var n=T();return function(){var i,a=C(e);if(n){var t=C(this).constructor;i=Reflect.construct(a,arguments,t)}else i=a.apply(this,arguments);return function(e,n){if(n&&("object"==typeof n||"function"==typeof n))return n;if(void 0!==n)throw TypeError("Derived constructors may only return object or undefined");return y(e)}(this,i)}}function I(e){var n="function"==typeof Map?new Map:void 0;return(I=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(n){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(e))return n.get(e);n.set(e,i)}function i(){return function(e,n,i){if(T())return Reflect.construct.apply(null,arguments);var a=[null];a.push.apply(a,n);var t=new(e.bind.apply(e,a));return i&&f(t,i.prototype),t}(e,arguments,C(this).constructor)}return i.prototype=Object.create(e.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),f(i,e)})(e)}function A(e,n,i){return(n=S(n))in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}var V=function(e){M(i,e);var n=b(i);function i(){var e;r(this,i);for(var a=arguments.length,t=Array(a),d=0;d<a;d++)t[d]=arguments[d];return A(y(e=n.call.apply(n,[this].concat(t))),"name","NotAuthenticatedError"),A(y(e),"message","Not Authenticated"),e}return v(i)}(I(Error)),w=function(e){M(i,e);var n=b(i);function i(){var e;r(this,i);for(var a=arguments.length,t=Array(a),d=0;d<a;d++)t[d]=arguments[d];return A(y(e=n.call.apply(n,[this].concat(t))),"name","CredentialsExpiredError"),A(y(e),"message","Authentication credentials are expired"),e}return v(i)}(I(Error));function h(e){return{authorization:"Bearer ".concat(e||"")}}function O(e,n){return P.apply(this,arguments)}function P(){return(P=g(p().mark(function e(n,i){var a,t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n.getRequestHeader();case 2:if(!(a=e.sent).isFailure()){e.next=5;break}return e.abrupt("return",a);case 5:return e.next=7,i(a.value);case 7:return t=e.sent,e.abrupt("return",(0,o.Vp)(t));case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}function D(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),i.push.apply(i,a)}return i}function _(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?D(Object(i),!0).forEach(function(n){A(e,n,i[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):D(Object(i)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(i,n))})}return e}var R=function(e){M(i,e);var n=b(i);function i(e,a){r(this,i);var t=e.environment.gqlEndpoint,d=_({},e.headers||{});return n.call(this,t,_(_({},a),{},{fetch:fetch,headers:d}))}return v(i)}(m.g6);function L(e,n){return E.apply(this,arguments)}function E(){return(E=g(p().mark(function e(n,i){var a;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,n(i);case 2:return a=e.sent,e.t0=function(){return g(p().mark(function e(){var t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.pageInfo.next){e.next=6;break}return e.next=3,L(n,_(_({},i),{},{cursor:a.pageInfo.next}));case 3:return a=t=e.sent,e.abrupt("return",t);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}},e)}))()},e.t1=function(){return g(p().mark(function e(){var t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!a.pageInfo.prev){e.next=6;break}return e.next=3,L(n,_(_({},i),{},{cursor:a.pageInfo.prev}));case 3:return a=t=e.sent,e.abrupt("return",t);case 6:return e.abrupt("return",null);case 7:case"end":return e.stop()}},e)}))()},e.abrupt("return",{get pageInfo(){return a.pageInfo},get items(){return a.items},next:e.t0,prev:e.t1});case 6:case"end":return e.stop()}},e)}))).apply(this,arguments)}var q=function(e,n,i){return e()},x=(0,k.S)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AuthChallenge"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ChallengeRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"challenge"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AuthChallenge"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"AuthChallenge"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AuthChallengeResult"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"text"}}]}}]}),U=(0,k.S)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"AuthVerify"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"VerifyRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"verify"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}]}]}}]}),j=(0,k.S)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"CurrentSession"},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"currentSession"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ApprovedAuthentication"}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ApprovedAuthentication"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ApprovedAuthentication"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"authorizationId"}},{kind:"Field",name:{kind:"Name",value:"browser"}},{kind:"Field",name:{kind:"Name",value:"device"}},{kind:"Field",name:{kind:"Name",value:"os"}},{kind:"Field",name:{kind:"Name",value:"origin"}},{kind:"Field",name:{kind:"Name",value:"expiresAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}}]}),B=(0,k.S)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ApprovedAuthentications"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ApprovedAuthenticationRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"approvedAuthentications"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ApprovedAuthentication"}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaginatedResultInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"ApprovedAuthentication"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ApprovedAuthentication"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"authorizationId"}},{kind:"Field",name:{kind:"Name",value:"browser"}},{kind:"Field",name:{kind:"Name",value:"device"}},{kind:"Field",name:{kind:"Name",value:"os"}},{kind:"Field",name:{kind:"Name",value:"origin"}},{kind:"Field",name:{kind:"Name",value:"expiresAt"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"updatedAt"}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"PaginatedResultInfo"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"PaginatedResultInfo"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"prev"}},{kind:"Field",name:{kind:"Name",value:"next"}}]}}]}),W=(0,k.S)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AuthAuthenticate"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"SignedAuthChallenge"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"authenticate"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accessToken"}},{kind:"Field",name:{kind:"Name",value:"refreshToken"}},{kind:"Field",name:{kind:"Name",value:"identityToken"}}]}}]}}]}),H=(0,k.S)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"AuthRefresh"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RefreshRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"refresh"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accessToken"}},{kind:"Field",name:{kind:"Name",value:"refreshToken"}},{kind:"Field",name:{kind:"Name",value:"identityToken"}}]}}]}}]}),z=(0,k.S)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"WalletAuthenticationToProfileAuthentication"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"WalletAuthenticationToProfileAuthenticationRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"walletAuthenticationToProfileAuthentication"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"accessToken"}},{kind:"Field",name:{kind:"Name",value:"refreshToken"}},{kind:"Field",name:{kind:"Name",value:"identityToken"}}]}}]}}]}),Q=(0,k.S)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"mutation",name:{kind:"Name",value:"RevokeAuthentication"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RevokeAuthenticationRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"revokeAuthentication"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}]}]}}]}),G=o.ED.secondsToMs(30),K=o.ED.secondsToMs(10);function Z(e){return"role"in e&&"profile_refresh"===e.role}var J=function(){function e(n,i,a){r(this,e),this.accessToken=n,this.identityToken=i,this.refreshToken=a}return v(e,[{key:"checkClock",value:function(){var e=(0,s.Z)(this.refreshToken);(0,u.i)(e.iat,"Issued at date should be provided by JWT token");var n=Math.abs(o.ED.secondsToMs(e.iat)-Date.now());n>K&&console.info("ClockSkewedError: Your system clock is skewed compared to the API clock by: ",n)}},{key:"canRefresh",value:function(){return Date.now()<this.getTokenExpTimestamp(this.refreshToken)-G}},{key:"shouldRefresh",value:function(){var e=this.accessToken;return!e||Date.now()>=this.getTokenExpTimestamp(e)-G}},{key:"getProfileId",value:function(){var e=(0,s.Z)(this.refreshToken);return Z(e)?e.id:null}},{key:"getWalletAddress",value:function(){var e=(0,s.Z)(this.refreshToken);return"role"in e&&"wallet_refresh"===e.role?e.id:Z(e)?e.evmAddress:void(0,o.Fi)("Invalid JWT format")}},{key:"getAuthorizationId",value:function(){var e=(0,s.Z)(this.refreshToken);return(0,u.i)(e.authorizationId,"Wrong JWT token"),e.authorizationId}},{key:"getTokenExpTimestamp",value:function(e){var n=(0,s.Z)(e);return(0,u.i)(n.exp,"Exp date should be provided by JWT token"),o.ED.secondsToMs(n.exp)}}]),e}(),Y=function(){var e,n,i,a,t,d,l,m;function k(e){r(this,k);var n=new R(e);this.sdk=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:q;return{AuthChallenge:function(i,a){return n(function(n){return e.rawRequest(x,i,_(_({},a),n))},"AuthChallenge","query")},AuthVerify:function(i,a){return n(function(n){return e.rawRequest(U,i,_(_({},a),n))},"AuthVerify","query")},CurrentSession:function(i,a){return n(function(n){return e.rawRequest(j,i,_(_({},a),n))},"CurrentSession","query")},ApprovedAuthentications:function(i,a){return n(function(n){return e.rawRequest(B,i,_(_({},a),n))},"ApprovedAuthentications","query")},AuthAuthenticate:function(i,a){return n(function(n){return e.rawRequest(W,i,_(_({},a),n))},"AuthAuthenticate","mutation")},AuthRefresh:function(i,a){return n(function(n){return e.rawRequest(H,i,_(_({},a),n))},"AuthRefresh","mutation")},WalletAuthenticationToProfileAuthentication:function(i,a){return n(function(n){return e.rawRequest(z,i,_(_({},a),n))},"WalletAuthenticationToProfileAuthentication","mutation")},RevokeAuthentication:function(i,a){return n(function(n){return e.rawRequest(Q,i,_(_({},a),n))},"RevokeAuthentication","mutation")}}}(n)}return v(k,[{key:"challenge",value:(e=g(p().mark(function e(n){var i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sdk.AuthChallenge({request:n});case 2:return i=e.sent,e.abrupt("return",i.data.result);case 4:case"end":return e.stop()}},e,this)})),function(n){return e.apply(this,arguments)})},{key:"verify",value:(n=g(p().mark(function e(n){var i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sdk.AuthVerify({request:n});case 2:return i=e.sent,e.abrupt("return",i.data.result);case 4:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"authenticate",value:(i=g(p().mark(function e(n){var i,a;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sdk.AuthAuthenticate({request:n});case 2:return(a=new J((i=e.sent.data.result).accessToken,i.identityToken,i.refreshToken)).checkClock(),e.abrupt("return",a);case 7:case"end":return e.stop()}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"refresh",value:(a=g(p().mark(function e(n){var i,a;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sdk.AuthRefresh({request:{refreshToken:n}});case 2:return(a=new J((i=e.sent.data.result).accessToken,i.identityToken,i.refreshToken)).checkClock(),e.abrupt("return",a);case 7:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"upgrade",value:(t=g(p().mark(function e(n,i){var a,t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sdk.WalletAuthenticationToProfileAuthentication({request:n},i);case 2:return t=new J((a=e.sent.data.result).accessToken,a.identityToken,a.refreshToken),e.abrupt("return",t);case 6:case"end":return e.stop()}},e,this)})),function(e,n){return t.apply(this,arguments)})},{key:"currentSession",value:(d=g(p().mark(function e(n){var i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sdk.CurrentSession({},n);case 2:return i=e.sent,e.abrupt("return",i.data.result);case 4:case"end":return e.stop()}},e,this)})),function(e){return d.apply(this,arguments)})},{key:"approvedAuthentications",value:(l=g(p().mark(function e(n,i){var a=this;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",L(function(){var e=g(p().mark(function e(n){var t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a.sdk.ApprovedAuthentications({request:n},i);case 2:return t=e.sent,e.abrupt("return",t.data.result);case 4:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),n));case 1:case"end":return e.stop()}},e)})),function(e,n){return l.apply(this,arguments)})},{key:"revoke",value:(m=g(p().mark(function e(n,i){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sdk.RevokeAuthentication({request:n},i);case 2:case"end":return e.stop()}},e,this)})),function(e,n){return m.apply(this,arguments)})}]),k}(),$=function(){var e,n,i,a;function t(e,n){r(this,t);var i=new l.LD("lens.".concat(n,".credentials"));this.refreshTokenStorage=l.Ke.createForSchema(i,e)}return v(t,[{key:"set",value:(e=g(p().mark(function e(n){var i,a,t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.accessToken,a=n.identityToken,t=n.refreshToken,this.accessToken=i,this.identityToken=a,e.next=5,this.refreshTokenStorage.set({refreshToken:t});case 5:case"end":return e.stop()}},e,this)})),function(n){return e.apply(this,arguments)})},{key:"get",value:(n=g(p().mark(function e(){var n,i,a;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getRefreshToken();case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",null);case 5:return i=this.accessToken,a=this.identityToken,e.abrupt("return",new J(i,a,n));case 8:case"end":return e.stop()}},e,this)})),function(){return n.apply(this,arguments)})},{key:"reset",value:(i=g(p().mark(function e(){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this.accessToken=void 0,this.identityToken=void 0,e.next=4,this.refreshTokenStorage.reset();case 4:case"end":return e.stop()}},e,this)})),function(){return i.apply(this,arguments)})},{key:"subscribe",value:function(e){throw Error("Method not implemented.")}},{key:"getRefreshToken",value:(a=g(p().mark(function e(){var n,i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.refreshTokenStorage.get();case 2:return i=e.sent,e.abrupt("return",null!==(n=null==i?void 0:i.refreshToken)&&void 0!==n?n:null);case 4:case"end":return e.stop()}},e,this)})),function(){return a.apply(this,arguments)})}]),t}(),X=function(){var e,n,i,a,t,d,l,m,k,u,s,c,S,N,F,y,f,M,C,T;function b(e){r(this,b),this.api=new Y(e),this.credentials=new $(e.storage,e.environment.name)}return v(b,[{key:"authenticateWith",value:(e=g(p().mark(function e(n){var i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=new J(void 0,void 0,n.refreshToken),e.next=4,this.credentials.set(i);case 4:case"end":return e.stop()}},e,this)})),function(n){return e.apply(this,arguments)})},{key:"generateChallenge",value:(n=g(p().mark(function e(n){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.api.challenge(n));case 1:case"end":return e.stop()}},e,this)})),function(e){return n.apply(this,arguments)})},{key:"authenticate",value:(i=g(p().mark(function e(n){var i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.api.authenticate(n);case 2:return i=e.sent,e.next=5,this.credentials.set(i);case 5:case"end":return e.stop()}},e,this)})),function(e){return i.apply(this,arguments)})},{key:"upgradeCredentials",value:(a=g(p().mark(function e(n){var i=this;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",O(this,function(){var e=g(p().mark(function e(a){var t;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.api.upgrade(n,a);case 2:return t=e.sent,e.next=5,i.credentials.set(t);case 5:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}},e,this)})),function(e){return a.apply(this,arguments)})},{key:"verify",value:(t=g(p().mark(function e(n){var i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i="string"==typeof n?{accessToken:n}:n,e.abrupt("return",this.api.verify(i));case 2:case"end":return e.stop()}},e,this)})),function(e){return t.apply(this,arguments)})},{key:"isAuthenticated",value:(d=g(p().mark(function e(){var n,i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.credentials.get();case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",!1);case 5:if(n.shouldRefresh()){e.next=7;break}return e.abrupt("return",!0);case 7:if(!n.canRefresh()){e.next=14;break}return e.next=10,this.api.refresh(n.refreshToken);case 10:return i=e.sent,e.next=13,this.credentials.set(i);case 13:return e.abrupt("return",!0);case 14:return e.abrupt("return",!1);case 15:case"end":return e.stop()}},e,this)})),function(){return d.apply(this,arguments)})},{key:"getAccessToken",value:(l=g(p().mark(function e(){var n,i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.credentials.get();case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",(0,o.Rn)(new V));case 5:if(!(!n.shouldRefresh()&&n.accessToken)){e.next=7;break}return e.abrupt("return",(0,o.Vp)(n.accessToken));case 7:if(!n.canRefresh()){e.next=16;break}return e.next=10,this.api.refresh(n.refreshToken);case 10:return i=e.sent,e.next=13,this.credentials.set(i);case 13:if(i.accessToken){e.next=15;break}return e.abrupt("return",(0,o.Rn)(new w));case 15:return e.abrupt("return",(0,o.Vp)(i.accessToken));case 16:return e.abrupt("return",(0,o.Rn)(new w));case 17:case"end":return e.stop()}},e,this)})),function(){return l.apply(this,arguments)})},{key:"getRefreshToken",value:(m=g(p().mark(function e(){var n,i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.credentials.get();case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",(0,o.Rn)(new V));case 5:if(n.shouldRefresh()){e.next=7;break}return e.abrupt("return",(0,o.Vp)(n.refreshToken));case 7:if(!n.canRefresh()){e.next=16;break}return e.next=10,this.api.refresh(n.refreshToken);case 10:return i=e.sent,e.next=13,this.credentials.set(i);case 13:if(i.refreshToken){e.next=15;break}return e.abrupt("return",(0,o.Rn)(new w));case 15:return e.abrupt("return",(0,o.Vp)(i.refreshToken));case 16:return e.abrupt("return",(0,o.Rn)(new w));case 17:case"end":return e.stop()}},e,this)})),function(){return m.apply(this,arguments)})},{key:"getIdentityToken",value:(k=g(p().mark(function e(){var n,i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.credentials.get();case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",(0,o.Rn)(new V));case 5:if(!(!n.shouldRefresh()&&n.identityToken)){e.next=7;break}return e.abrupt("return",(0,o.Vp)(n.identityToken));case 7:if(!n.canRefresh()){e.next=16;break}return e.next=10,this.api.refresh(n.refreshToken);case 10:return i=e.sent,e.next=13,this.credentials.set(i);case 13:if(i.identityToken){e.next=15;break}return e.abrupt("return",(0,o.Rn)(new w));case 15:return e.abrupt("return",(0,o.Vp)(i.identityToken));case 16:return e.abrupt("return",(0,o.Rn)(new w));case 17:case"end":return e.stop()}},e,this)})),function(){return k.apply(this,arguments)})},{key:"getProfileId",value:(u=g(p().mark(function e(){var n;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getCredentials();case 2:if(!(n=e.sent).isFailure()){e.next=5;break}return e.abrupt("return",null);case 5:return e.abrupt("return",n.value.getProfileId());case 6:case"end":return e.stop()}},e,this)})),function(){return u.apply(this,arguments)})},{key:"getWalletAddress",value:(s=g(p().mark(function e(){var n;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getCredentials();case 2:if(!(n=e.sent).isFailure()){e.next=5;break}return e.abrupt("return",null);case 5:return e.abrupt("return",n.value.getWalletAddress());case 6:case"end":return e.stop()}},e,this)})),function(){return s.apply(this,arguments)})},{key:"getAuthorizationId",value:(c=g(p().mark(function e(){var n;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getCredentials();case 2:if(!(n=e.sent).isFailure()){e.next=5;break}return e.abrupt("return",null);case 5:return e.abrupt("return",n.value.getAuthorizationId());case 6:case"end":return e.stop()}},e,this)})),function(){return c.apply(this,arguments)})},{key:"logout",value:(S=g(p().mark(function e(){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.credentials.reset();case 2:case"end":return e.stop()}},e,this)})),function(){return S.apply(this,arguments)})},{key:"fetch",value:(N=g(p().mark(function e(){var n=this;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",O(this,function(){var e=g(p().mark(function e(i){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",n.api.currentSession(i));case 1:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}},e,this)})),function(){return N.apply(this,arguments)})},{key:"fetchAll",value:(F=g(p().mark(function e(){var n,i=this,a=arguments;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=a.length>0&&void 0!==a[0]?a[0]:{},e.abrupt("return",O(this,function(){var e=g(p().mark(function e(a){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",i.api.approvedAuthentications(n,a));case 1:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()));case 2:case"end":return e.stop()}},e,this)})),function(){return F.apply(this,arguments)})},{key:"revoke",value:(y=g(p().mark(function e(n){var i=this;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",O(this,function(){var e=g(p().mark(function e(a){return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,i.api.revoke(n,a);case 2:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}()));case 1:case"end":return e.stop()}},e,this)})),function(e){return y.apply(this,arguments)})},{key:"requireAuthentication",value:(f=g(p().mark(function e(n){var i,a;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getCredentials();case 2:if(!(i=e.sent).isFailure()){e.next=5;break}return e.abrupt("return",i);case 5:if(a=i.value.getProfileId()){e.next=8;break}return e.abrupt("return",(0,o.Rn)(new V));case 8:return e.abrupt("return",n(a));case 9:case"end":return e.stop()}},e,this)})),function(e){return f.apply(this,arguments)})},{key:"requireAtLeastWalletAuthentication",value:(M=g(p().mark(function e(n){var i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getCredentials();case 2:if(!(i=e.sent).isFailure()){e.next=5;break}return e.abrupt("return",i);case 5:return e.abrupt("return",n(i.value.getProfileId()));case 6:case"end":return e.stop()}},e,this)})),function(e){return M.apply(this,arguments)})},{key:"getRequestHeader",value:(C=g(p().mark(function e(){var n,i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.credentials.get();case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",(0,o.Rn)(new V));case 5:if(n.shouldRefresh()){e.next=7;break}return e.abrupt("return",(0,o.Vp)(h(n.accessToken)));case 7:if(!n.canRefresh()){e.next=14;break}return e.next=10,this.api.refresh(n.refreshToken);case 10:return i=e.sent,e.next=13,this.credentials.set(i);case 13:return e.abrupt("return",(0,o.Vp)(h(i.accessToken)));case 14:return e.abrupt("return",(0,o.Rn)(new w));case 15:case"end":return e.stop()}},e,this)})),function(){return C.apply(this,arguments)})},{key:"getCredentials",value:(T=g(p().mark(function e(){var n;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.credentials.get();case 2:if(n=e.sent){e.next=5;break}return e.abrupt("return",(0,o.Rn)(new V));case 5:if(n.canRefresh()){e.next=7;break}return e.abrupt("return",(0,o.Rn)(new w));case 7:return e.abrupt("return",(0,o.Vp)(n));case 8:case"end":return e.stop()}},e,this)})),function(){return T.apply(this,arguments)})}]),b}(),ee=((a={}).Complete="COMPLETE",a.Failed="FAILED",a.OptimisticallyUpdated="OPTIMISTICALLY_UPDATED",a.Processing="PROCESSING",a),en=((t={}).Fifty="Fifty",t.Ten="Ten",t.TwentyFive="TwentyFive",t),ei=((d={}).Eur="EUR",d.Gbp="GBP",d.Usd="USD",d);function ea(e){var n,i,a,t,d,l,m,k,o,u=e.params;return{publicationImageSmallTransform:null!==(n=null===(i=u.image)||void 0===i?void 0:i.small)&&void 0!==n?n:et("400px"),publicationImageMediumTransform:null!==(a=null===(t=u.image)||void 0===t?void 0:t.medium)&&void 0!==a?a:et("700px"),publicationOperationsActedArgs:{},publicationStatsInput:{metadata:{publishedOn:u.statsFor}},publicationStatsCountOpenActionArgs:{},profileCoverTransform:null!==(d=null===(l=u.profile)||void 0===l?void 0:l.cover)&&void 0!==d?d:et("1100px"),profilePictureTransform:null!==(m=null===(k=u.profile)||void 0===k?void 0:k.thumbnail)&&void 0!==m?m:et("256px"),profileStatsArg:{forApps:u.statsFor},profileStatsCountOpenActionArgs:{},profileMetadataSource:null===(o=u.profile)||void 0===o?void 0:o.metadataSource,rateRequest:{for:u.fxRateFor||ei.Usd}}}function et(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"auto";return{width:e,height:n,keepAspectRatio:!0}}function ed(){return(ed=g(p().mark(function e(n){var i,a,t,d,l,m,k,o,u;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return i=n.fn,a=n.validate,t=n.onMaxAttempts,l=void 0===(d=n.interval)?1e3:d,k=void 0===(m=n.maxAttempts)?60:m,o=0,u=function(){var e=g(p().mark(function e(n,d){var m;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,i();case 3:if(m=e.sent,o++,!a(m)){e.next=9;break}return e.abrupt("return",n(m));case 9:if(!(k&&o===k)){e.next=13;break}return e.abrupt("return",d(t()));case 13:setTimeout(u,l,n,d);case 14:e.next=19;break;case 16:return e.prev=16,e.t0=e.catch(0),e.abrupt("return",d(e.t0));case 19:case"end":return e.stop()}},e,null,[[0,16]])}));return function(n,i){return e.apply(this,arguments)}}(),e.abrupt("return",new Promise(u));case 4:case"end":return e.stop()}},e)}))).apply(this,arguments)}var el=function(e){var n;return n=g(p().mark(function n(i){var a;return p().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,function(e){return em.apply(this,arguments)}(e);case 2:return a=n.sent,n.abrupt("return",i(a));case 4:case"end":return n.stop()}},n)})),function(e){return n.apply(this,arguments)}};function em(){return(em=g(p().mark(function e(n){var i;return p().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(n){e.next=2;break}return e.abrupt("return",{});case 2:return e.next=4,n.getRequestHeader();case 4:if(!(i=e.sent).isFailure()){e.next=7;break}return e.abrupt("return",{});case 7:return e.abrupt("return",i.value);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}var ek=function(e,n,i){return e()},eo=(0,k.S)({kind:"Document",definitions:[{kind:"OperationDefinition",operation:"query",name:{kind:"Name",value:"ExplorePublications"},variableDefinitions:[{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"request"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ExplorePublicationRequest"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"publicationImageSmallTransform"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ImageTransform"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"publicationImageMediumTransform"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ImageTransform"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"publicationOperationsActedArgs"}},type:{kind:"NamedType",name:{kind:"Name",value:"PublicationOperationsActedArgs"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"publicationStatsInput"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PublicationStatsInput"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"publicationStatsCountOpenActionArgs"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"PublicationStatsCountOpenActionArgs"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"profileCoverTransform"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ImageTransform"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"profilePictureTransform"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"ImageTransform"}}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"profileStatsArg"}},type:{kind:"NamedType",name:{kind:"Name",value:"ProfileStatsArg"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"profileStatsCountOpenActionArgs"}},type:{kind:"NamedType",name:{kind:"Name",value:"ProfileStatsCountOpenActionArgs"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"profileMetadataSource"}},type:{kind:"NamedType",name:{kind:"Name",value:"AppId"}}},{kind:"VariableDefinition",variable:{kind:"Variable",name:{kind:"Name",value:"rateRequest"}},type:{kind:"NonNullType",type:{kind:"NamedType",name:{kind:"Name",value:"RateRequest"}}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",alias:{kind:"Name",value:"result"},name:{kind:"Name",value:"explorePublications"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"request"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"items"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Post"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Quote"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Quote"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"pageInfo"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PaginatedResultInfo"}}]}}]}}]}},{kind:"FragmentDefinition",name:{kind:"Name",value:"Post"},typeCondition:{kind:"NamedType",name:{kind:"Name",value:"Post"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"Field",name:{kind:"Name",value:"__typename"}},{kind:"Field",name:{kind:"Name",value:"id"}},{kind:"Field",name:{kind:"Name",value:"publishedOn"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"App"}}]}},{kind:"Field",name:{kind:"Name",value:"isHidden"}},{kind:"Field",name:{kind:"Name",value:"momoka"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MomokaInfo"}}]}},{kind:"Field",name:{kind:"Name",value:"txHash"}},{kind:"Field",name:{kind:"Name",value:"createdAt"}},{kind:"Field",name:{kind:"Name",value:"isEncrypted"}},{kind:"Field",name:{kind:"Name",value:"by"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"Profile"}}]}},{kind:"Field",name:{kind:"Name",value:"stats"},arguments:[{kind:"Argument",name:{kind:"Name",value:"request"},value:{kind:"Variable",name:{kind:"Name",value:"publicationStatsInput"}}}],selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationStats"}}]}},{kind:"Field",name:{kind:"Name",value:"operations"},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"PublicationOperations"}}]}},{kind:"Field",name:{kind:"Name",value:"metadata"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"AudioMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"AudioMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"VideoMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"VideoMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ImageMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ImageMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ArticleMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ArticleMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EventMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EventMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LinkMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LinkMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"EmbedMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"EmbedMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"CheckingInMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"CheckingInMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TextOnlyMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TextOnlyMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"ThreeDMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"ThreeDMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"StoryMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"StoryMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"TransactionMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"TransactionMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"MintMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"MintMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"SpaceMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"SpaceMetadataV3"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LiveStreamMetadataV3"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LiveStreamMetadataV3"}}]}}]}},{kind:"Field",name:{kind:"Name",value:"openActionModules"},selectionSet:{kind:"SelectionSet",selections:[{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LegacyFreeCollectModuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LegacyFreeCollectModuleSettings"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LegacyFeeCollectModuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LegacyFeeCollectModuleSettings"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LegacyLimitedFeeCollectModuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LegacyLimitedFeeCollectModuleSettings"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LegacyLimitedTimedFeeCollectModuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LegacyLimitedTimedFeeCollectModuleSettings"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedType",name:{kind:"Name",value:"LegacyRevertCollectModuleSettings"}},selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:"LegacyRevertCollectModuleSettings"}}]}},{kind:"InlineFragment",typeCondition:{kind:"NamedTyp