{ "pandav:/index.js": { "cubeCode": "Cube('pandav:/com/customPath/0.0.2',['pandav:/npm/bcore/0.0.18/event','pandav:/npm/react/17.0.2','pandav:/npm/react-dom/17.0.2','pandav:/com/customPath/0.0.2/com.jsx','pandav:/npm/jquery/2.1.4'],function(a,b,c){function d(){function b(a,b,d,f){var i=b&&b.prototype instanceof h?b:h,c=Object.create(i.prototype);return g(c,'_invoke',function(a,b,g){function h(a,b){for(k=a,s=b,e=0;!w&&t&&!c&&ea&&ga||f[0]>b||b>h)&&(f[4]=a,f[5]=b,p.n=h,k=0))}if(c||1k?m:s)||!w;){j||(k?3>k?(1k&&(k=0)}else 1===k&&(e=j.return)&&e.call(j),2>k&&(s=TypeError('The iterator does not provide a \\''+c+'\\' method'),k=1);j=m}else if((e=(w=0>p.n)?s:a.call(b,p))!==q)break}catch(a){j=m,k=1,s=a}finally{t=1}}return{value:e,done:w}}}(a,d,f),!0),c}function h(){}function i(){}function j(){}function k(a){return Object.setPrototypeOf?Object.setPrototypeOf(a,j):(a.__proto__=j,g(a,n,'GeneratorFunction')),a.prototype=Object.create(c),a}var m,e,f='function'==typeof Symbol?Symbol:{},l=f.iterator||'@@iterator',n=f.toStringTag||'@@toStringTag',q={};e=Object.getPrototypeOf;var a=[][l]?e(e([][l]())):(g(e={},l,function(){return this}),e),c=j.prototype=h.prototype=Object.create(a);return i.prototype=j,g(c,'constructor',j),g(j,'constructor',i),i.displayName='GeneratorFunction',g(j,n,'GeneratorFunction'),g(c),g(c,n,'Generator'),g(c,l,function(){return this}),g(c,'toString',function(){return'[object Generator]'}),(d=function a(){return{w:b,m:k}})()}function g(a,b,c,d){var f=Object.defineProperty;try{f({},'',{})}catch(a){f=0}g=function e(a,b,c,d){function h(b,c){g(a,b,function(a){return this._invoke(b,c,a)})}b?f?f(a,b,{value:c,enumerable:!d,configurable:!d,writable:!d}):a[b]=c:(h('next',0),h('throw',1),h('return',2))},g(a,b,c,d)}function h(b,d,f,e,g,h,a){try{var c=b[h](a),i=c.value}catch(a){return void f(a)}c.done?d(i):Promise.resolve(i).then(e,g)}function i(b){return function(){var c=this,d=arguments;return new Promise(function(e,f){function g(a){h(j,e,f,g,i,'next',a)}function i(a){h(j,e,f,g,i,'throw',a)}var j=b.apply(c,d);g(void 0)})}}var j=c('pandav:/npm/bcore/0.0.18/event'),k=c('pandav:/npm/react/17.0.2'),l=c('pandav:/npm/react-dom/17.0.2'),m=c('pandav:/com/customPath/0.0.2/com.jsx'),n=c('pandav:/npm/jquery/2.1.4');return a.exports=j.extend(function(a,b){this.config={theme:{}},this.container=a,this.apis=b.apis,this.containSize={boxWidth:n(a)&&n(a).width(),boxHeight:n(a)&&n(a).height()},this.init(b)},{init:function b(a){this.mergeConfig(a)},mergeConfig:function b(a){var c;return a?(c=a,this.config=a):c=this.config,c},updateOptions:function b(a){this.render(this._data,a)},data:function b(a){return a&&(this._data=a),this._data},setColors:function a(){},resize:function c(a,b){this.containSize={boxWidth:a,boxHeight:b},this.render(this._data,this.config)},render:function(){function a(a,c){return b.apply(this,arguments)}var b=i(d().m(function c(a,b){var e;return d().w(function(c){for(;1;)switch(c.n){case 0:a=this.data(a),e=this.mergeConfig(b),l.render(k.createElement(m,Object.assign({width:this.containSize.boxWidth,height:this.containSize.boxHeight},{config:e,id:this.__id,data:a})),this.container);case 1:return c.a(2)}},c,this)}));return a}(),destroy:function a(){return!!this.container&&void(l.unmountComponentAtNode(this.container),this.container.innerHTML='')}}),a.exports});", "requires": [ "pandav:/com.jsx" ], "buildLevel": 1, "outputDir": "/com/customPath/0.0.2", "outputPath": "/com/customPath/0.0.2/index.js", "fileName": "/index.js" }, "pandav:/getSvg.js": { "cubeCode": "Cube('pandav:/com/customPath/0.0.2/getSvg',['pandav:/npm/react/17.0.2','pandav:/npm/svg-points/6.0.1'],function(a,b,c){function d(a){return fetch(a).then(function(a){return a.text()})}function e(a){var b=this;return d(a).then(function(a){var c=f(a);if(c&&0c&&(c=1);for(var d,e=[],f=0;f<=b.getTotalLength();f+=c){var g=b.getPointAtLength(f),h=d?this.calculate(g.x-d.x,g.y-d.y):0;e.push({pos:g,rotate:h}),d=g}this.points=e,this.maxIndex=e.length-1}return o(a,[{key:'calculate',value:function c(a,b){var d=Math.PI,e=Math.atan2;return e(-b,-a)+d}},{key:'get',value:function b(a){var c=Math.floor;1a&&(a=0);var d=c(this.maxIndex*a);return this.points[d]}}])}(),C=function(){function a(b,c){m(this,a),this.deepVars=b||[],this.shallowVars=c||[],this.return=void 0}return o(a,[{key:'invoke',value:function b(a){this.return=a()}},{key:'execute',value:function d(a,b,c){this.differ(b,c)&&this.invoke(a),this.deepVars=b,this.shallowVars=c}},{key:'differ',value:function c(a,b){if(b)for(var d=0;d=b.length)){var e=this.config.animation,f=e.delay,g=e.interval;this.delayTimer=setTimeout(function(){d.setState({wait:!1});for(var c=new t(d).loop().set(b[0].obj),e=1;e