mirror of
https://github.com/rustdesk/doc.rustdesk.com.git
synced 2026-10-23 16:40:33 +00:00
Fix typos
This commit is contained in:
5 files changed
+6
-6
No files matched your search
+2
-2
@@ -19,7 +19,7 @@ __p+='`),ee}),C+=`';
|
||||
`,F="obj";C=`var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};
|
||||
`+C+`return __p;
|
||||
`;var Y;try{Y=new Function(le.variable||"obj","_",C)}catch(ee){throw ee.source=C,ee}var Z=function(ee){return Y.call(this,ee,e)};return Z.source="function("+F+`){
|
||||
`+C+"}",Z},e}()});var dr=p((a5e,eA)=>{var st={},Z1={},ei=[],rd=window.Webflow||[],En=window.jQuery,Kr=En(window),yV=En(document),E0=En.isFunction,Hr=st._=j_(),H_=st.tram=ed()&&En.tram,wc=!1,nd=!1;H_.config.hideBackface=!1;H_.config.keepInherited=!0;st.define=function(e,t,r){Z1[e]&&Q_(Z1[e]);var n=Z1[e]=t(En,Hr,r)||{};return K_(n),n};st.require=function(e){return Z1[e]};function K_(e){st.env()&&(E0(e.design)&&Kr.on("__wf_design",e.design),E0(e.preview)&&Kr.on("__wf_preview",e.preview)),E0(e.destroy)&&Kr.on("__wf_destroy",e.destroy),e.ready&&E0(e.ready)&&SV(e)}function SV(e){if(wc){e.ready();return}Hr.contains(ei,e.ready)||ei.push(e.ready)}function Q_(e){E0(e.design)&&Kr.off("__wf_design",e.design),E0(e.preview)&&Kr.off("__wf_preview",e.preview),E0(e.destroy)&&Kr.off("__wf_destroy",e.destroy),e.ready&&E0(e.ready)&&RV(e)}function RV(e){ei=Hr.filter(ei,function(t){return t!==e.ready})}st.push=function(e){if(wc){E0(e)&&e();return}rd.push(e)};st.env=function(e){var t=window.__wf_design,r=typeof t<"u";if(!e)return r;if(e==="design")return r&&t;if(e==="preview")return r&&!t;if(e==="slug")return r&&window.__wf_slug;if(e==="editor")return window.WebflowEditor;if(e==="test")return window.__wf_test;if(e==="frame")return window!==window.top};var Pc=navigator.userAgent.toLowerCase(),$_=st.env.touch="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,NV=st.env.chrome=/chrome/.test(Pc)&&/Google/.test(navigator.vendor)&&parseInt(Pc.match(/chrome\/(\d+)\./)[1],10),IV=st.env.ios=/(ipod|iphone|ipad)/.test(Pc);st.env.safari=/safari/.test(Pc)&&!NV&&!IV;var td;$_&&yV.on("touchstart mousedown",function(e){td=e.target});st.validClick=$_?function(e){return e===td||En.contains(e,td)}:function(){return!0};var J_="resize.webflow orientationchange.webflow load.webflow",LV="scroll.webflow "+J_;st.resize=id(Kr,J_);st.scroll=id(Kr,LV);st.redraw=id();function id(e,t){var r=[],n={};return n.up=Hr.throttle(function(i){Hr.each(r,function(a){a(i)})}),e&&t&&e.on(t,n.up),n.on=function(i){typeof i=="function"&&(Hr.contains(r,i)||r.push(i))},n.off=function(i){if(!arguments.length){r=[];return}r=Hr.filter(r,function(a){return a!==i})},n}st.location=function(e){window.location=e};st.env()&&(st.location=function(){});st.ready=function(){wc=!0,nd?CV():Hr.each(ei,V_),Hr.each(rd,V_),st.resize.up()};function V_(e){E0(e)&&e()}function CV(){nd=!1,Hr.each(Z1,K_)}var s1;st.load=function(e){s1.then(e)};function Z_(){s1&&(s1.reject(),Kr.off("load",s1.resolve)),s1=new En.Deferred,Kr.on("load",s1.resolve)}st.destroy=function(e){e=e||{},nd=!0,Kr.triggerHandler("__wf_destroy"),e.domready!=null&&(wc=e.domready),Hr.each(Z1,Q_),st.resize.off(),st.scroll.off(),st.redraw.off(),ei=[],rd=[],s1.state()==="pending"&&Z_()};En(st.ready);Z_();eA.exports=window.Webflow=st});var nA=p((o5e,rA)=>{var tA=dr();tA.define("brand",rA.exports=function(e){var t={},r=document,n=e("html"),i=e("body"),a=".w-webflow-badge",o=window.location,c=/PhantomJS/i.test(navigator.userAgent),s="fullscreenchange webkitfullscreenchange mozfullscreenchange msfullscreenchange",f;t.ready=function(){var I=n.attr("data-wf-status"),b=n.attr("data-wf-domain")||"";/\.webflow\.io$/i.test(b)&&o.hostname!==b&&(I=!0),I&&!c&&(f=f||d(),A(),setTimeout(A,500),e(r).off(s,M).on(s,M))};function M(){var I=r.fullScreen||r.mozFullScreen||r.webkitIsFullScreen||r.msFullscreenElement||!!r.webkitFullscreenElement;e(f).attr("style",I?"display: none !important;":"")}function d(){var I=e('<a class="w-webflow-badge"></a>').attr("href","https://webflow.com?utm_campaign=brandjs"),b=e("<img>").attr("src","https://d3e54v103j8qbb.cloudfront.net/img/webflow-badge-icon.f67cd735e3.svg").attr("alt","").css({marginRight:"8px",width:"16px"}),z=e("<img>").attr("src","https://d1otoma47x30pg.cloudfront.net/img/webflow-badge-text.6faa6a38cd.svg").attr("alt","Made in Webflow");return I.append(b,z),I[0]}function A(){var I=i.children(a),b=I.length&&I.get(0)===f,z=tA.env("editor");if(b){z&&I.remove();return}I.length&&I.remove(),z||i.append(f)}return t})});var aA=p((c5e,iA)=>{var qV=dr();qV.define("focus-visible",iA.exports=function(){function e(r){var n=!0,i=!1,a=null,o={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(k){return!!(k&&k!==document&&k.nodeName!=="HTML"&&k.nodeName!=="BODY"&&"classList"in k&&"contains"in k.classList)}function s(k){var te=k.type,ie=k.tagName;return!!(ie==="INPUT"&&o[te]&&!k.readOnly||ie==="TEXTAREA"&&!k.readOnly||k.isContentEditable)}function f(k){k.getAttribute("data-wf-focus-visible")||k.setAttribute("data-wf-focus-visible","true")}function M(k){k.getAttribute("data-wf-focus-visible")&&k.removeAttribute("data-wf-focus-visible")}function d(k){k.metaKey||k.altKey||k.ctrlKey||(c(r.activeElement)&&f(r.activeElement),n=!0)}function A(){n=!1}function I(k){c(k.target)&&(n||s(k.target))&&f(k.target)}function b(k){c(k.target)&&k.target.hasAttribute("data-wf-focus-visible")&&(i=!0,window.clearTimeout(a),a
Line truncated
|
||||
`+C+"}",Z},e}()});var dr=p((a5e,eA)=>{var st={},Z1={},ei=[],rd=window.Webflow||[],En=window.jQuery,Kr=En(window),yV=En(document),E0=En.isFunction,Hr=st._=j_(),H_=st.tram=ed()&&En.tram,wc=!1,nd=!1;H_.config.hideBackface=!1;H_.config.keepInherited=!0;st.define=function(e,t,r){Z1[e]&&Q_(Z1[e]);var n=Z1[e]=t(En,Hr,r)||{};return K_(n),n};st.require=function(e){return Z1[e]};function K_(e){st.env()&&(E0(e.design)&&Kr.on("__wf_design",e.design),E0(e.preview)&&Kr.on("__wf_preview",e.preview)),E0(e.destroy)&&Kr.on("__wf_destroy",e.destroy),e.ready&&E0(e.ready)&&SV(e)}function SV(e){if(wc){e.ready();return}Hr.contains(ei,e.ready)||ei.push(e.ready)}function Q_(e){E0(e.design)&&Kr.off("__wf_design",e.design),E0(e.preview)&&Kr.off("__wf_preview",e.preview),E0(e.destroy)&&Kr.off("__wf_destroy",e.destroy),e.ready&&E0(e.ready)&&RV(e)}function RV(e){ei=Hr.filter(ei,function(t){return t!==e.ready})}st.push=function(e){if(wc){E0(e)&&e();return}rd.push(e)};st.env=function(e){var t=window.__wf_design,r=typeof t<"u";if(!e)return r;if(e==="design")return r&&t;if(e==="preview")return r&&!t;if(e==="slug")return r&&window.__wf_slug;if(e==="editor")return window.WebflowEditor;if(e==="test")return window.__wf_test;if(e==="frame")return window!==window.top};var Pc=navigator.userAgent.toLowerCase(),$_=st.env.touch="ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch,NV=st.env.chrome=/chrome/.test(Pc)&&/Google/.test(navigator.vendor)&&parseInt(Pc.match(/chrome\/(\d+)\./)[1],10),IV=st.env.ios=/(ipod|iphone|ipad)/.test(Pc);st.env.safari=/safari/.test(Pc)&&!NV&&!IV;var td;$_&&yV.on("touchstart mousedown",function(e){td=e.target});st.validClick=$_?function(e){return e===td||En.contains(e,td)}:function(){return!0};var J_="resize.webflow orientationchange.webflow load.webflow",LV="scroll.webflow "+J_;st.resize=id(Kr,J_);st.scroll=id(Kr,LV);st.redraw=id();function id(e,t){var r=[],n={};return n.up=Hr.throttle(function(i){Hr.each(r,function(a){a(i)})}),e&&t&&e.on(t,n.up),n.on=function(i){typeof i=="function"&&(Hr.contains(r,i)||r.push(i))},n.off=function(i){if(!arguments.length){r=[];return}r=Hr.filter(r,function(a){return a!==i})},n}st.location=function(e){window.location=e};st.env()&&(st.location=function(){});st.ready=function(){wc=!0,nd?CV():Hr.each(ei,V_),Hr.each(rd,V_),st.resize.up()};function V_(e){E0(e)&&e()}function CV(){nd=!1,Hr.each(Z1,K_)}var s1;st.load=function(e){s1.then(e)};function Z_(){s1&&(s1.reject(),Kr.off("load",s1.resolve)),s1=new En.Deferred,Kr.on("load",s1.resolve)}st.destroy=function(e){e=e||{},nd=!0,Kr.triggerHandler("__wf_destroy"),e.domready!=null&&(wc=e.domready),Hr.each(Z1,Q_),st.resize.off(),st.scroll.off(),st.redraw.off(),ei=[],rd=[],s1.state()==="pending"&&Z_()};En(st.ready);Z_();eA.exports=window.Webflow=st});var nA=p((o5e,rA)=>{var tA=dr();tA.define("brand",rA.exports=function(e){var t={},r=document,n=e("html"),i=e("body"),a=".w-webflow-badge",o=window.location,c=/PhantomJS/i.test(navigator.userAgent),s="fullscreenchange webkitfullscreenchange mozfullscreenchange msfullscreenchange",f;t.ready=function(){var I=n.attr("data-wf-status"),b=n.attr("data-wf-domain")||"";/\.webflow\.io$/i.test(b)&&o.hostname!==b&&(I=!0),I&&!c&&(f=f||d(),A(),setTimeout(A,500),e(r).off(s,M).on(s,M))};function M(){var I=r.fullScreen||r.mozFullScreen||r.webkitIsFullScreen||r.msFullscreenElement||!!r.webkitFullscreenElement;e(f).attr("style",I?"display: none !important;":"")}function d(){var I=e('<a class="w-webflow-badge"></a>').attr("href","https://webflow.com?utm_campaign=brandjs"),b=e("<img>").attr("src","https://d3e54v103j8qbb.cloudfront.net/img/webflow-badge-icon.f67cd735e3.svg").attr("alt","").css({marginRight:"8px",width:"16px"}),z=e("<img>").attr("src","https://d1otoma47x30pg.cloudfront.net/img/webflow-badge-text.6faa6a38cd.svg").attr("alt","Made in Webflow");return I.append(b,z),I[0]}function A(){var I=i.children(a),b=I.length&&I.get(0)===f,z=tA.env("editor");if(b){z&&I.remove();return}I.length&&I.remove(),z||i.append(f)}return t})});var aA=p((c5e,iA)=>{var qV=dr();qV.define("focus-visible",iA.exports=function(){function e(r){var n=!0,i=!1,a=null,o={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function c(k){return!!(k&&k!==document&&k.nodeName!=="HTML"&&k.nodeName!=="BODY"&&"classList"in k&&"contains"in k.classList)}function s(k){var te=k.type,ie=k.tagName;return!!(ie==="INPUT"&&o[te]&&!k.readOnly||ie==="TEXTAREA"&&!k.readOnly||k.isContentEditable)}function f(k){k.getAttribute("data-wf-focus-visible")||k.setAttribute("data-wf-focus-visible","true")}function M(k){k.getAttribute("data-wf-focus-visible")&&k.removeAttribute("data-wf-focus-visible")}function d(k){k.metaKey||k.altKey||k.ctrlKey||(c(r.activeElement)&&f(r.activeElement),n=!0)}function A(){n=!1}function I(k){c(k.target)&&(n||s(k.target))&&f(k.target)}function b(k){c(k.target)&&k.target.hasAttribute("data-wf-focus-visible")&&(i=!0,window.clearTimeout(a),a
Line truncated
|
||||
Use variables instead of inline arguments to overcome this limitation.`)}function z(W,H){var m=null;W.directives&&(m={},W.directives.forEach(function(X){m[X.name.value]={},X.arguments&&X.arguments.forEach(function(ae){var ge=ae.name,Le=ae.value;return b(m[X.name.value],ge,Le,H)})}));var q=null;return W.arguments&&W.arguments.length&&(q={},W.arguments.forEach(function(X){var ae=X.name,ge=X.value;return b(q,ae,ge,H)})),y(W.name.value,q,m)}var U=["connection","include","skip","client","rest","export"];function y(W,H,m){if(m&&m.connection&&m.connection.key)if(m.connection.filter&&m.connection.filter.length>0){var q=m.connection.filter?m.connection.filter:[];q.sort();var X=H,ae={};return q.forEach(function(Oe){ae[Oe]=X[Oe]}),m.connection.key+"("+JSON.stringify(ae)+")"}else return m.connection.key;var ge=W;if(H){var Le=t(H);ge+="("+Le+")"}return m&&Object.keys(m).forEach(function(Oe){U.indexOf(Oe)===-1&&(m[Oe]&&Object.keys(m[Oe]).length?ge+="@"+Oe+"("+JSON.stringify(m[Oe])+")":ge+="@"+Oe)}),ge}function P(W,H){if(W.arguments&&W.arguments.length){var m={};return W.arguments.forEach(function(q){var X=q.name,ae=q.value;return b(m,X,ae,H)}),m}return null}function k(W){return W.alias?W.alias.value:W.name.value}function te(W){return W.kind==="Field"}function ie(W){return W.kind==="InlineFragment"}function J(W){return W&&W.type==="id"}function fe(W,H){return H===void 0&&(H=!1),r({type:"id",generated:H},typeof W=="string"?{id:W,typename:void 0}:W)}function K(W){return W!=null&&typeof W=="object"&&W.type==="json"}function ce(W){throw new Error("Variable nodes are not supported by valueFromNode")}function ve(W,H){switch(H===void 0&&(H=ce),W.kind){case"Variable":return H(W);case"NullValue":return null;case"IntValue":return parseInt(W.value,10);case"FloatValue":return parseFloat(W.value);case"ListValue":return W.values.map(function(ge){return ve(ge,H)});case"ObjectValue":{for(var m={},q=0,X=W.fields;q<X.length;q++){var ae=X[q];m[ae.name.value]=ve(ae.value,H)}return m}default:return W.value}}function se(W,H){if(W.directives&&W.directives.length){var m={};return W.directives.forEach(function(q){m[q.name.value]=P(q,H)}),m}return null}function Q(W,H){if(H===void 0&&(H={}),!W.directives)return!0;var m=!0;return W.directives.forEach(function(q){if(!(q.name.value!=="skip"&&q.name.value!=="include")){var X=q.arguments||[],ae=q.name.value;if(X.length!==1)throw new Error("Incorrect number of arguments for the @"+ae+" directive.");var ge=X[0];if(!ge.name||ge.name.value!=="if")throw new Error("Invalid argument for the @"+ae+" directive.");var Le=X[0].value,Oe=!1;if(!Le||Le.kind!=="BooleanValue"){if(Le.kind!=="Variable")throw new Error("Argument for the @"+ae+" directive must be a variable or a boolean value.");if(Oe=H[Le.name.value],Oe===void 0)throw new Error("Invalid variable referenced in @"+ae+" directive.")}else Oe=Le.value;ae==="skip"&&(Oe=!Oe),Oe||(m=!1)}}),m}function j(W){return!W.selectionSet||!(W.selectionSet.selections.length>0)?[W]:[W].concat(W.selectionSet.selections.map(function(H){return[H].concat(j(H))}).reduce(function(H,m){return H.concat(m)},[]))}function le(W){var H=W.definitions.filter(function(m){return m.selectionSet&&m.selectionSet.selections}).map(function(m){return j(m)}).reduce(function(m,q){return m.concat(q)},[]).filter(function(m){return m.directives&&m.directives.length>0}).map(function(m){return m.directives}).reduce(function(m,q){return m.concat(q)},[]).map(function(m){return m.name.value});return H}function L(W,H){return le(H).some(function(m){return W.indexOf(m)>-1})}var h=Object.assign||function(W){for(var H,m=1,q=arguments.length;m<q;m++){H=arguments[m];for(var X in H)Object.prototype.hasOwnProperty.call(H,X)&&(W[X]=H[X])}return W};function O(W,H){var m=H,q=[];if(W.definitions.forEach(function(ae){if(ae.kind==="OperationDefinition")throw new Error("Found a "+ae.operation+" operation"+(ae.name?" named '"+ae.name.value+"'":"")+". No operations are allowed when using a fragment as a query. Only fragments are allowed.");ae.kind==="FragmentDefinition"&&q.push(ae)}),typeof m>"u"){if(q.length!==1)throw new Error("Found "+q.length+" fragments. `fragmentName` must be provided when there is not exactly 1 fragment.");m=q[0].name.value}var X=h({},W,{definitions:[{kind:"OperationDefinition",operation:"query",selectionSet:{kind:"SelectionSet",selections:[{kind:"FragmentSpread",name:{kind:"Name",value:m}}]}}].concat(W.definitions)});return X}function C(W){for(var H=[],m=1;m<arguments.length;m++)H[m-1]=arguments[m];return H.forEach(function(q){typeof q>"u"||q===null||Object.keys(q).forEach(function(X){W[X]=q[X]})}),W}function F(W){Y(W);var H=W.definitions.filter(function(m){return m.kind==="OperationDefinition"&&m.operation==="mutation"})[0];if(!H)throw new Error("Must contain a mutation definition.");return H}function Y(W){if(W.kind!=="Document")throw new Error('Expecting a parsed GraphQL document. Perhaps you need to wrap the query string in a "gql" tag? http://docs.apollostack.com/apollo-clien
Line truncated
|
||||
|
||||
`)+`
|
||||
@@ -55,7 +55,7 @@ const link = createHttpLink({ uri: '/graphql', fetch: fetch });`)}},M=function()
|
||||
`+n.print(v));return g.message+=`
|
||||
`+E.message,g.stack=E.stack,g}var Me=function(){function E(){}return E.prototype.writeQueryToStore=function(v){var g=v.query,R=v.result,w=v.store,B=w===void 0?P():w,pe=v.variables,be=v.dataIdFromObject,qe=v.fragmentMatcherFunction;return this.writeResultToStore({dataId:"ROOT_QUERY",result:R,document:g,store:B,variables:pe,dataIdFromObject:be,fragmentMatcherFunction:qe})},E.prototype.writeResultToStore=function(v){var g=v.dataId,R=v.result,w=v.document,B=v.store,pe=B===void 0?P():B,be=v.variables,qe=v.dataIdFromObject,he=v.fragmentMatcherFunction,Te=i.getOperationDefinition(w);try{return this.writeSelectionSetToStore({result:R,dataId:g,selectionSet:Te.selectionSet,context:{store:pe,processedData:{},variables:i.assign({},i.getDefaultValues(Te),be),dataIdFromObject:qe,fragmentMap:i.createFragmentMap(i.getFragmentDefinitions(w)),fragmentMatcherFunction:he}})}catch(Ne){throw de(Ne,w)}},E.prototype.writeSelectionSetToStore=function(v){var g=this,R=v.result,w=v.dataId,B=v.selectionSet,pe=v.context,be=pe.variables,qe=pe.store,he=pe.fragmentMap;return B.selections.forEach(function(Te){if(i.shouldInclude(Te,be))if(i.isField(Te)){var Ne=i.resultKeyNameFromField(Te),He=R[Ne];if(typeof He<"u")g.writeFieldToStore({dataId:w,value:He,field:Te,context:pe});else{var it=Te.directives&&Te.directives.length&&Te.directives.some(function(ze){return ze.name&&ze.name.value==="defer"});!it&&pe.fragmentMatcherFunction&&(i.isProduction()||console.warn("Missing field "+Ne+" in "+JSON.stringify(R,null,2).substring(0,100)))}}else{var Fe=void 0;if(i.isInlineFragment(Te))Fe=Te;else if(Fe=(he||{})[Te.name.value],!Fe)throw new Error("No fragment named "+Te.name.value+".");var Ue=!0;if(pe.fragmentMatcherFunction&&Fe.typeCondition){var Mt=i.toIdValue({id:"self",typename:void 0}),tt={store:new Y({self:R}),cacheRedirects:{}},ut=pe.fragmentMatcherFunction(Mt,Fe.typeCondition.name.value,tt);!i.isProduction()&&ut==="heuristic"&&console.error("WARNING: heuristic fragment matching going on!"),Ue=!!ut}Ue&&g.writeSelectionSetToStore({result:R,selectionSet:Fe.selectionSet,dataId:w,context:pe})}}),qe},E.prototype.writeFieldToStore=function(v){var g=v.field,R=v.value,w=v.dataId,B=v.context,pe,be=B.variables,qe=B.dataIdFromObject,he=B.store,Te,Ne,He=i.storeKeyNameFromField(g,be);if(!g.selectionSet||R===null)Te=R!=null&&typeof R=="object"?{type:"json",json:R}:R;else if(Array.isArray(R)){var it=w+"."+He;Te=this.processArrayValue(R,it,g.selectionSet,B)}else{var Fe=w+"."+He,Ue=!0;if(ue(Fe)||(Fe="$"+Fe),qe){var Mt=qe(R);if(Mt&&ue(Mt))throw new Error('IDs returned by dataIdFromObject cannot begin with the "$" character.');(Mt||typeof Mt=="number"&&Mt===0)&&(Fe=Mt,Ue=!1)}Ve(Fe,g,B.processedData)||this.writeSelectionSetToStore({dataId:Fe,result:R,selectionSet:g.selectionSet,context:B});var tt=R.__typename;Te=i.toIdValue({id:Fe,typename:tt},Ue),Ne=he.get(w);var ut=Ne&&Ne[He];if(ut!==Te&&i.isIdValue(ut)){var ze=ut.typename!==void 0,W=tt!==void 0,H=ze&&W&&ut.typename!==tt;if(Ue&&!ut.generated&&!H)throw new Error("Store error: the application attempted to write an object with no provided id"+(" but the store already contains an id of "+ut.id+" for this object. The selectionSet")+` that was trying to be written is:
|
||||
`+n.print(g));if(ze&&!W)throw new Error("Store error: the application attempted to write an object with no provided typename"+(" but the store already contains an object with typename of "+ut.typename+" for the object of id "+ut.id+". The selectionSet")+` that was trying to be written is:
|
||||
`+n.print(g));ut.generated&&(H?Ue||he.delete(ut.id):Ce(ut.id,Te.id,he))}}Ne=he.get(w),(!Ne||!i.isEqual(Te,Ne[He]))&&he.set(w,oe({},Ne,(pe={},pe[He]=Te,pe)))},E.prototype.processArrayValue=function(v,g,R,w){var B=this;return v.map(function(pe,be){if(pe===null)return null;var qe=g+"."+be;if(Array.isArray(pe))return B.processArrayValue(pe,qe,R,w);var he=!0;if(w.dataIdFromObject){var Te=w.dataIdFromObject(pe);Te&&(qe=Te,he=!1)}return Ve(qe,R,w.processedData)||B.writeSelectionSetToStore({dataId:qe,result:pe,selectionSet:R,context:w}),i.toIdValue({id:qe,typename:pe.__typename},he)})},E}();function ue(E){return E[0]==="$"}function Ce(E,v,g){if(E===v)return!1;var R=g.get(E),w=g.get(v),B=!1;Object.keys(R).forEach(function(be){var qe=R[be],he=w[be];i.isIdValue(qe)&&ue(qe.id)&&i.isIdValue(he)&&!i.isEqual(qe,he)&&Ce(qe.id,he.id,g)&&(B=!0)}),g.delete(E);var pe=oe({},R,w);return i.isEqual(pe,w)?B:(g.set(v,pe),!0)}function Ve(E,v,g){if(!g)return!1;if(g[E]){if(g[E].indexOf(v)>=0)return!0;g[E].push(v)}else g[E]=[v];return!1}var De=function(){return De=Object.assign||function(E){for(var v,g=1,R=arguments.length;g<R;g++){v=arguments[g];for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(E[w]=v[w])}return E},De.apply(this,arguments)},S=function(){function E(v){v===void 0&&(v={}),this.data=v,this.recordedData={}}return E.prototype.record=function(v){v(this);var g=this.recordedData;return this.recordedData={},g},E.prototype.toObject=function(){return De({},this.data,this.recordedData)},E.prototype.get=function(v){return this.recordedData.hasOwnProperty(v)?this.recordedData[v]:this.data[v]},E.prototype.set=function(v,g){this.get(v)!==g&&(this.recordedData[v]=g)},E.prototype.delete=function(v){this.recordedData[v]=void 0},E.prototype.clear=function(){var v=this;Object.keys(this.data).forEach(function(g){return v.delete(g)}),this.recordedData={}},E.prototype.replace=function(v){this.clear(),this.recordedData=De({},v)},E}();function G(E,v){var g=new S(E);return g.record(v)}var V=function(){var E=function(v,g){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,w){R.__proto__=w}||function(R,w){for(var B in w)w.hasOwnProperty(B)&&(R[B]=w[B])},E(v,g)};return function(v,g){E(v,g);function R(){this.constructor=v}v.prototype=g===null?Object.create(g):(R.prototype=g.prototype,new R)}}(),re=function(){return re=Object.assign||function(E){for(var v,g=1,R=arguments.length;g<R;g++){v=arguments[g];for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(E[w]=v[w])}return E},re.apply(this,arguments)},Ae={fragmentMatcher:new A,dataIdFromObject:ye,addTypename:!0};function ye(E){if(E.__typename){if(E.id!==void 0)return E.__typename+":"+E.id;if(E._id!==void 0)return E.__typename+":"+E._id}return null}var ke=function(E){V(v,E);function v(g){g===void 0&&(g={});var R=E.call(this)||this;R.optimistic=[],R.watches=new Set,R.typenameDocumentCache=new Map,R.cacheKeyRoot=new z,R.silenceBroadcast=!1,R.config=re({},Ae,g),R.config.customResolvers&&(console.warn("customResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating customResolvers in the next major version."),R.config.cacheRedirects=R.config.customResolvers),R.config.cacheResolvers&&(console.warn("cacheResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating cacheResolvers in the next major version."),R.config.cacheRedirects=R.config.cacheResolvers),R.addTypename=R.config.addTypename,R.data=P(),R.storeReader=new se(R.cacheKeyRoot),R.storeWriter=new Me;var w=R,B=w.maybeBroadcastWatch;return R.maybeBroadcastWatch=b(function(pe){return B.call(R,pe)},{makeCacheKey:function(pe){if(!(pe.optimistic&&w.optimistic.length>0)&&!pe.previousResult&&w.data instanceof y)return w.cacheKeyRoot.lookup(pe.query,JSON.stringify(pe.variables))}}),R}return v.prototype.restore=function(g){return g&&this.data.replace(g),this},v.prototype.extract=function(g){if(g===void 0&&(g=!1),g&&this.optimistic.length>0){var R=this.optimistic.map(function(w){return w.data});return Object.assign.apply(Object,[{},this.data.toObject()].concat(R))}return this.data.toObject()},v.prototype.read=function(g){if(g.rootId&&this.data.get(g.rootId)===void 0)return null;var R=g.optimistic&&this.optimistic.length?P(this.extract(!0)):this.data;return this.storeReader.readQueryFromStore({store:R,query:this.transformDocument(g.query),variables:g.variables,rootId:g.rootId,fragmentMatcherFunction:this.config.fragmentMatcher.match,previousResult:g.previousResult,config:this.config})},v.prototype.write=function(g){this.storeWriter.writeResultToStore({dataId:g.dataId,result:g.result,variables:g.variables,document:this.transformDocument(g.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:this.config.fragmentMatcher.match}),this.broadcastWatches()},v.prototype.diff=function(g){var R=g.optimistic&&this.optimistic.length?P(this.extract(!0)):this.data;return this.storeReader.diffQueryAgainstStore({store:R,quer
Line truncated
|
||||
`+n.print(g));ut.generated&&(H?Ue||he.delete(ut.id):Ce(ut.id,Te.id,he))}}Ne=he.get(w),(!Ne||!i.isEqual(Te,Ne[He]))&&he.set(w,oe({},Ne,(pe={},pe[He]=Te,pe)))},E.prototype.processArrayValue=function(v,g,R,w){var B=this;return v.map(function(pe,be){if(pe===null)return null;var qe=g+"."+be;if(Array.isArray(pe))return B.processArrayValue(pe,qe,R,w);var he=!0;if(w.dataIdFromObject){var Te=w.dataIdFromObject(pe);Te&&(qe=Te,he=!1)}return Ve(qe,R,w.processedData)||B.writeSelectionSetToStore({dataId:qe,result:pe,selectionSet:R,context:w}),i.toIdValue({id:qe,typename:pe.__typename},he)})},E}();function ue(E){return E[0]==="$"}function Ce(E,v,g){if(E===v)return!1;var R=g.get(E),w=g.get(v),B=!1;Object.keys(R).forEach(function(be){var qe=R[be],he=w[be];i.isIdValue(qe)&&ue(qe.id)&&i.isIdValue(he)&&!i.isEqual(qe,he)&&Ce(qe.id,he.id,g)&&(B=!0)}),g.delete(E);var pe=oe({},R,w);return i.isEqual(pe,w)?B:(g.set(v,pe),!0)}function Ve(E,v,g){if(!g)return!1;if(g[E]){if(g[E].indexOf(v)>=0)return!0;g[E].push(v)}else g[E]=[v];return!1}var De=function(){return De=Object.assign||function(E){for(var v,g=1,R=arguments.length;g<R;g++){v=arguments[g];for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(E[w]=v[w])}return E},De.apply(this,arguments)},S=function(){function E(v){v===void 0&&(v={}),this.data=v,this.recordedData={}}return E.prototype.record=function(v){v(this);var g=this.recordedData;return this.recordedData={},g},E.prototype.toObject=function(){return De({},this.data,this.recordedData)},E.prototype.get=function(v){return this.recordedData.hasOwnProperty(v)?this.recordedData[v]:this.data[v]},E.prototype.set=function(v,g){this.get(v)!==g&&(this.recordedData[v]=g)},E.prototype.delete=function(v){this.recordedData[v]=void 0},E.prototype.clear=function(){var v=this;Object.keys(this.data).forEach(function(g){return v.delete(g)}),this.recordedData={}},E.prototype.replace=function(v){this.clear(),this.recordedData=De({},v)},E}();function G(E,v){var g=new S(E);return g.record(v)}var V=function(){var E=function(v,g){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(R,w){R.__proto__=w}||function(R,w){for(var B in w)w.hasOwnProperty(B)&&(R[B]=w[B])},E(v,g)};return function(v,g){E(v,g);function R(){this.constructor=v}v.prototype=g===null?Object.create(g):(R.prototype=g.prototype,new R)}}(),re=function(){return re=Object.assign||function(E){for(var v,g=1,R=arguments.length;g<R;g++){v=arguments[g];for(var w in v)Object.prototype.hasOwnProperty.call(v,w)&&(E[w]=v[w])}return E},re.apply(this,arguments)},Ae={fragmentMatcher:new A,dataIdFromObject:ye,addTypename:!0};function ye(E){if(E.__typename){if(E.id!==void 0)return E.__typename+":"+E.id;if(E._id!==void 0)return E.__typename+":"+E._id}return null}var ke=function(E){V(v,E);function v(g){g===void 0&&(g={});var R=E.call(this)||this;R.optimistic=[],R.watches=new Set,R.typenameDocumentCache=new Map,R.cacheKeyRoot=new z,R.silenceBroadcast=!1,R.config=re({},Ae,g),R.config.customResolvers&&(console.warn("customResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating customResolvers in the next major version."),R.config.cacheRedirects=R.config.customResolvers),R.config.cacheResolvers&&(console.warn("cacheResolvers have been renamed to cacheRedirects. Please update your config as we will be deprecating cacheResolvers in the next major version."),R.config.cacheRedirects=R.config.cacheResolvers),R.addTypename=R.config.addTypename,R.data=P(),R.storeReader=new se(R.cacheKeyRoot),R.storeWriter=new Me;var w=R,B=w.maybeBroadcastWatch;return R.maybeBroadcastWatch=b(function(pe){return B.call(R,pe)},{makeCacheKey:function(pe){if(!(pe.optimistic&&w.optimistic.length>0)&&!pe.previousResult&&w.data instanceof y)return w.cacheKeyRoot.lookup(pe.query,JSON.stringify(pe.variables))}}),R}return v.prototype.restore=function(g){return g&&this.data.replace(g),this},v.prototype.extract=function(g){if(g===void 0&&(g=!1),g&&this.optimistic.length>0){var R=this.optimistic.map(function(w){return w.data});return Object.assign.apply(Object,[{},this.data.toObject()].concat(R))}return this.data.toObject()},v.prototype.read=function(g){if(g.rootId&&this.data.get(g.rootId)===void 0)return null;var R=g.optimistic&&this.optimistic.length?P(this.extract(!0)):this.data;return this.storeReader.readQueryFromStore({store:R,query:this.transformDocument(g.query),variables:g.variables,rootId:g.rootId,fragmentMatcherFunction:this.config.fragmentMatcher.match,previousResult:g.previousResult,config:this.config})},v.prototype.write=function(g){this.storeWriter.writeResultToStore({dataId:g.dataId,result:g.result,variables:g.variables,document:this.transformDocument(g.query),store:this.data,dataIdFromObject:this.config.dataIdFromObject,fragmentMatcherFunction:this.config.fragmentMatcher.match}),this.broadcastWatches()},v.prototype.diff=function(g){var R=g.optimistic&&this.optimistic.length?P(this.extract(!0)):this.data;return this.storeReader.diffQueryAgainstStore({store:R,quer
Line truncated
|
||||
|
||||
`)+`
|
||||
`}function L5(e,t){var r=t.line,n=e.locationOffset.line-1,i=TIe(e,t),a=r+n,o=t.column+i,c=(a-1).toString(),s=a.toString(),f=(a+1).toString(),M=f.length,d=e.body.split(/\r\n|[\n\r]/g);d[0]=YE(e.locationOffset.column-1)+d[0];var A=[e.name+" ("+a+":"+o+")",r>=2&&xE(M,c)+": "+d[r-2],xE(M,s)+": "+d[r-1],YE(2+M+o-1)+"^",r<d.length&&xE(M,f)+": "+d[r]];return A.filter(Boolean).join(`
|
||||
|
||||
Reference in new issue
Block a user