Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@jspreadsheet/client

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jspreadsheet/client - npm Package Compare versions

Comparing version 11.11.1 to 11.11.7

59

dist/index.js

@@ -17,34 +17,35 @@ /**

var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,b,c){if(a==Array.prototype||a==Object.prototype)return a;a[b]=c.value;return a};
$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var b=0;b<a.length;++b){var c=a[b];if(c&&c.Math==Math)return c}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,b,c){if(!c||null!=a){c=$jscomp.propertyToPolyfillSymbol[b];if(null==c)return a[b];c=a[c];return void 0!==c?c:a[b]}};$jscomp.polyfill=function(a,b,c,e){b&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,b,c,e):$jscomp.polyfillUnisolated(a,b,c,e))};
$jscomp.polyfillUnisolated=function(a,b,c,e){c=$jscomp.global;a=a.split(".");for(e=0;e<a.length-1;e++){var f=a[e];if(!(f in c))return;c=c[f]}a=a[a.length-1];e=c[a];b=b(e);b!=e&&null!=b&&$jscomp.defineProperty(c,a,{configurable:!0,writable:!0,value:b})};
$jscomp.polyfillIsolated=function(a,b,c,e){var f=a.split(".");a=1===f.length;e=f[0];e=!a&&e in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var u=0;u<f.length-1;u++){var l=f[u];if(!(l in e))return;e=e[l]}f=f[f.length-1];c=$jscomp.IS_SYMBOL_NATIVE&&"es6"===c?e[f]:null;b=b(c);null!=b&&(a?$jscomp.defineProperty($jscomp.polyfills,f,{configurable:!0,writable:!0,value:b}):b!==c&&(void 0===$jscomp.propertyToPolyfillSymbol[f]&&(c=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[f]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(f):$jscomp.POLYFILL_PREFIX+c+"$"+f),$jscomp.defineProperty(e,$jscomp.propertyToPolyfillSymbol[f],{configurable:!0,writable:!0,value:b})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},b={};try{return b.__proto__=a,b.a}catch(c){}return!1};
$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,b){a.__proto__=b;if(a.__proto__!==b)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.arrayIteratorImpl=function(a){var b=0;return function(){return b<a.length?{done:!1,value:a[b++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};
$jscomp.makeIterator=function(a){var b="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(b)return b.call(a);if("number"==typeof a.length)return $jscomp.arrayIterator(a);throw Error(String(a)+" is not an iterable or ArrayLike");};$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.SIMPLE_FROUND_POLYFILL=!1;$jscomp.ISOLATE_POLYFILLS=!1;$jscomp.FORCE_POLYFILL_PROMISE=!1;$jscomp.FORCE_POLYFILL_PROMISE_WHEN_NO_UNHANDLED_REJECTION=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,c,d){if(a==Array.prototype||a==Object.prototype)return a;a[c]=d.value;return a};
$jscomp.getGlobal=function(a){a=["object"==typeof globalThis&&globalThis,a,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var c=0;c<a.length;++c){var d=a[c];if(d&&d.Math==Math)return d}throw Error("Cannot find global object");};$jscomp.global=$jscomp.getGlobal(this);$jscomp.IS_SYMBOL_NATIVE="function"===typeof Symbol&&"symbol"===typeof Symbol("x");$jscomp.TRUST_ES6_POLYFILLS=!$jscomp.ISOLATE_POLYFILLS||$jscomp.IS_SYMBOL_NATIVE;$jscomp.polyfills={};
$jscomp.propertyToPolyfillSymbol={};$jscomp.POLYFILL_PREFIX="$jscp$";var $jscomp$lookupPolyfilledValue=function(a,c,d){if(!d||null!=a){d=$jscomp.propertyToPolyfillSymbol[c];if(null==d)return a[c];d=a[d];return void 0!==d?d:a[c]}};$jscomp.polyfill=function(a,c,d,f){c&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(a,c,d,f):$jscomp.polyfillUnisolated(a,c,d,f))};
$jscomp.polyfillUnisolated=function(a,c,d,f){d=$jscomp.global;a=a.split(".");for(f=0;f<a.length-1;f++){var g=a[f];if(!(g in d))return;d=d[g]}a=a[a.length-1];f=d[a];c=c(f);c!=f&&null!=c&&$jscomp.defineProperty(d,a,{configurable:!0,writable:!0,value:c})};
$jscomp.polyfillIsolated=function(a,c,d,f){var g=a.split(".");a=1===g.length;f=g[0];f=!a&&f in $jscomp.polyfills?$jscomp.polyfills:$jscomp.global;for(var v=0;v<g.length-1;v++){var m=g[v];if(!(m in f))return;f=f[m]}g=g[g.length-1];d=$jscomp.IS_SYMBOL_NATIVE&&"es6"===d?f[g]:null;c=c(d);null!=c&&(a?$jscomp.defineProperty($jscomp.polyfills,g,{configurable:!0,writable:!0,value:c}):c!==d&&(void 0===$jscomp.propertyToPolyfillSymbol[g]&&(d=1E9*Math.random()>>>0,$jscomp.propertyToPolyfillSymbol[g]=$jscomp.IS_SYMBOL_NATIVE?
$jscomp.global.Symbol(g):$jscomp.POLYFILL_PREFIX+d+"$"+g),$jscomp.defineProperty(f,$jscomp.propertyToPolyfillSymbol[g],{configurable:!0,writable:!0,value:c})))};$jscomp.underscoreProtoCanBeSet=function(){var a={a:!0},c={};try{return c.__proto__=a,c.a}catch(d){}return!1};
$jscomp.setPrototypeOf=$jscomp.TRUST_ES6_POLYFILLS&&"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:$jscomp.underscoreProtoCanBeSet()?function(a,c){a.__proto__=c;if(a.__proto__!==c)throw new TypeError(a+" is not extensible");return a}:null;$jscomp.arrayIteratorImpl=function(a){var c=0;return function(){return c<a.length?{done:!1,value:a[c++]}:{done:!0}}};$jscomp.arrayIterator=function(a){return{next:$jscomp.arrayIteratorImpl(a)}};
$jscomp.makeIterator=function(a){var c="undefined"!=typeof Symbol&&Symbol.iterator&&a[Symbol.iterator];if(c)return c.call(a);if("number"==typeof a.length)return $jscomp.arrayIterator(a);throw Error(String(a)+" is not an iterable or ArrayLike");};$jscomp.generator={};$jscomp.generator.ensureIteratorResultIsObject_=function(a){if(!(a instanceof Object))throw new TypeError("Iterator result "+a+" is not an object");};
$jscomp.generator.Context=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null};$jscomp.generator.Context.prototype.start_=function(){if(this.isRunning_)throw new TypeError("Generator is already running");this.isRunning_=!0};$jscomp.generator.Context.prototype.stop_=function(){this.isRunning_=!1};
$jscomp.generator.Context.prototype.jumpToErrorHandler_=function(){this.nextAddress=this.catchAddress_||this.finallyAddress_};$jscomp.generator.Context.prototype.next_=function(a){this.yieldResult=a};$jscomp.generator.Context.prototype.throw_=function(a){this.abruptCompletion_={exception:a,isException:!0};this.jumpToErrorHandler_()};$jscomp.generator.Context.prototype.return=function(a){this.abruptCompletion_={return:a};this.nextAddress=this.finallyAddress_};
$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,b){this.nextAddress=b;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,b){a=$jscomp.makeIterator(a);var c=a.next();$jscomp.generator.ensureIteratorResultIsObject_(c);if(c.done)this.yieldResult=c.value,this.nextAddress=b;else return this.yieldAllIterator_=a,this.yield(c.value,b)};
$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,b){this.catchAddress_=a;void 0!=b&&(this.finallyAddress_=b)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,b){this.nextAddress=a;this.catchAddress_=b||0};
$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,b,c){c?this.finallyContexts_[c]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=b||0};
$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,b){b=this.finallyContexts_.splice(b||0)[0];if(b=this.abruptCompletion_=this.abruptCompletion_||b){if(b.isException)return this.jumpToErrorHandler_();void 0!=b.jumpTo&&this.finallyAddress_<b.jumpTo?(this.nextAddress=b.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)};
$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var b in a)this.properties_.push(b);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a};
$jscomp.generator.Context.prototype.jumpThroughFinallyBlocks=function(a){this.abruptCompletion_={jumpTo:a};this.nextAddress=this.finallyAddress_};$jscomp.generator.Context.prototype.yield=function(a,c){this.nextAddress=c;return{value:a}};$jscomp.generator.Context.prototype.yieldAll=function(a,c){a=$jscomp.makeIterator(a);var d=a.next();$jscomp.generator.ensureIteratorResultIsObject_(d);if(d.done)this.yieldResult=d.value,this.nextAddress=c;else return this.yieldAllIterator_=a,this.yield(d.value,c)};
$jscomp.generator.Context.prototype.jumpTo=function(a){this.nextAddress=a};$jscomp.generator.Context.prototype.jumpToEnd=function(){this.nextAddress=0};$jscomp.generator.Context.prototype.setCatchFinallyBlocks=function(a,c){this.catchAddress_=a;void 0!=c&&(this.finallyAddress_=c)};$jscomp.generator.Context.prototype.setFinallyBlock=function(a){this.catchAddress_=0;this.finallyAddress_=a||0};$jscomp.generator.Context.prototype.leaveTryBlock=function(a,c){this.nextAddress=a;this.catchAddress_=c||0};
$jscomp.generator.Context.prototype.enterCatchBlock=function(a){this.catchAddress_=a||0;a=this.abruptCompletion_.exception;this.abruptCompletion_=null;return a};$jscomp.generator.Context.prototype.enterFinallyBlock=function(a,c,d){d?this.finallyContexts_[d]=this.abruptCompletion_:this.finallyContexts_=[this.abruptCompletion_];this.catchAddress_=a||0;this.finallyAddress_=c||0};
$jscomp.generator.Context.prototype.leaveFinallyBlock=function(a,c){c=this.finallyContexts_.splice(c||0)[0];if(c=this.abruptCompletion_=this.abruptCompletion_||c){if(c.isException)return this.jumpToErrorHandler_();void 0!=c.jumpTo&&this.finallyAddress_<c.jumpTo?(this.nextAddress=c.jumpTo,this.abruptCompletion_=null):this.nextAddress=this.finallyAddress_}else this.nextAddress=a};$jscomp.generator.Context.prototype.forIn=function(a){return new $jscomp.generator.Context.PropertyIterator(a)};
$jscomp.generator.Context.PropertyIterator=function(a){this.object_=a;this.properties_=[];for(var c in a)this.properties_.push(c);this.properties_.reverse()};$jscomp.generator.Context.PropertyIterator.prototype.getNext=function(){for(;0<this.properties_.length;){var a=this.properties_.pop();if(a in this.object_)return a}return null};$jscomp.generator.Engine_=function(a){this.context_=new $jscomp.generator.Context;this.program_=a};
$jscomp.generator.Engine_.prototype.next_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_.next,a,this.context_.next_);this.context_.next_(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var b=this.context_.yieldAllIterator_;if(b)return this.yieldAllStep_("return"in b?b["return"]:function(c){return{value:c,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.return_=function(a){this.context_.start_();var c=this.context_.yieldAllIterator_;if(c)return this.yieldAllStep_("return"in c?c["return"]:function(d){return{value:d,done:!0}},a,this.context_.return);this.context_.return(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.throw_=function(a){this.context_.start_();if(this.context_.yieldAllIterator_)return this.yieldAllStep_(this.context_.yieldAllIterator_["throw"],a,this.context_.next_);this.context_.throw_(a);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,b,c){try{var e=a.call(this.context_.yieldAllIterator_,b);$jscomp.generator.ensureIteratorResultIsObject_(e);if(!e.done)return this.context_.stop_(),e;var f=e.value}catch(u){return this.context_.yieldAllIterator_=null,this.context_.throw_(u),this.nextStep_()}this.context_.yieldAllIterator_=null;c.call(this.context_,f);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(b){this.context_.yieldResult=void 0,this.context_.throw_(b)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}};
$jscomp.generator.Generator_=function(a){this.next=function(b){return a.next_(b)};this.throw=function(b){return a.throw_(b)};this.return=function(b){return a.return_(b)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,b){b=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(b));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(b,a.prototype);return b};
$jscomp.asyncExecutePromiseGenerator=function(a){function b(e){return a.next(e)}function c(e){return a.throw(e)}return new Promise(function(e,f){function u(l){l.done?e(l.value):Promise.resolve(l.value).then(b,c).then(u,f)}u(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
(function(a,b){const c=a0_0x20fc;for(a=a();;)try{if(parseInt(c(420))/1+-parseInt(c(437))/2+-parseInt(c(457))/3+-parseInt(c(423))/4+parseInt(c(440))/5*(parseInt(c(415))/6)+-parseInt(c(424))/7*(parseInt(c(466))/8)+-parseInt(c(470))/9*(-parseInt(c(439))/10)===b)break;else a.push(a.shift())}catch(e){a.push(a.shift())}})(a0_0xc0a8,741851);
function a0_0xc0a8(){const a="disconnected;load;1090812pfydnp;JSS;onbeforeload;file;push;worksheet;getWorksheet;progress;onevent;18520JqEFvm;add;destroy;status;558jPGJNm;Not connect to any server;undefined;guid;license;connect_error;classList;async;options;shift;ignorePersistence;args;main.json;There is a connection issue that seems to be fixed. Reconnecting to your table...;Not connect to the server;api/;auth;forceRefresh;https://jspreadsheet.com/;arraybuffer;socket.io/;stringify;180CfiRGY;user;string;contains;ignore;1100757PiEnja;onbeforecreate;onbeforeloadimage;1941844TjXrRy;2163VkfmQz;JSS: socket.io not found;open;getServerPath;onerror;resetBorders;setBorder;socket;worksheetId;function;data;object;connect;1961416sVHuHA;history;344910hnhont;7960htuSNS;ignoreCloud;config;JSS: socket not loaded;emit;location;parse;getServerUrl;error;values;url;path;disconnect;ondestroy;element".split(";");a0_0xc0a8=
function(){return a};return a0_0xc0a8()}function a0_0x20fc(a,b){const c=a0_0xc0a8();return a0_0x20fc=function(e,f){return c[e-394]},a0_0x20fc(a,b)}
(function(a,b){typeof exports===a0_0x20fc(435)&&"undefined"!==typeof module?module.exports=b():"function"===typeof define&&define.amd?define(b):a.client=b()})(this,function(){const a=a0_0x20fc;let b=null;const c={url:a(411),path:a(408)},e=function(d){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const m=new JSZip;return m.file(a(405),JSON[a(414)](d)),m.generateAsync({type:a(412)})})},f=function(d){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const m=yield(yield JSZip.loadAsync(d))[a(460)](a(405))[a(400)](a(417));
return JSON[a(446)](m)})},u=function(d){const m={},w=[];let q=!1;d[a(441)]=!1;const v=function(g){alert(g);window[a(426)](window[a(445)].href,"_self")},t=function(){const g=w[a(402)]();if(g){var {requestInfo:n,callback:h}=g;e(n).then(r=>{d[a(431)][a(444)](a(458),r,function(p){t();p[a(469)]?(typeof h===a(433)&&h(p),p.data&&n[a(462)].updateCells(p[a(434)])):k(p)})})}else q=!1,d.progress(!1)},k=function(g,n){!0===n&&d[a(454)][a(399)][a(467)](a(455));typeof g===a(417)&&(g={message:g});typeof c.onerror===
a(433)?c.onerror(g):console[a(448)](g)};m.persistence=function(g,n,h,r){if(typeof io==a(395))return!1;d[a(441)]||(d[a(431)]?("setBorder"!==n&&d[a(464)](!0),g={requestInfo:{worksheet:g[a(401)][a(432)],method:n,args:h?Object[a(449)](h):[]},callback:r},w[a(461)](g),q||(q=!0,t())):console.error(a(443)))};m[a(465)]=function(g,n,h,r){if(g===a(422)&&typeof c[a(422)]===a(433))return c[a(422)](n,h,r)};return function(){if(typeof io==a(395))k("JSS: socket.io not found",!0);else{let g=Object.assign({},{type:a(431),
guid:d[a(442)][a(396)]},c[a(409)]);d[a(431)]=io(c[a(450)],{path:"/"+(c[a(451)]||"")+a(413),query:g});d[a(431)].on(a(398),n=>{k(n,!0)});d[a(431)].on(a(436),function(){d[a(454)][a(399)][a(418)](a(455))&&v(a(406))});d[a(431)].on(a(452),function(){d[a(454)][a(399)][a(467)](a(455))});d.socket.on(a(410),function(n){v(n[a(404)][0])});d[a(431)].on(a(458),function(n){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var h=yield f(n);b[a(438)][a(419)]=!0;d.ignoreCloud=!0;d[a(403)]=!0;let r=h.method;
var p=h[a(462)];p=d[a(463)](p);if(p=(p=d.worksheets[p])?p:!1)if(r===a(430))p.setBorder(...h[a(404)],h[a(416)]);else if(r===a(429))p[a(429)](h[a(416)],!0);else h=h[a(404)]||[],typeof p[r]==a(433)&&p[r](...h);else typeof d[r]==a(433)&&d[r](...h[a(404)]);d[a(441)]=!1;d.ignorePersistence=!1;b[a(438)][a(419)]=!1})})}}(),m},l=function(d){if(typeof io==a(395))console[a(448)](a(425));else if(d){d[a(450)]&&(c[a(450)]=d[a(450)]);typeof d.path!==a(395)&&(c.path=d[a(451)]);d[a(409)]&&(c.auth=d[a(409)]);d.onerror&&
(c.onerror=d[a(428)]);d[a(421)]&&(c[a(421)]=d[a(421)]);d[a(459)]&&(c[a(459)]=d.onbeforeload);d[a(422)]&&(c[a(422)]=d[a(422)]);var m=io(d.url,{path:"/"+(d.path||"")+"socket.io/",query:Object.assign({},{type:a(431)},c[a(409)])}),w=function(q,v){let t;typeof q===a(417)?t=q:t=q.guid;m[a(444)](a(456),t,function(k){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){k=yield f(k);1===k[a(448)]?console[a(448)](k):(typeof k.config!==a(395)&&(k=k.config),"string"===typeof k&&(k=JSON.parse(k)),v(k))})})};
return l[a(456)]=function(q,v){w(q,function(t){const k=a0_0x20fc;typeof c[k(421)]==k(433)&&c[k(421)](t);v(t)})},{load:w,create:function(q,v){return new Promise(function(t,k){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const g=a0_0x20fc;if(m){const n=yield e({guid:q,config:JSON[g(414)](v)});m[g(444)]("create",n,function(h){!1!==h?t(h):k(h)})}else console[g(448)](g(394))})})},destroy:function(q,v){m?m[a(444)](a(468),q,v):console[a(448)](a(394))},disconnect:function(){m.disconnect();
m=null}}}};return l.oninit=function(d,m){d[a(442)][a(396)]&&d.setPlugins({client:u})},l[a(453)]=function(d){d[a(431)]&&d[a(431)][a(452)]()},l[a(447)]=function(d){return d?c[a(450)]:c[a(450)]+c.path},l[a(427)]=function(){return c[a(451)]},l[a(456)]=function(){console[a(448)](a(407))},l.connect=l,l.onbeforeloadimage=function(){return c[a(422)](...arguments)},l[a(397)]=function(){!b&&(b=this)},l});
$jscomp.generator.Engine_.prototype.yieldAllStep_=function(a,c,d){try{var f=a.call(this.context_.yieldAllIterator_,c);$jscomp.generator.ensureIteratorResultIsObject_(f);if(!f.done)return this.context_.stop_(),f;var g=f.value}catch(v){return this.context_.yieldAllIterator_=null,this.context_.throw_(v),this.nextStep_()}this.context_.yieldAllIterator_=null;d.call(this.context_,g);return this.nextStep_()};
$jscomp.generator.Engine_.prototype.nextStep_=function(){for(;this.context_.nextAddress;)try{var a=this.program_(this.context_);if(a)return this.context_.stop_(),{value:a.value,done:!1}}catch(c){this.context_.yieldResult=void 0,this.context_.throw_(c)}this.context_.stop_();if(this.context_.abruptCompletion_){a=this.context_.abruptCompletion_;this.context_.abruptCompletion_=null;if(a.isException)throw a.exception;return{value:a.return,done:!0}}return{value:void 0,done:!0}};
$jscomp.generator.Generator_=function(a){this.next=function(c){return a.next_(c)};this.throw=function(c){return a.throw_(c)};this.return=function(c){return a.return_(c)};this[Symbol.iterator]=function(){return this}};$jscomp.generator.createGenerator=function(a,c){c=new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(c));$jscomp.setPrototypeOf&&a.prototype&&$jscomp.setPrototypeOf(c,a.prototype);return c};
$jscomp.asyncExecutePromiseGenerator=function(a){function c(f){return a.next(f)}function d(f){return a.throw(f)}return new Promise(function(f,g){function v(m){m.done?f(m.value):Promise.resolve(m.value).then(c,d).then(v,g)}v(a.next())})};$jscomp.asyncExecutePromiseGeneratorFunction=function(a){return $jscomp.asyncExecutePromiseGenerator(a())};$jscomp.asyncExecutePromiseGeneratorProgram=function(a){return $jscomp.asyncExecutePromiseGenerator(new $jscomp.generator.Generator_(new $jscomp.generator.Engine_(a)))};
function a0_0x13e2(a,c){const d=a0_0x29ac();return a0_0x13e2=function(f,g){return d[f-433]},a0_0x13e2(a,c)}(function(a,c){const d=a0_0x13e2;for(a=a();;)try{if(parseInt(d(465))/1+-parseInt(d(460))/2*(parseInt(d(477))/3)+-parseInt(d(496))/4*(-parseInt(d(468))/5)+parseInt(d(483))/6*(-parseInt(d(486))/7)+-parseInt(d(467))/8*(-parseInt(d(455))/9)+parseInt(d(493))/10*(parseInt(d(474))/11)+parseInt(d(504))/12===c)break;else a.push(a.shift())}catch(f){a.push(a.shift())}})(a0_0x29ac,473775);
(function(a,c){const d=a0_0x13e2;typeof exports===d(459)&&typeof module!==d(436)?module[d(484)]=c():typeof define===d(482)&&define[d(479)]?define(c):a.client=c()})(this,function(){const a=a0_0x13e2;let c=null;const d={url:"",path:""},f=function(e){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){const b=a0_0x13e2,q=new JSZip;return q.file(b(505),JSON[b(434)](e)),q.generateAsync({type:b(447)})})},g=function(e){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var b=a0_0x13e2;
b=yield(yield JSZip.loadAsync(e)).file(b(505))[b(494)](b(445));return JSON.parse(b)})},v=function(e){const b=a0_0x13e2,q={},x=[];let r=!1;e[b(451)]=!1;const w=function(h){alert(h);window[b(439)](window[b(501)][b(497)],"_self")},u=function(){const h=x[b(458)]();if(h){var {requestInfo:l,callback:n}=h;f(l).then(t=>{e[b(476)].emit(b(499),t,function(p){u();p[b(471)]?(typeof n===b(482)&&n(p),p[b(464)]&&l[b(503)][b(485)](p[b(464)])):k(p)})})}else r=!1,e.progress(!1)},k=function(h,l){!0===l&&e[b(492)][b(433)][b(456)]("disconnected");
typeof h===b(445)&&(h={message:h});typeof d[b(466)]===b(482)?d[b(466)](h):console.error(h)};q[b(488)]=function(h,l,n,t){if(typeof io==b(436))return!1;if(!e[b(451)])if(e.socket)l!==b(506)&&e.progress(!0),h={requestInfo:{worksheet:h[b(441)][b(478)],method:l,args:n?Object.values(n):[]},callback:t},x[b(469)](h),r||(r=!0,u());else console[b(487)](b(498))};q.onevent=function(h,l,n,t){if("onbeforeloadimage"===h&&typeof d.onbeforeloadimage===b(482))return d[b(472)](l,n,t)};return function(){if("undefined"==
typeof io)k(b(470),!0);else{let h=Object.assign({},{type:b(476),guid:e[b(446)][b(450)]},d[b(454)]);e[b(476)]=io(d[b(491)],{path:"/"+(d[b(457)]||"")+"socket.io/",query:h});e[b(476)].on("connect_error",l=>{k(l,!0)});e.socket.on(b(440),function(){e.element[b(433)][b(475)](b(448))&&w("There is a connection issue that seems to be fixed. Reconnecting to your table...")});e[b(476)].on(b(461),function(){e[b(492)][b(433)][b(456)](b(448))});e[b(476)].on(b(481),function(l){w(l.args[0])});e.socket.on(b(499),
function(l){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var n=yield g(l);c[b(495)][b(462)]=!0;e[b(451)]=!0;e[b(442)]=!0;let t=n[b(438)];var p=n[b(503)];p=e.getWorksheet(p);if(p=(p=e.worksheets[p])?p:!1)if("setBorder"===t)p[b(506)](...n[b(473)],n[b(463)]);else if(t===b(480))p[b(480)](n[b(463)],!0);else n=n[b(473)]||[],typeof p[t]==b(482)&&p[t](...n);else typeof e[t]==b(482)&&e[t](...n[b(473)]);e.ignoreCloud=!1;e[b(442)]=!1;c[b(495)][b(462)]=!1})})}}(),q},m=function(e){const b=a0_0x13e2;
if(typeof io==b(436))console[b(487)](b(470));else if(e){e[b(491)]&&(d[b(491)]=e[b(491)]);typeof e[b(457)]!==b(436)&&(d[b(457)]=e[b(457)]);e.auth&&(d[b(454)]=e[b(454)]);e.onerror&&(d[b(466)]=e[b(466)]);e[b(443)]&&(d.onbeforecreate=e[b(443)]);e[b(449)]&&(d[b(449)]=e[b(449)]);e.onbeforeloadimage&&(d[b(472)]=e.onbeforeloadimage);var q=io(e.url,{path:"/"+(e[b(457)]||"")+b(437),query:Object.assign({},{type:b(476)},d.auth)}),x=function(r,w){let u;typeof r===b(445)?u=r:u=r[b(450)];q[b(444)](b(502),u,function(k){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){k=
yield g(k);1===k.error?console[b(487)](k):(typeof k.config!==b(436)&&(k=k[b(446)]),typeof k===b(445)&&(k=JSON[b(490)](k)),w(k))})})};return m[b(502)]=function(r,w){x(r,function(u){const k=a0_0x13e2;typeof d[k(443)]==k(482)&&d[k(443)](u);w(u)})},{load:x,create:function(r,w){return new Promise(function(u,k){return $jscomp.asyncExecutePromiseGeneratorFunction(function*(){var h=a0_0x13e2;if(q)h=yield f({guid:r,config:JSON.stringify(w)}),q.emit("create",h,function(l){!1!==l?u(l):k(l)});else console[h(487)](h(452))})})},
destroy:function(r,w){q?q[b(444)]("destroy",r,w):console[b(487)](b(452))},disconnect:function(){q[b(461)]();q=null}}}};return m.oninit=function(e,b){b=a0_0x13e2;e[b(446)][b(450)]&&e[b(500)]({client:v})},m[a(489)]=function(e){e.socket&&e.socket[a(461)]()},m[a(435)]=function(e){return e?d.url:d.url+d[a(457)]},m.getServerPath=function(){return d.path},m.load=function(){console.error("Not connect to the server")},m.connect=m,m.onbeforeloadimage=function(){return d[a(472)](...arguments)},m[a(453)]=function(){!c&&
(c=this)},m});
function a0_0x29ac(){const a="onbeforecreate;emit;string;config;arraybuffer;disconnected;onbeforeload;guid;ignoreCloud;Not connect to any server;license;auth;36ckjFXs;add;path;shift;object;126484cAtGAW;disconnect;ignore;user;data;547998qcgsIW;onerror;516848ctJjoF;15xQdKzk;push;JSS: socket.io not found;status;onbeforeloadimage;args;101035DyXLmo;contains;socket;33pYVuhY;worksheetId;amd;resetBorders;forceRefresh;function;1060590ioTsbN;exports;updateCells;35YhWVrK;error;persistence;ondestroy;parse;url;element;590EUOkzx;async;history;285584AwHmTJ;href;JSS: socket not loaded;JSS;setPlugins;location;load;worksheet;5888844EhrEmg;main.json;setBorder;classList;stringify;getServerUrl;undefined;socket.io/;method;open;connect;options;ignorePersistence".split(";");a0_0x29ac=
function(){return a};return a0_0x29ac()};

@@ -34,3 +34,3 @@ {

"types": "dist/index.d.ts",
"version": "11.11.1",
"version": "11.11.7",
"bugs": "https://github.com/jspreadsheet/pro/issues",

@@ -37,0 +37,0 @@ "homepage": "https://github.com/jspreadsheet/pro",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc