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

cubes

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cubes - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

dev.js

56

cubes-tests-models.js
var example1 =
"[[12,19,0,26624],[12,18,0,26624],[11,17,0,26624],[11,14,0,26624],[11,13,0,26624],[12,13,0,26624],[12,12,0,26624],[13,11,0,26624],[13,12,0,26624],[14,12,0,26624],[14,13,0,26624],[15,13,0,26624],[15,14,0,26624],[16,14,0,26624],[16,15,0,26624],[17,15,0,26624],[17,16,0,26624],[16,17,0,26624],[16,18,0,26624],[15,18,0,26624],[15,19,0,26624],[14,19,0,26624],[14,18,0,26624],[13,18,0,26624],[13,19,0,26624],[11,18,0,26624],[10,18,0,26624],[10,17,0,26624],[10,16,0,26624],[10,15,0,26624],[11,15,0,26624],[12,14,0,26624],[13,14,0,26624],[13,15,0,26624],[14,15,0,26624],[14,16,0,26624],[15,16,0,26624],[14,17,0,26624],[13,17,0,26624],[12,17,0,26624],[11,16,0,26624],[12,15,0,26624],[15,18,1,26624],[15,17,1,26624],[16,17,1,26624],[16,16,1,26624],[16,15,1,26624],[15,15,1,26624],[14,15,1,26624],[14,14,1,26624],[13,14,1,26624],[13,13,1,26624],[12,13,1,26624],[12,14,1,26624],[11,14,1,26624],[11,15,1,26624],[10,15,1,26624],[10,16,1,26624],[11,16,1,26624],[11,17,1,26624],[12,17,1,26624],[12,18,1,26624],[13,18,1,26624],[13,17,1,26624],[14,17,1,26624],[14,16,1,26624],[14,18,1,26624],[12,16,1,26624],[13,16,1,26624],[13,15,1,26624],[15,17,2,26624],[15,16,2,26624],[14,16,2,26624],[14,15,2,26624],[13,15,2,26624],[13,14,2,26624],[12,15,2,26624],[12,14,2,26624],[11,15,2,26624],[11,16,2,26624],[12,16,2,26624],[12,17,2,26624],[13,17,2,26624],[14,17,2,26624],[15,12,1,26624],[15,11,1,26624],[16,11,1,26624],[16,10,1,26624],[17,10,1,26624],[16,9,1,26624],[10,13,1,26624],[9,13,1,26624],[9,12,1,26624],[8,12,1,26624],[7,12,1,26624],[13,20,1,26624],[12,20,1,26624],[12,21,1,26624],[11,21,1,26624],[11,22,1,26624],[10,22,1,26624],[12,19,1,26624],[13,19,1,26624],[15,12,2,26624],[15,13,2,26624],[14,13,2,26624],[10,13,2,26624],[11,13,2,26624],[11,14,2,26624],[9,13,2,26624],[12,18,2,26624],[12,19,2,26624],[11,19,2,26624],[13,15,3,26624],[12,15,3,26624],[12,16,3,26624],[13,16,3,26624],[13,17,3,26624],[14,16,3,26624],[14,17,3,26624],[12,14,3,26624],[13,14,3,26624],[14,14,3,26624],[15,15,3,26624],[14,15,3,26624],[11,13,3,26624],[12,13,3,26624],[12,12,3,26624],[13,12,3,26624],[13,13,3,26624],[14,13,3,26624],[12,17,3,26624],[15,17,3,26624],[16,17,3,26624],[16,16,3,26624],[15,16,3,26624],[16,15,3,26624],[15,14,3,26624],[15,13,1,26624],[15,14,1,26624],[15,16,1,26624],[11,17,2,26624],[13,18,2,26624],[14,18,2,26624],[13,19,2,26624],[15,18,2,26624],[15,15,2,26624],[14,14,2,26624],[14,17,4,26624],[14,16,4,26624],[15,17,4,26624],[15,16,4,26624],[16,16,4,26624],[16,15,4,26624],[15,15,4,26624],[15,14,4,26624],[16,14,4,26624],[16,17,4,26624],[13,17,4,26624],[12,16,4,26624],[11,16,4,26624],[11,15,4,26624],[10,15,4,26624],[10,14,4,26624],[11,13,4,26624],[12,13,4,26624],[13,13,4,26624],[13,14,4,26624],[14,14,4,26624],[14,15,4,26624],[13,16,4,26624],[12,17,4,26624],[11,17,4,26624],[12,15,4,26624],[12,14,4,26624],[13,15,4,26624],[11,14,4,26624],[14,13,4,26624],[14,12,4,26624],[13,12,4,26624],[12,12,4,26624],[15,13,4,26624],[15,13,5,26624],[15,14,5,26624],[15,15,5,26624],[16,15,5,26624],[15,16,5,26624],[15,17,5,26624],[14,17,5,26624],[13,17,5,26624],[12,17,5,26624],[12,16,5,26624],[12,15,5,26624],[11,15,5,26624],[11,14,5,26624],[12,14,5,26624],[12,13,5,26624],[12,12,5,26624],[13,13,5,26624],[13,14,5,26624],[14,14,5,26624],[14,15,5,26624],[14,16,5,26624],[13,16,5,26624],[11,13,5,26624],[10,13,5,26624],[11,12,5,26624],[13,12,5,26624],[14,13,5,26624],[13,15,5,26624],[14,12,5,26624],[15,14,6,26624],[15,13,6,26624],[14,13,6,26624],[14,14,6,26624],[15,15,6,26624],[14,15,6,26624],[13,15,6,26624],[13,14,6,26624],[14,17,6,26624],[15,18,6,26624],[15,19,6,26624],[14,18,6,26624],[13,17,6,26624],[13,16,6,26624],[12,16,6,26624],[12,15,6,26624],[11,15,6,26624],[11,14,6,26624],[12,14,6,26624],[15,16,6,26624],[16,16,6,26624],[15,17,6,26624],[14,16,6,26624],[12,13,6,26624],[13,13,6,26624],[15,12,7,7040],[15,13,7,7040],[16,13,7,7040],[16,14,7,7040],[15,14,7,7040],[15,15,7,7040],[16,15,7,7040],[16,16,7,7040],[16,17,7,7040],[15,18,7,7040],[14,18,7,7040],[14,17,7,7040],[13,17,7,7040],[12,17,7,7040],[12,16,7,7040],[11,16,7,7040],[12,15,7,7040],[11,15,7,7040],[12,14,7,7040],[13,14,7,7040],[14,14,7,7040],[14,15,7,7040],[14,16,7,7040],[15,16,7,7040],[13,15,7,7040],[11,14,7,7040],[12,13,7,7040],[12,12,7,7040],[13,12,7,7040],[14,12,7,7040],[14,13,7,7040],[13,13,7,7040],[16,20,8,7040],[15,20,8,7040],[14,19,8,7040],[13,19,8,7040],[12,18,8,7040],[11,17,8,7040],[10,17,8,7040],[10,16,8,7040],[10,15,8,7040],[11,15,8,7040],[11,14,8,7040],[11,13,8,7040],[12,13,8,7040],[12,12,8,7040],[12,11,8,7040],[13,11,8,7040],[14,11,8,7040],[15,11,8,7040],[15,12,8,7040],[16,12,8,7040],[16,13,8,7040],[17,13,8,7040],[17,14,8,7040],[17,15,8,7040],[18,15,8,7040],[18,16,8,7040],[18,17,8,7040],[18,18,8,7040],[17,18,8,7040],[17,19,8,7040],[16,18,8,7040],[15,18,8,7040],[15,17,8,7040],[16,17,8,7040],[17,17,8,7040],[17,16,8,7040],[16,15,8,7040],[15,14,8,7040],[15,13,8,7040],[14,13,8,7040],[13,13,8,7040],[12,14,8,7040],[11,12,8,7040],[11,11,8,7040],[10,13,8,7040],[10,14,8,7040],[11,16,8,7040],[12,17,8,7040],[13,18,8,7040],[15,19,8,7040],[16,19,8,7040],[19,19,9,7040],[19,20,9,7040],[18,20,9,7040],[18,21,9,7040],[17,21,9,7040],[16,21,9,7040],[16,22,9,7040],[15,22,9,7040],[14,22,9,7040],[14,21,9,7040],[13,21,9,7040],[13,20,9,7040],[12,20,9,7040],[10,18,9,7040],[10,17,9,7040],[8,16,9,7040],[7,14,9,7040],[7,13,9,7040],[6,13,9,7040],[7,12,9,7040],[8,12,9,7040],[9,12,9,7040],[9,13,9,7040],[9,14,9,7040],[9,15,9,7040],[8,14,9,7040],[8,13,9,7040],[8,11,9,7040],[9,11,9,7040],[10,11,9,7040],[10,10,9,7040],[11,10,9,7040],[12,10,9,7040],[13,10,9,7040],[14,10,9,7040],[14,11,9,7040],[15,11,9,7040],[15,12,9,7040],[16,12,9,7040],[16,11,9,7040],[17,11,9,7040],[19,12,9,7040],[20,13,9,7040],[21,13,9,7040],[21,14,9,7040],[20,14,9,7040],[20,15,9,7040],[19,14,9,7040],[19,13,9,7040],[18,13,9,7040],[18,12,9,7040],[18,11,9,7040],[18,14,9,7040],[18,15,9,7040],[19,15,9,7040],[19,16,9,7040],[19,17,9,7040],[20,17,9,7040],[20,18,9,7040],[19,18,9,7040],[18,17,9,7040],[17,12,9,7040],[17,10,9,7040],[17,8,9,7040],[16,8,9,7040],[16,9,9,7040],[16,10,9,7040],[15,10,9,7040],[16,22,10,7040],[16,21,10,7040],[15,22,10,7040],[14,22,10,7040],[14,21,10,7040],[13,21,10,7040],[12,21,10,7040],[12,22,10,7040],[11,22,10,7040],[11,21,10,7040],[10,21,10,7040],[9,20,10,7040],[9,19,10,7040],[8,19,10,7040],[8,18,10,7040],[8,17,10,7040],[8,16,10,7040],[8,15,10,7040],[8,14,10,7040],[8,13,10,7040],[8,12,10,7040],[9,12,10,7040],[9,11,10,7040],[10,11,10,7040],[10,10,10,7040],[11,10,10,7040],[11,9,10,7040],[12,9,10,7040],[13,9,10,7040],[14,9,10,7040],[15,9,10,7040],[16,9,10,7040],[17,9,10,7040],[17,10,10,7040],[17,11,10,7040],[18,11,10,7040],[18,12,10,7040],[19,12,10,7040],[19,13,10,7040],[20,13,10,7040],[20,14,10,7040],[20,15,10,7040],[20,16,10,7040],[20,17,10,7040],[20,18,10,7040],[19,18,10,7040],[19,19,10,7040],[19,20,10,7040],[18,20,10,7040],[18,21,10,7040],[17,21,10,7040],[17,22,10,7040],[15,21,10,7040],[13,20,10,7040],[12,19,10,7040],[11,19,10,7040],[11,18,10,7040],[19,17,11,7040],[19,16,11,7040],[19,15,11,7040],[19,14,11,7040],[18,14,11,7040],[18,13,11,7040],[19,13,11,7040],[19,18,11,7040],[18,18,11,7040],[18,19,11,7040],[18,20,11,7040],[17,20,11,7040],[17,21,11,7040],[16,21,11,7040],[16,22,11,7040],[15,21,11,7040],[15,22,11,7040],[14,22,11,7040],[14,21,11,7040],[13,21,11,7040],[12,21,11,7040],[11,21,11,7040],[11,20,11,7040],[10,20,11,7040],[10,19,11,7040],[9,19,11,7040],[9,18,11,7040],[8,18,11,7040],[9,17,11,7040],[9,16,11,7040],[9,15,11,7040],[9,14,11,7040],[9,13,11,7040],[10,13,11,7040],[10,12,11,7040],[10,11,11,7040],[11,11,11,7040],[11,10,11,7040],[12,10,11,7040],[13,10,11,7040],[14,10,11,7040],[14,9,11,7040],[15,9,11,7040],[15,10,11,7040],[16,10,11,7040],[16,11,11,7040],[16,12,11,7040],[17,12,11,7040],[17,13,11,7040],[20,15,11,7040],[16,12,12,7040],[15,12,12,7040],[14,11,12,7040],[14,12,12,7040],[13,11,12,7040],[13,12,12,7040],[12,12,12,7040],[12,13,12,7040],[11,13,12,7040],[11,14,12,7040],[10,14,12,7040],[10,15,12,7040],[10,16,12,7040],[11,16,12,7040],[10,17,12,7040],[10,18,12,7040],[10,19,12,7040],[11,19,12,7040],[12,19,12,7040],[13,20,12,7040],[14,20,12,7040],[15,20,12,7040],[16,20,12,7040],[16,19,12,7040],[17,19,12,7040],[12,20,12,7040],[11,20,12,7040],[12,18,12,7040],[13,18,12,7040],[14,18,12,7040],[15,18,12,7040],[15,17,12,7040],[16,17,12,7040],[17,18,12,7040],[17,17,12,7040],[18,17,12,7040],[18,16,12,7040],[18,15,12,7040],[18,14,12,7040],[17,14,12,7040],[17,13,12,7040],[16,13,12,7040],[15,11,12,7040],[14,13,12,7040],[13,13,12,7040],[13,14,12,7040],[12,14,12,7040],[12,15,12,7040],[11,15,12,7040],[12,16,12,7040],[11,17,12,7040],[16,19,13,7040],[15,19,13,7040],[14,19,13,7040],[13,19,13,7040],[16,18,13,7040],[14,21,13,7040],[13,21,13,7040],[12,21,13,7040],[12,20,13,7040],[12,19,13,7040],[12,18,13,7040],[13,17,13,7040],[13,16,13,7040],[14,16,13,7040],[14,15,13,7040],[14,14,13,7040],[14,13,13,7040],[15,13,13,7040],[15,14,13,7040],[16,14,13,7040],[16,15,13,7040],[17,15,13,7040],[16,16,13,7040],[16,17,13,7040],[15,17,13,7040],[15,18,13,7040],[14,17,13,7040],[15,15,13,7040],[12,17,13,7040],[13,18,13,7040],[14,18,14,7040],[15,16,14,7040],[15,11,0,26624],[15,12,0,26624],[16,12,0,26624],[17,11,0,26624],[18,11,0,26624],[19,11,0,26624],[19,12,0,26624],[19,13,0,26624],[18,14,0,26624],[18,15,0,26624],[18,16,0,26624],[19,16,0,26624],[19,15,0,26624],[20,15,0,26624],[20,16,0,26624],[19,17,0,26624],[18,17,0,26624],[17,18,0,26624],[17,19,0,26624],[17,20,0,26624],[16,20,0,26624],[17,12,0,26624],[17,13,0,26624],[16,13,0,26624],[17,14,0,26624],[16,16,0,26624],[17,22,11,255],[20,13,11,255],[21,15,9,255],[8,15,9,255],[12,19,9,255],[11,19,9,255],[10,20,9,7040],[11,20,9,7040],[10,19,9,7040]]";
'[[12,19,0,26624],[12,18,0,26624],[11,17,0,26624],[11,14,0,26624],[11,13,0,26624],[12,13,0,26624],[12,12,0,26624],[13,11,0,26624],[13,12,0,26624],[14,12,0,26624],[14,13,0,26624],[15,13,0,26624],[15,14,0,26624],[16,14,0,26624],[16,15,0,26624],[17,15,0,26624],[17,16,0,26624],[16,17,0,26624],[16,18,0,26624],[15,18,0,26624],[15,19,0,26624],[14,19,0,26624],[14,18,0,26624],[13,18,0,26624],[13,19,0,26624],[11,18,0,26624],[10,18,0,26624],[10,17,0,26624],[10,16,0,26624],[10,15,0,26624],[11,15,0,26624],[12,14,0,26624],[13,14,0,26624],[13,15,0,26624],[14,15,0,26624],[14,16,0,26624],[15,16,0,26624],[14,17,0,26624],[13,17,0,26624],[12,17,0,26624],[11,16,0,26624],[12,15,0,26624],[15,18,1,26624],[15,17,1,26624],[16,17,1,26624],[16,16,1,26624],[16,15,1,26624],[15,15,1,26624],[14,15,1,26624],[14,14,1,26624],[13,14,1,26624],[13,13,1,26624],[12,13,1,26624],[12,14,1,26624],[11,14,1,26624],[11,15,1,26624],[10,15,1,26624],[10,16,1,26624],[11,16,1,26624],[11,17,1,26624],[12,17,1,26624],[12,18,1,26624],[13,18,1,26624],[13,17,1,26624],[14,17,1,26624],[14,16,1,26624],[14,18,1,26624],[12,16,1,26624],[13,16,1,26624],[13,15,1,26624],[15,17,2,26624],[15,16,2,26624],[14,16,2,26624],[14,15,2,26624],[13,15,2,26624],[13,14,2,26624],[12,15,2,26624],[12,14,2,26624],[11,15,2,26624],[11,16,2,26624],[12,16,2,26624],[12,17,2,26624],[13,17,2,26624],[14,17,2,26624],[15,12,1,26624],[15,11,1,26624],[16,11,1,26624],[16,10,1,26624],[17,10,1,26624],[16,9,1,26624],[10,13,1,26624],[9,13,1,26624],[9,12,1,26624],[8,12,1,26624],[7,12,1,26624],[13,20,1,26624],[12,20,1,26624],[12,21,1,26624],[11,21,1,26624],[11,22,1,26624],[10,22,1,26624],[12,19,1,26624],[13,19,1,26624],[15,12,2,26624],[15,13,2,26624],[14,13,2,26624],[10,13,2,26624],[11,13,2,26624],[11,14,2,26624],[9,13,2,26624],[12,18,2,26624],[12,19,2,26624],[11,19,2,26624],[13,15,3,26624],[12,15,3,26624],[12,16,3,26624],[13,16,3,26624],[13,17,3,26624],[14,16,3,26624],[14,17,3,26624],[12,14,3,26624],[13,14,3,26624],[14,14,3,26624],[15,15,3,26624],[14,15,3,26624],[11,13,3,26624],[12,13,3,26624],[12,12,3,26624],[13,12,3,26624],[13,13,3,26624],[14,13,3,26624],[12,17,3,26624],[15,17,3,26624],[16,17,3,26624],[16,16,3,26624],[15,16,3,26624],[16,15,3,26624],[15,14,3,26624],[15,13,1,26624],[15,14,1,26624],[15,16,1,26624],[11,17,2,26624],[13,18,2,26624],[14,18,2,26624],[13,19,2,26624],[15,18,2,26624],[15,15,2,26624],[14,14,2,26624],[14,17,4,26624],[14,16,4,26624],[15,17,4,26624],[15,16,4,26624],[16,16,4,26624],[16,15,4,26624],[15,15,4,26624],[15,14,4,26624],[16,14,4,26624],[16,17,4,26624],[13,17,4,26624],[12,16,4,26624],[11,16,4,26624],[11,15,4,26624],[10,15,4,26624],[10,14,4,26624],[11,13,4,26624],[12,13,4,26624],[13,13,4,26624],[13,14,4,26624],[14,14,4,26624],[14,15,4,26624],[13,16,4,26624],[12,17,4,26624],[11,17,4,26624],[12,15,4,26624],[12,14,4,26624],[13,15,4,26624],[11,14,4,26624],[14,13,4,26624],[14,12,4,26624],[13,12,4,26624],[12,12,4,26624],[15,13,4,26624],[15,13,5,26624],[15,14,5,26624],[15,15,5,26624],[16,15,5,26624],[15,16,5,26624],[15,17,5,26624],[14,17,5,26624],[13,17,5,26624],[12,17,5,26624],[12,16,5,26624],[12,15,5,26624],[11,15,5,26624],[11,14,5,26624],[12,14,5,26624],[12,13,5,26624],[12,12,5,26624],[13,13,5,26624],[13,14,5,26624],[14,14,5,26624],[14,15,5,26624],[14,16,5,26624],[13,16,5,26624],[11,13,5,26624],[10,13,5,26624],[11,12,5,26624],[13,12,5,26624],[14,13,5,26624],[13,15,5,26624],[14,12,5,26624],[15,14,6,26624],[15,13,6,26624],[14,13,6,26624],[14,14,6,26624],[15,15,6,26624],[14,15,6,26624],[13,15,6,26624],[13,14,6,26624],[14,17,6,26624],[15,18,6,26624],[15,19,6,26624],[14,18,6,26624],[13,17,6,26624],[13,16,6,26624],[12,16,6,26624],[12,15,6,26624],[11,15,6,26624],[11,14,6,26624],[12,14,6,26624],[15,16,6,26624],[16,16,6,26624],[15,17,6,26624],[14,16,6,26624],[12,13,6,26624],[13,13,6,26624],[15,12,7,7040],[15,13,7,7040],[16,13,7,7040],[16,14,7,7040],[15,14,7,7040],[15,15,7,7040],[16,15,7,7040],[16,16,7,7040],[16,17,7,7040],[15,18,7,7040],[14,18,7,7040],[14,17,7,7040],[13,17,7,7040],[12,17,7,7040],[12,16,7,7040],[11,16,7,7040],[12,15,7,7040],[11,15,7,7040],[12,14,7,7040],[13,14,7,7040],[14,14,7,7040],[14,15,7,7040],[14,16,7,7040],[15,16,7,7040],[13,15,7,7040],[11,14,7,7040],[12,13,7,7040],[12,12,7,7040],[13,12,7,7040],[14,12,7,7040],[14,13,7,7040],[13,13,7,7040],[16,20,8,7040],[15,20,8,7040],[14,19,8,7040],[13,19,8,7040],[12,18,8,7040],[11,17,8,7040],[10,17,8,7040],[10,16,8,7040],[10,15,8,7040],[11,15,8,7040],[11,14,8,7040],[11,13,8,7040],[12,13,8,7040],[12,12,8,7040],[12,11,8,7040],[13,11,8,7040],[14,11,8,7040],[15,11,8,7040],[15,12,8,7040],[16,12,8,7040],[16,13,8,7040],[17,13,8,7040],[17,14,8,7040],[17,15,8,7040],[18,15,8,7040],[18,16,8,7040],[18,17,8,7040],[18,18,8,7040],[17,18,8,7040],[17,19,8,7040],[16,18,8,7040],[15,18,8,7040],[15,17,8,7040],[16,17,8,7040],[17,17,8,7040],[17,16,8,7040],[16,15,8,7040],[15,14,8,7040],[15,13,8,7040],[14,13,8,7040],[13,13,8,7040],[12,14,8,7040],[11,12,8,7040],[11,11,8,7040],[10,13,8,7040],[10,14,8,7040],[11,16,8,7040],[12,17,8,7040],[13,18,8,7040],[15,19,8,7040],[16,19,8,7040],[19,19,9,7040],[19,20,9,7040],[18,20,9,7040],[18,21,9,7040],[17,21,9,7040],[16,21,9,7040],[16,22,9,7040],[15,22,9,7040],[14,22,9,7040],[14,21,9,7040],[13,21,9,7040],[13,20,9,7040],[12,20,9,7040],[10,18,9,7040],[10,17,9,7040],[8,16,9,7040],[7,14,9,7040],[7,13,9,7040],[6,13,9,7040],[7,12,9,7040],[8,12,9,7040],[9,12,9,7040],[9,13,9,7040],[9,14,9,7040],[9,15,9,7040],[8,14,9,7040],[8,13,9,7040],[8,11,9,7040],[9,11,9,7040],[10,11,9,7040],[10,10,9,7040],[11,10,9,7040],[12,10,9,7040],[13,10,9,7040],[14,10,9,7040],[14,11,9,7040],[15,11,9,7040],[15,12,9,7040],[16,12,9,7040],[16,11,9,7040],[17,11,9,7040],[19,12,9,7040],[20,13,9,7040],[21,13,9,7040],[21,14,9,7040],[20,14,9,7040],[20,15,9,7040],[19,14,9,7040],[19,13,9,7040],[18,13,9,7040],[18,12,9,7040],[18,11,9,7040],[18,14,9,7040],[18,15,9,7040],[19,15,9,7040],[19,16,9,7040],[19,17,9,7040],[20,17,9,7040],[20,18,9,7040],[19,18,9,7040],[18,17,9,7040],[17,12,9,7040],[17,10,9,7040],[17,8,9,7040],[16,8,9,7040],[16,9,9,7040],[16,10,9,7040],[15,10,9,7040],[16,22,10,7040],[16,21,10,7040],[15,22,10,7040],[14,22,10,7040],[14,21,10,7040],[13,21,10,7040],[12,21,10,7040],[12,22,10,7040],[11,22,10,7040],[11,21,10,7040],[10,21,10,7040],[9,20,10,7040],[9,19,10,7040],[8,19,10,7040],[8,18,10,7040],[8,17,10,7040],[8,16,10,7040],[8,15,10,7040],[8,14,10,7040],[8,13,10,7040],[8,12,10,7040],[9,12,10,7040],[9,11,10,7040],[10,11,10,7040],[10,10,10,7040],[11,10,10,7040],[11,9,10,7040],[12,9,10,7040],[13,9,10,7040],[14,9,10,7040],[15,9,10,7040],[16,9,10,7040],[17,9,10,7040],[17,10,10,7040],[17,11,10,7040],[18,11,10,7040],[18,12,10,7040],[19,12,10,7040],[19,13,10,7040],[20,13,10,7040],[20,14,10,7040],[20,15,10,7040],[20,16,10,7040],[20,17,10,7040],[20,18,10,7040],[19,18,10,7040],[19,19,10,7040],[19,20,10,7040],[18,20,10,7040],[18,21,10,7040],[17,21,10,7040],[17,22,10,7040],[15,21,10,7040],[13,20,10,7040],[12,19,10,7040],[11,19,10,7040],[11,18,10,7040],[19,17,11,7040],[19,16,11,7040],[19,15,11,7040],[19,14,11,7040],[18,14,11,7040],[18,13,11,7040],[19,13,11,7040],[19,18,11,7040],[18,18,11,7040],[18,19,11,7040],[18,20,11,7040],[17,20,11,7040],[17,21,11,7040],[16,21,11,7040],[16,22,11,7040],[15,21,11,7040],[15,22,11,7040],[14,22,11,7040],[14,21,11,7040],[13,21,11,7040],[12,21,11,7040],[11,21,11,7040],[11,20,11,7040],[10,20,11,7040],[10,19,11,7040],[9,19,11,7040],[9,18,11,7040],[8,18,11,7040],[9,17,11,7040],[9,16,11,7040],[9,15,11,7040],[9,14,11,7040],[9,13,11,7040],[10,13,11,7040],[10,12,11,7040],[10,11,11,7040],[11,11,11,7040],[11,10,11,7040],[12,10,11,7040],[13,10,11,7040],[14,10,11,7040],[14,9,11,7040],[15,9,11,7040],[15,10,11,7040],[16,10,11,7040],[16,11,11,7040],[16,12,11,7040],[17,12,11,7040],[17,13,11,7040],[20,15,11,7040],[16,12,12,7040],[15,12,12,7040],[14,11,12,7040],[14,12,12,7040],[13,11,12,7040],[13,12,12,7040],[12,12,12,7040],[12,13,12,7040],[11,13,12,7040],[11,14,12,7040],[10,14,12,7040],[10,15,12,7040],[10,16,12,7040],[11,16,12,7040],[10,17,12,7040],[10,18,12,7040],[10,19,12,7040],[11,19,12,7040],[12,19,12,7040],[13,20,12,7040],[14,20,12,7040],[15,20,12,7040],[16,20,12,7040],[16,19,12,7040],[17,19,12,7040],[12,20,12,7040],[11,20,12,7040],[12,18,12,7040],[13,18,12,7040],[14,18,12,7040],[15,18,12,7040],[15,17,12,7040],[16,17,12,7040],[17,18,12,7040],[17,17,12,7040],[18,17,12,7040],[18,16,12,7040],[18,15,12,7040],[18,14,12,7040],[17,14,12,7040],[17,13,12,7040],[16,13,12,7040],[15,11,12,7040],[14,13,12,7040],[13,13,12,7040],[13,14,12,7040],[12,14,12,7040],[12,15,12,7040],[11,15,12,7040],[12,16,12,7040],[11,17,12,7040],[16,19,13,7040],[15,19,13,7040],[14,19,13,7040],[13,19,13,7040],[16,18,13,7040],[14,21,13,7040],[13,21,13,7040],[12,21,13,7040],[12,20,13,7040],[12,19,13,7040],[12,18,13,7040],[13,17,13,7040],[13,16,13,7040],[14,16,13,7040],[14,15,13,7040],[14,14,13,7040],[14,13,13,7040],[15,13,13,7040],[15,14,13,7040],[16,14,13,7040],[16,15,13,7040],[17,15,13,7040],[16,16,13,7040],[16,17,13,7040],[15,17,13,7040],[15,18,13,7040],[14,17,13,7040],[15,15,13,7040],[12,17,13,7040],[13,18,13,7040],[14,18,14,7040],[15,16,14,7040],[15,11,0,26624],[15,12,0,26624],[16,12,0,26624],[17,11,0,26624],[18,11,0,26624],[19,11,0,26624],[19,12,0,26624],[19,13,0,26624],[18,14,0,26624],[18,15,0,26624],[18,16,0,26624],[19,16,0,26624],[19,15,0,26624],[20,15,0,26624],[20,16,0,26624],[19,17,0,26624],[18,17,0,26624],[17,18,0,26624],[17,19,0,26624],[17,20,0,26624],[16,20,0,26624],[17,12,0,26624],[17,13,0,26624],[16,13,0,26624],[17,14,0,26624],[16,16,0,26624],[17,22,11,255],[20,13,11,255],[21,15,9,255],[8,15,9,255],[12,19,9,255],[11,19,9,255],[10,20,9,7040],[11,20,9,7040],[10,19,9,7040]]'
var example2 = "[[2,3,0,26624],[3,3,0,26624],[3,4,0,26624],[3,5,0,26624],[4,5,0,26624],[5,6,0,26624],[5,7,0,26624],[6,7,0,26624],[6,8,0,26624],[7,8,0,26624],[7,9,0,26624],[8,9,0,26624],[8,10,0,26624],[9,10,0,26624],[9,11,0,26624],[10,11,0,26624],[10,12,0,26624],[11,12,0,26624],[11,13,0,26624],[12,13,0,26624],[12,14,0,26624],[13,14,0,26624],[13,15,0,26624],[14,16,0,26624],[15,16,0,26624],[15,17,0,26624],[16,17,0,26624],[16,18,0,26624],[17,18,0,26624],[17,19,0,26624],[18,19,0,26624],[18,20,0,26624],[19,20,0,26624],[19,21,0,26624],[20,21,0,26624],[20,22,0,26624],[21,22,0,26624],[21,23,0,26624],[22,23,0,26624],[22,24,0,26624],[23,24,0,26624],[23,25,0,26624],[24,25,0,26624],[24,26,0,26624],[25,26,0,26624],[25,27,0,26624],[26,28,0,26624],[27,28,0,26624],[27,29,0,26624],[28,29,0,26624],[28,30,0,26624],[29,30,0,26624],[29,31,0,26624],[30,31,0,26624],[31,31,0,26624],[31,30,0,26624],[31,27,0,26624],[31,28,0,26624],[31,29,0,26624],[31,26,0,26624],[31,25,0,26624],[31,24,0,26624],[31,23,0,26624],[31,22,0,26624],[31,21,0,26624],[31,20,0,26624],[31,19,0,26624],[31,18,0,26624],[31,17,0,26624],[30,17,0,26624],[30,16,0,26624],[30,15,0,26624],[30,14,0,26624],[30,13,0,26624],[30,12,0,26624],[30,11,0,26624],[29,10,0,26624],[29,9,0,26624],[29,8,0,26624],[29,7,0,26624],[30,7,0,26624],[30,5,0,26624],[30,4,0,26624],[30,3,0,26624],[30,2,0,26624],[29,2,0,26624],[29,1,0,26624],[29,0,0,26624],[26,0,0,26624],[25,0,0,26624],[24,1,0,26624],[23,1,0,26624],[22,1,0,26624],[21,1,0,26624],[20,1,0,26624],[19,1,0,26624],[18,1,0,26624],[18,2,0,26624],[14,2,0,26624],[11,2,0,26624],[10,2,0,26624],[9,2,0,26624],[8,3,0,26624],[7,3,0,26624],[6,3,0,26624],[5,3,0,26624],[4,3,0,26624],[17,2,0,26624],[16,2,0,26624],[15,2,0,26624],[13,2,0,26624],[12,2,0,26624],[27,0,0,26624],[28,0,0,26624],[14,15,0,26624],[29,11,0,26624],[2,2,0,26624],[1,2,0,26624],[1,1,0,26624],[0,0,0,26624],[0,1,0,26624],[4,6,0,26624],[9,3,0,26624],[25,1,0,26624],[30,6,0,26624],[30,30,1,32386],[29,29,1,32386],[28,28,1,32386],[27,27,1,32386],[26,27,1,32386],[26,26,1,32386],[25,25,1,32386],[24,24,1,32386],[23,23,1,32386],[22,22,1,32386],[21,21,1,32386],[20,20,1,32386],[19,19,1,32386],[18,19,1,32386],[18,18,1,32386],[17,17,1,32386],[16,16,1,32386],[15,15,1,32386],[14,14,1,32386],[13,13,1,32386],[12,12,1,32386],[11,11,1,32386],[10,10,1,32386],[9,9,1,32386],[8,8,1,32386],[7,7,1,32386],[6,6,1,32386],[5,5,1,32386],[4,4,1,32386],[5,4,1,32386],[6,4,1,32386],[30,29,1,32386],[30,28,1,32386],[30,27,1,32386],[30,26,1,32386],[30,25,1,32386],[30,24,1,32386],[30,23,1,32386],[30,22,1,32386],[30,21,1,32386],[30,20,1,32386],[30,19,1,32386],[30,18,1,32386],[29,17,1,32386],[29,16,1,32386],[29,15,1,32386],[29,14,1,32386],[29,13,1,32386],[29,12,1,32386],[28,11,1,32386],[28,10,1,32386],[28,9,1,32386],[28,8,1,32386],[28,7,1,32386],[29,5,1,32386],[29,6,1,32386],[29,4,1,32386],[29,3,1,32386],[28,2,1,32386],[28,1,1,32386],[27,1,1,32386],[26,1,1,32386],[25,2,1,32386],[24,2,1,32386],[23,2,1,32386],[22,2,1,32386],[21,2,1,32386],[20,2,1,32386],[19,2,1,32386],[18,3,1,32386],[17,3,1,32386],[16,3,1,32386],[15,3,1,32386],[14,3,1,32386],[13,3,1,32386],[12,3,1,32386],[11,3,1,32386],[10,3,1,32386],[7,4,1,32386],[8,4,1,32386],[9,4,1,32386],[29,28,2,32673],[28,27,2,32673],[27,26,2,32673],[26,25,2,32673],[25,24,2,32673],[24,23,2,32673],[23,22,2,32673],[22,21,2,32673],[21,20,2,32673],[20,19,2,32673],[19,18,2,32673],[18,17,2,32673],[17,16,2,32673],[16,15,2,32673],[15,14,2,32673],[14,13,2,32673],[13,12,2,32673],[12,11,2,32673],[11,10,2,32673],[10,9,2,32673],[9,8,2,32673],[8,7,2,32673],[7,6,2,32673],[6,5,2,32673],[7,5,2,32673],[8,5,2,32673],[9,5,2,32673],[10,4,2,32673],[11,4,2,32673],[12,4,2,32673],[13,4,2,32673],[14,4,2,32673],[15,4,2,32673],[16,4,2,32673],[17,4,2,32673],[18,4,2,32673],[19,3,2,32673],[19,4,2,32673],[20,3,2,32673],[20,4,2,32673],[21,3,2,32673],[22,3,2,32673],[23,3,2,32673],[24,3,2,32673],[25,3,2,32673],[26,2,2,32673],[27,2,2,32673],[28,3,2,32673],[28,4,2,32673],[28,5,2,32673],[28,6,2,32673],[27,11,2,32673],[27,12,2,32673],[27,10,2,32673],[27,9,2,32673],[27,8,2,32673],[27,7,2,32673],[28,12,2,32673],[28,13,2,32673],[28,14,2,32673],[28,15,2,32673],[28,16,2,32673],[28,17,2,32673],[29,27,2,32673],[29,26,2,32673],[29,25,2,32673],[29,24,2,32673],[29,23,2,32673],[29,22,2,32673],[29,21,2,32673],[29,20,2,32673],[29,19,2,32673],[29,18,2,32673],[28,26,3,7040],[27,25,3,7040],[26,24,3,7040],[25,23,3,7040],[24,22,3,7040],[23,21,3,7040],[22,20,3,7040],[21,19,3,7040],[20,18,3,7040],[19,17,3,7040],[18,16,3,7040],[17,15,3,7040],[16,14,3,7040],[15,13,3,7040],[14,12,3,7040],[13,11,3,7040],[12,10,3,7040],[11,9,3,7040],[10,8,3,7040],[9,7,3,7040],[8,6,3,7040],[9,6,3,7040],[10,5,3,7040],[11,5,3,7040],[12,5,3,7040],[13,5,3,7040],[14,5,3,7040],[15,5,3,7040],[16,5,3,7040],[17,5,3,7040],[18,5,3,7040],[19,5,3,7040],[20,5,3,7040],[21,4,3,7040],[22,4,3,7040],[23,4,3,7040],[24,4,3,7040],[25,4,3,7040],[26,3,3,7040],[27,3,3,7040],[27,6,3,7040],[27,5,3,7040],[27,4,3,7040],[26,12,3,7040],[26,11,3,7040],[26,10,3,7040],[26,9,3,7040],[26,8,3,7040],[26,7,3,7040],[27,14,3,7040],[27,13,3,7040],[27,15,3,7040],[27,16,3,7040],[27,17,3,7040],[28,18,3,7040],[28,19,3,7040],[28,20,3,7040],[28,21,3,7040],[28,22,3,7040],[28,23,3,7040],[28,24,3,7040],[28,25,3,7040],[27,24,4,255],[27,23,4,255],[27,22,4,255],[27,21,4,255],[27,20,4,255],[27,19,4,255],[27,18,4,255],[26,17,4,255],[26,16,4,255],[26,14,4,255],[26,13,4,255],[26,15,4,255],[25,11,4,255],[25,9,4,255],[25,10,4,255],[25,8,4,255],[25,7,4,255],[26,6,4,255],[26,5,4,255],[26,4,4,255],[25,5,4,255],[24,5,4,255],[23,5,4,255],[22,5,4,255],[21,5,4,255],[25,12,4,255],[20,6,4,255],[19,6,4,255],[18,6,4,255],[17,6,4,255],[16,6,4,255],[15,6,4,255],[14,6,4,255],[13,6,4,255],[12,6,4,255],[11,6,4,255],[10,6,4,255],[10,7,4,255],[11,8,4,255],[12,9,4,255],[13,10,4,255],[14,11,4,255],[15,12,4,255],[16,13,4,255],[17,14,4,255],[18,15,4,255],[19,16,4,255],[20,17,4,255],[21,18,4,255],[22,19,4,255],[23,20,4,255],[24,21,4,255],[25,22,4,255],[26,23,4,255],[24,6,5,21530],[23,6,5,21530],[22,6,5,21530],[21,6,5,21530],[20,7,5,21530],[19,7,5,21530],[18,7,5,21530],[17,7,5,21530],[16,7,5,21530],[15,7,5,21530],[14,7,5,21530],[13,7,5,21530],[12,7,5,21530],[11,7,5,21530],[12,8,5,21530],[13,8,5,21530],[13,9,5,21530],[14,9,5,21530],[14,10,5,21530],[15,11,5,21530],[16,12,5,21530],[17,12,5,21530],[17,13,5,21530],[18,13,5,21530],[18,14,5,21530],[19,14,5,21530],[19,15,5,21530],[20,15,5,21530],[20,16,5,21530],[21,16,5,21530],[22,17,5,21530],[21,17,5,21530],[22,18,5,21530],[23,18,5,21530],[23,19,5,21530],[24,20,5,21530],[25,21,5,21530],[26,22,5,21530],[25,6,5,21530],[24,12,5,21530],[24,11,5,21530],[24,10,5,21530],[24,9,5,21530],[24,8,5,21530],[24,7,5,21530],[25,13,5,21530],[25,14,5,21530],[25,15,5,21530],[25,16,5,21530],[25,17,5,21530],[26,18,5,21530],[26,19,5,21530],[26,20,5,21530],[26,21,5,21530],[25,20,6,32056],[25,19,6,32056],[25,18,6,32056],[24,17,6,32056],[24,16,6,32056],[24,15,6,32056],[24,14,6,32056],[24,13,6,32056],[23,12,6,32056],[23,11,6,32056],[23,10,6,32056],[23,9,6,32056],[23,8,6,32056],[23,7,6,32056],[22,7,6,32056],[21,7,6,32056],[20,8,6,32056],[19,8,6,32056],[18,8,6,32056],[17,8,6,32056],[16,8,6,32056],[15,8,6,32056],[14,8,6,32056],[15,9,6,32056],[15,10,6,32056],[16,11,6,32056],[17,11,6,32056],[18,12,6,32056],[19,13,6,32056],[20,14,6,32056],[21,15,6,32056],[22,16,6,32056],[23,17,6,32056],[24,18,6,32056],[24,19,6,32056],[16,9,7,26624],[16,10,7,26624],[17,10,7,26624],[18,10,7,26624],[18,11,7,26624],[19,11,7,26624],[19,12,7,26624],[20,12,7,26624],[20,13,7,26624],[21,13,7,26624],[21,14,7,26624],[22,15,7,26624],[23,16,7,26624],[23,15,7,26624],[23,14,7,26624],[23,13,7,26624],[22,12,7,26624],[22,11,7,26624],[22,10,7,26624],[22,9,7,26624],[22,8,7,26624],[21,8,7,26624],[20,9,7,26624],[19,9,7,26624],[18,9,7,26624],[17,9,7,26624],[22,14,8,32386],[22,13,8,32386],[21,12,8,32386],[21,11,8,32386],[21,10,8,32386],[21,9,8,32386],[20,10,8,32386],[19,10,8,32386],[18,10,8,32386],[20,11,8,32386],[22,12,8,32386],[22,11,8,32386],[22,10,8,32386],[22,9,8,32386],[20,9,8,32386],[19,9,8,32386],[18,9,8,32386],[17,9,8,32386],[19,11,8,32386],[20,12,8,32386],[21,13,8,32386],[18,9,9,32673],[19,9,9,32673],[22,10,9,32673],[22,11,9,32673],[21,12,9,32673],[22,13,9,32673],[22,12,9,32673],[20,11,9,32673],[19,10,9,32673],[20,9,9,32673],[21,9,9,32673],[22,9,9,32673],[19,9,10,7040],[20,9,10,7040],[21,9,10,7040],[22,10,10,7040],[22,9,10,7040],[22,11,10,7040],[22,12,10,7040],[20,10,10,7040],[21,10,10,7040],[21,11,10,7040],[20,9,11,255],[21,9,11,255],[22,9,11,255],[22,10,11,255],[22,11,11,255],[21,10,11,255],[21,9,12,21530],[22,9,12,21530],[22,10,12,21530],[22,9,13,32056]]";
var example2 =
'[[2,3,0,26624],[3,3,0,26624],[3,4,0,26624],[3,5,0,26624],[4,5,0,26624],[5,6,0,26624],[5,7,0,26624],[6,7,0,26624],[6,8,0,26624],[7,8,0,26624],[7,9,0,26624],[8,9,0,26624],[8,10,0,26624],[9,10,0,26624],[9,11,0,26624],[10,11,0,26624],[10,12,0,26624],[11,12,0,26624],[11,13,0,26624],[12,13,0,26624],[12,14,0,26624],[13,14,0,26624],[13,15,0,26624],[14,16,0,26624],[15,16,0,26624],[15,17,0,26624],[16,17,0,26624],[16,18,0,26624],[17,18,0,26624],[17,19,0,26624],[18,19,0,26624],[18,20,0,26624],[19,20,0,26624],[19,21,0,26624],[20,21,0,26624],[20,22,0,26624],[21,22,0,26624],[21,23,0,26624],[22,23,0,26624],[22,24,0,26624],[23,24,0,26624],[23,25,0,26624],[24,25,0,26624],[24,26,0,26624],[25,26,0,26624],[25,27,0,26624],[26,28,0,26624],[27,28,0,26624],[27,29,0,26624],[28,29,0,26624],[28,30,0,26624],[29,30,0,26624],[29,31,0,26624],[30,31,0,26624],[31,31,0,26624],[31,30,0,26624],[31,27,0,26624],[31,28,0,26624],[31,29,0,26624],[31,26,0,26624],[31,25,0,26624],[31,24,0,26624],[31,23,0,26624],[31,22,0,26624],[31,21,0,26624],[31,20,0,26624],[31,19,0,26624],[31,18,0,26624],[31,17,0,26624],[30,17,0,26624],[30,16,0,26624],[30,15,0,26624],[30,14,0,26624],[30,13,0,26624],[30,12,0,26624],[30,11,0,26624],[29,10,0,26624],[29,9,0,26624],[29,8,0,26624],[29,7,0,26624],[30,7,0,26624],[30,5,0,26624],[30,4,0,26624],[30,3,0,26624],[30,2,0,26624],[29,2,0,26624],[29,1,0,26624],[29,0,0,26624],[26,0,0,26624],[25,0,0,26624],[24,1,0,26624],[23,1,0,26624],[22,1,0,26624],[21,1,0,26624],[20,1,0,26624],[19,1,0,26624],[18,1,0,26624],[18,2,0,26624],[14,2,0,26624],[11,2,0,26624],[10,2,0,26624],[9,2,0,26624],[8,3,0,26624],[7,3,0,26624],[6,3,0,26624],[5,3,0,26624],[4,3,0,26624],[17,2,0,26624],[16,2,0,26624],[15,2,0,26624],[13,2,0,26624],[12,2,0,26624],[27,0,0,26624],[28,0,0,26624],[14,15,0,26624],[29,11,0,26624],[2,2,0,26624],[1,2,0,26624],[1,1,0,26624],[0,0,0,26624],[0,1,0,26624],[4,6,0,26624],[9,3,0,26624],[25,1,0,26624],[30,6,0,26624],[30,30,1,32386],[29,29,1,32386],[28,28,1,32386],[27,27,1,32386],[26,27,1,32386],[26,26,1,32386],[25,25,1,32386],[24,24,1,32386],[23,23,1,32386],[22,22,1,32386],[21,21,1,32386],[20,20,1,32386],[19,19,1,32386],[18,19,1,32386],[18,18,1,32386],[17,17,1,32386],[16,16,1,32386],[15,15,1,32386],[14,14,1,32386],[13,13,1,32386],[12,12,1,32386],[11,11,1,32386],[10,10,1,32386],[9,9,1,32386],[8,8,1,32386],[7,7,1,32386],[6,6,1,32386],[5,5,1,32386],[4,4,1,32386],[5,4,1,32386],[6,4,1,32386],[30,29,1,32386],[30,28,1,32386],[30,27,1,32386],[30,26,1,32386],[30,25,1,32386],[30,24,1,32386],[30,23,1,32386],[30,22,1,32386],[30,21,1,32386],[30,20,1,32386],[30,19,1,32386],[30,18,1,32386],[29,17,1,32386],[29,16,1,32386],[29,15,1,32386],[29,14,1,32386],[29,13,1,32386],[29,12,1,32386],[28,11,1,32386],[28,10,1,32386],[28,9,1,32386],[28,8,1,32386],[28,7,1,32386],[29,5,1,32386],[29,6,1,32386],[29,4,1,32386],[29,3,1,32386],[28,2,1,32386],[28,1,1,32386],[27,1,1,32386],[26,1,1,32386],[25,2,1,32386],[24,2,1,32386],[23,2,1,32386],[22,2,1,32386],[21,2,1,32386],[20,2,1,32386],[19,2,1,32386],[18,3,1,32386],[17,3,1,32386],[16,3,1,32386],[15,3,1,32386],[14,3,1,32386],[13,3,1,32386],[12,3,1,32386],[11,3,1,32386],[10,3,1,32386],[7,4,1,32386],[8,4,1,32386],[9,4,1,32386],[29,28,2,32673],[28,27,2,32673],[27,26,2,32673],[26,25,2,32673],[25,24,2,32673],[24,23,2,32673],[23,22,2,32673],[22,21,2,32673],[21,20,2,32673],[20,19,2,32673],[19,18,2,32673],[18,17,2,32673],[17,16,2,32673],[16,15,2,32673],[15,14,2,32673],[14,13,2,32673],[13,12,2,32673],[12,11,2,32673],[11,10,2,32673],[10,9,2,32673],[9,8,2,32673],[8,7,2,32673],[7,6,2,32673],[6,5,2,32673],[7,5,2,32673],[8,5,2,32673],[9,5,2,32673],[10,4,2,32673],[11,4,2,32673],[12,4,2,32673],[13,4,2,32673],[14,4,2,32673],[15,4,2,32673],[16,4,2,32673],[17,4,2,32673],[18,4,2,32673],[19,3,2,32673],[19,4,2,32673],[20,3,2,32673],[20,4,2,32673],[21,3,2,32673],[22,3,2,32673],[23,3,2,32673],[24,3,2,32673],[25,3,2,32673],[26,2,2,32673],[27,2,2,32673],[28,3,2,32673],[28,4,2,32673],[28,5,2,32673],[28,6,2,32673],[27,11,2,32673],[27,12,2,32673],[27,10,2,32673],[27,9,2,32673],[27,8,2,32673],[27,7,2,32673],[28,12,2,32673],[28,13,2,32673],[28,14,2,32673],[28,15,2,32673],[28,16,2,32673],[28,17,2,32673],[29,27,2,32673],[29,26,2,32673],[29,25,2,32673],[29,24,2,32673],[29,23,2,32673],[29,22,2,32673],[29,21,2,32673],[29,20,2,32673],[29,19,2,32673],[29,18,2,32673],[28,26,3,7040],[27,25,3,7040],[26,24,3,7040],[25,23,3,7040],[24,22,3,7040],[23,21,3,7040],[22,20,3,7040],[21,19,3,7040],[20,18,3,7040],[19,17,3,7040],[18,16,3,7040],[17,15,3,7040],[16,14,3,7040],[15,13,3,7040],[14,12,3,7040],[13,11,3,7040],[12,10,3,7040],[11,9,3,7040],[10,8,3,7040],[9,7,3,7040],[8,6,3,7040],[9,6,3,7040],[10,5,3,7040],[11,5,3,7040],[12,5,3,7040],[13,5,3,7040],[14,5,3,7040],[15,5,3,7040],[16,5,3,7040],[17,5,3,7040],[18,5,3,7040],[19,5,3,7040],[20,5,3,7040],[21,4,3,7040],[22,4,3,7040],[23,4,3,7040],[24,4,3,7040],[25,4,3,7040],[26,3,3,7040],[27,3,3,7040],[27,6,3,7040],[27,5,3,7040],[27,4,3,7040],[26,12,3,7040],[26,11,3,7040],[26,10,3,7040],[26,9,3,7040],[26,8,3,7040],[26,7,3,7040],[27,14,3,7040],[27,13,3,7040],[27,15,3,7040],[27,16,3,7040],[27,17,3,7040],[28,18,3,7040],[28,19,3,7040],[28,20,3,7040],[28,21,3,7040],[28,22,3,7040],[28,23,3,7040],[28,24,3,7040],[28,25,3,7040],[27,24,4,255],[27,23,4,255],[27,22,4,255],[27,21,4,255],[27,20,4,255],[27,19,4,255],[27,18,4,255],[26,17,4,255],[26,16,4,255],[26,14,4,255],[26,13,4,255],[26,15,4,255],[25,11,4,255],[25,9,4,255],[25,10,4,255],[25,8,4,255],[25,7,4,255],[26,6,4,255],[26,5,4,255],[26,4,4,255],[25,5,4,255],[24,5,4,255],[23,5,4,255],[22,5,4,255],[21,5,4,255],[25,12,4,255],[20,6,4,255],[19,6,4,255],[18,6,4,255],[17,6,4,255],[16,6,4,255],[15,6,4,255],[14,6,4,255],[13,6,4,255],[12,6,4,255],[11,6,4,255],[10,6,4,255],[10,7,4,255],[11,8,4,255],[12,9,4,255],[13,10,4,255],[14,11,4,255],[15,12,4,255],[16,13,4,255],[17,14,4,255],[18,15,4,255],[19,16,4,255],[20,17,4,255],[21,18,4,255],[22,19,4,255],[23,20,4,255],[24,21,4,255],[25,22,4,255],[26,23,4,255],[24,6,5,21530],[23,6,5,21530],[22,6,5,21530],[21,6,5,21530],[20,7,5,21530],[19,7,5,21530],[18,7,5,21530],[17,7,5,21530],[16,7,5,21530],[15,7,5,21530],[14,7,5,21530],[13,7,5,21530],[12,7,5,21530],[11,7,5,21530],[12,8,5,21530],[13,8,5,21530],[13,9,5,21530],[14,9,5,21530],[14,10,5,21530],[15,11,5,21530],[16,12,5,21530],[17,12,5,21530],[17,13,5,21530],[18,13,5,21530],[18,14,5,21530],[19,14,5,21530],[19,15,5,21530],[20,15,5,21530],[20,16,5,21530],[21,16,5,21530],[22,17,5,21530],[21,17,5,21530],[22,18,5,21530],[23,18,5,21530],[23,19,5,21530],[24,20,5,21530],[25,21,5,21530],[26,22,5,21530],[25,6,5,21530],[24,12,5,21530],[24,11,5,21530],[24,10,5,21530],[24,9,5,21530],[24,8,5,21530],[24,7,5,21530],[25,13,5,21530],[25,14,5,21530],[25,15,5,21530],[25,16,5,21530],[25,17,5,21530],[26,18,5,21530],[26,19,5,21530],[26,20,5,21530],[26,21,5,21530],[25,20,6,32056],[25,19,6,32056],[25,18,6,32056],[24,17,6,32056],[24,16,6,32056],[24,15,6,32056],[24,14,6,32056],[24,13,6,32056],[23,12,6,32056],[23,11,6,32056],[23,10,6,32056],[23,9,6,32056],[23,8,6,32056],[23,7,6,32056],[22,7,6,32056],[21,7,6,32056],[20,8,6,32056],[19,8,6,32056],[18,8,6,32056],[17,8,6,32056],[16,8,6,32056],[15,8,6,32056],[14,8,6,32056],[15,9,6,32056],[15,10,6,32056],[16,11,6,32056],[17,11,6,32056],[18,12,6,32056],[19,13,6,32056],[20,14,6,32056],[21,15,6,32056],[22,16,6,32056],[23,17,6,32056],[24,18,6,32056],[24,19,6,32056],[16,9,7,26624],[16,10,7,26624],[17,10,7,26624],[18,10,7,26624],[18,11,7,26624],[19,11,7,26624],[19,12,7,26624],[20,12,7,26624],[20,13,7,26624],[21,13,7,26624],[21,14,7,26624],[22,15,7,26624],[23,16,7,26624],[23,15,7,26624],[23,14,7,26624],[23,13,7,26624],[22,12,7,26624],[22,11,7,26624],[22,10,7,26624],[22,9,7,26624],[22,8,7,26624],[21,8,7,26624],[20,9,7,26624],[19,9,7,26624],[18,9,7,26624],[17,9,7,26624],[22,14,8,32386],[22,13,8,32386],[21,12,8,32386],[21,11,8,32386],[21,10,8,32386],[21,9,8,32386],[20,10,8,32386],[19,10,8,32386],[18,10,8,32386],[20,11,8,32386],[22,12,8,32386],[22,11,8,32386],[22,10,8,32386],[22,9,8,32386],[20,9,8,32386],[19,9,8,32386],[18,9,8,32386],[17,9,8,32386],[19,11,8,32386],[20,12,8,32386],[21,13,8,32386],[18,9,9,32673],[19,9,9,32673],[22,10,9,32673],[22,11,9,32673],[21,12,9,32673],[22,13,9,32673],[22,12,9,32673],[20,11,9,32673],[19,10,9,32673],[20,9,9,32673],[21,9,9,32673],[22,9,9,32673],[19,9,10,7040],[20,9,10,7040],[21,9,10,7040],[22,10,10,7040],[22,9,10,7040],[22,11,10,7040],[22,12,10,7040],[20,10,10,7040],[21,10,10,7040],[21,11,10,7040],[20,9,11,255],[21,9,11,255],[22,9,11,255],[22,10,11,255],[22,11,11,255],[21,10,11,255],[21,9,12,21530],[22,9,12,21530],[22,10,12,21530],[22,9,13,32056]]'
var example3 = "[[25,18,0,12735],[25,17,0,12735],[25,16,0,12735],[24,15,0,12735],[23,15,0,12735],[22,15,0,12735],[21,15,0,12735],[20,15,0,12735],[24,19,0,12735],[23,19,0,12735],[22,19,0,12735],[21,19,0,12735],[20,19,0,12735],[19,18,0,12735],[19,17,0,12735],[19,16,0,12735],[25,19,1,12735],[24,20,1,12735],[23,20,1,12735],[22,20,1,12735],[21,20,1,12735],[20,20,1,12735],[19,19,1,12735],[18,18,1,12735],[18,17,1,12735],[18,16,1,12735],[19,15,1,12735],[20,14,1,12735],[21,14,1,12735],[22,14,1,12735],[23,14,1,12735],[24,14,1,12735],[25,15,1,12735],[26,16,1,12735],[26,17,1,12735],[26,18,1,12735],[17,16,2,12735],[17,17,2,12735],[17,18,2,12735],[18,19,2,12735],[19,20,2,12735],[18,15,2,12735],[19,14,2,12735],[20,14,2,12735],[21,14,2,12735],[22,14,2,12735],[23,14,2,12735],[24,14,2,12735],[25,15,2,12735],[26,16,2,12735],[27,16,2,12735],[28,16,2,12735],[29,16,2,12735],[30,16,2,12735],[31,17,2,12735],[30,18,2,12735],[29,18,2,12735],[28,18,2,12735],[27,18,2,12735],[26,19,2,12735],[25,20,2,12735],[24,20,2,12735],[23,20,2,12735],[22,20,2,12735],[21,20,2,12735],[20,20,2,12735],[30,17,2,12735],[29,17,2,12735],[28,17,2,12735],[27,17,2,12735],[16,17,3,12735],[15,17,3,12735],[16,18,3,12735],[16,16,3,12735],[17,15,3,12735],[18,14,3,12735],[17,19,3,12735],[18,20,3,12735],[19,21,3,12735],[20,22,3,12735],[21,23,3,12735],[22,24,3,12735],[19,13,3,12735],[20,12,3,12735],[21,11,3,12735],[22,10,3,12735],[22,11,3,12735],[22,12,3,12735],[22,13,3,12735],[22,14,3,12735],[22,15,3,12735],[22,16,3,12735],[22,17,3,12735],[22,18,3,12735],[22,19,3,12735],[22,20,3,12735],[22,21,3,12735],[22,22,3,12735],[22,23,3,12735],[23,20,3,12735],[23,19,3,12735],[24,20,3,12735],[24,19,3,12735],[25,19,3,12735],[25,18,3,12735],[26,18,3,12735],[26,17,3,12735],[25,16,3,12735],[24,15,3,12735],[23,15,3,12735],[25,17,3,12735],[24,16,3,12735],[23,16,3,12735],[23,18,3,23583],[23,17,3,23583],[24,17,3,23583],[24,18,3,23583],[21,22,4,15519],[21,21,4,15519],[21,20,4,15519],[21,19,4,15519],[22,18,4,15519],[22,17,4,15519],[21,16,4,15519],[21,15,4,15519],[21,14,4,15519],[21,13,4,15519],[21,12,4,15519],[20,13,4,15519],[19,14,4,15519],[19,15,4,15519],[19,16,4,15519],[19,17,4,15519],[19,18,4,15519],[19,19,4,15519],[19,20,4,15519],[20,20,4,15519],[20,21,4,15519],[20,14,4,15519],[20,15,4,15519],[20,16,4,15519],[21,17,4,15519],[20,17,4,15519],[20,18,4,15519],[20,19,4,15519],[21,18,4,15519],[17,16,3,12735],[17,17,3,12735],[17,18,3,12735],[18,15,3,12735],[18,16,3,12735],[18,17,3,12735],[18,18,3,12735],[18,19,3,12735],[18,16,4,12575],[17,16,4,12575],[17,17,4,12575],[17,18,4,12575],[18,18,4,12575],[18,17,4,12575],[16,17,4,12575],[18,15,4,12575],[18,19,4,12575],[19,15,5,12575],[19,19,5,12575],[20,20,5,12575],[20,19,5,12575],[20,18,5,12575],[20,17,5,12575],[20,16,5,12575],[20,15,5,12575],[21,15,5,12575],[20,14,5,12575],[21,14,5,12575],[21,13,5,12575],[21,19,5,12575],[21,20,5,12575],[21,21,5,12575],[19,16,5,20511],[19,17,5,20511],[18,17,5,20511],[18,18,5,20511],[19,18,5,20511],[18,16,5,20511],[17,17,5,20511],[21,12,3,12735],[21,13,3,12735],[20,13,3,12735],[20,14,3,12735],[19,14,3,12735],[19,15,3,12735],[19,16,3,12735],[19,17,3,12735],[19,18,3,12735],[19,19,3,12735],[19,20,3,12735],[20,20,3,12735],[20,19,3,12735],[20,18,3,12735],[20,17,3,12735],[20,16,3,12735],[20,15,3,12735],[21,14,3,12735],[21,15,3,12735],[21,16,3,12735],[21,17,3,12735],[21,18,3,12735],[21,19,3,12735],[21,21,3,12735],[21,20,3,12735],[21,22,3,12735],[20,21,3,12735],[22,25,3,15519],[21,25,3,15519],[20,25,3,15519],[19,25,3,15519],[22,9,3,15519],[21,9,3,15519],[20,9,3,15519],[19,9,3,15519],[18,25,3,32056],[18,9,3,32056]]";
var example3 =
'[[25,18,0,12735],[25,17,0,12735],[25,16,0,12735],[24,15,0,12735],[23,15,0,12735],[22,15,0,12735],[21,15,0,12735],[20,15,0,12735],[24,19,0,12735],[23,19,0,12735],[22,19,0,12735],[21,19,0,12735],[20,19,0,12735],[19,18,0,12735],[19,17,0,12735],[19,16,0,12735],[25,19,1,12735],[24,20,1,12735],[23,20,1,12735],[22,20,1,12735],[21,20,1,12735],[20,20,1,12735],[19,19,1,12735],[18,18,1,12735],[18,17,1,12735],[18,16,1,12735],[19,15,1,12735],[20,14,1,12735],[21,14,1,12735],[22,14,1,12735],[23,14,1,12735],[24,14,1,12735],[25,15,1,12735],[26,16,1,12735],[26,17,1,12735],[26,18,1,12735],[17,16,2,12735],[17,17,2,12735],[17,18,2,12735],[18,19,2,12735],[19,20,2,12735],[18,15,2,12735],[19,14,2,12735],[20,14,2,12735],[21,14,2,12735],[22,14,2,12735],[23,14,2,12735],[24,14,2,12735],[25,15,2,12735],[26,16,2,12735],[27,16,2,12735],[28,16,2,12735],[29,16,2,12735],[30,16,2,12735],[31,17,2,12735],[30,18,2,12735],[29,18,2,12735],[28,18,2,12735],[27,18,2,12735],[26,19,2,12735],[25,20,2,12735],[24,20,2,12735],[23,20,2,12735],[22,20,2,12735],[21,20,2,12735],[20,20,2,12735],[30,17,2,12735],[29,17,2,12735],[28,17,2,12735],[27,17,2,12735],[16,17,3,12735],[15,17,3,12735],[16,18,3,12735],[16,16,3,12735],[17,15,3,12735],[18,14,3,12735],[17,19,3,12735],[18,20,3,12735],[19,21,3,12735],[20,22,3,12735],[21,23,3,12735],[22,24,3,12735],[19,13,3,12735],[20,12,3,12735],[21,11,3,12735],[22,10,3,12735],[22,11,3,12735],[22,12,3,12735],[22,13,3,12735],[22,14,3,12735],[22,15,3,12735],[22,16,3,12735],[22,17,3,12735],[22,18,3,12735],[22,19,3,12735],[22,20,3,12735],[22,21,3,12735],[22,22,3,12735],[22,23,3,12735],[23,20,3,12735],[23,19,3,12735],[24,20,3,12735],[24,19,3,12735],[25,19,3,12735],[25,18,3,12735],[26,18,3,12735],[26,17,3,12735],[25,16,3,12735],[24,15,3,12735],[23,15,3,12735],[25,17,3,12735],[24,16,3,12735],[23,16,3,12735],[23,18,3,23583],[23,17,3,23583],[24,17,3,23583],[24,18,3,23583],[21,22,4,15519],[21,21,4,15519],[21,20,4,15519],[21,19,4,15519],[22,18,4,15519],[22,17,4,15519],[21,16,4,15519],[21,15,4,15519],[21,14,4,15519],[21,13,4,15519],[21,12,4,15519],[20,13,4,15519],[19,14,4,15519],[19,15,4,15519],[19,16,4,15519],[19,17,4,15519],[19,18,4,15519],[19,19,4,15519],[19,20,4,15519],[20,20,4,15519],[20,21,4,15519],[20,14,4,15519],[20,15,4,15519],[20,16,4,15519],[21,17,4,15519],[20,17,4,15519],[20,18,4,15519],[20,19,4,15519],[21,18,4,15519],[17,16,3,12735],[17,17,3,12735],[17,18,3,12735],[18,15,3,12735],[18,16,3,12735],[18,17,3,12735],[18,18,3,12735],[18,19,3,12735],[18,16,4,12575],[17,16,4,12575],[17,17,4,12575],[17,18,4,12575],[18,18,4,12575],[18,17,4,12575],[16,17,4,12575],[18,15,4,12575],[18,19,4,12575],[19,15,5,12575],[19,19,5,12575],[20,20,5,12575],[20,19,5,12575],[20,18,5,12575],[20,17,5,12575],[20,16,5,12575],[20,15,5,12575],[21,15,5,12575],[20,14,5,12575],[21,14,5,12575],[21,13,5,12575],[21,19,5,12575],[21,20,5,12575],[21,21,5,12575],[19,16,5,20511],[19,17,5,20511],[18,17,5,20511],[18,18,5,20511],[19,18,5,20511],[18,16,5,20511],[17,17,5,20511],[21,12,3,12735],[21,13,3,12735],[20,13,3,12735],[20,14,3,12735],[19,14,3,12735],[19,15,3,12735],[19,16,3,12735],[19,17,3,12735],[19,18,3,12735],[19,19,3,12735],[19,20,3,12735],[20,20,3,12735],[20,19,3,12735],[20,18,3,12735],[20,17,3,12735],[20,16,3,12735],[20,15,3,12735],[21,14,3,12735],[21,15,3,12735],[21,16,3,12735],[21,17,3,12735],[21,18,3,12735],[21,19,3,12735],[21,21,3,12735],[21,20,3,12735],[21,22,3,12735],[20,21,3,12735],[22,25,3,15519],[21,25,3,15519],[20,25,3,15519],[19,25,3,15519],[22,9,3,15519],[21,9,3,15519],[20,9,3,15519],[19,9,3,15519],[18,25,3,32056],[18,9,3,32056]]'
var example4 = "[[19, 12, 11, 23915],[17, 11, 13, 32734],[18, 7, 0, 15393],[19, 9, 1, 23618],[17, 7, 5, 23915],[18, 14, 10, 32701],[20, 16, 3, 23915],[19, 4, 6, 23915],[17, 12, 11, 23915],[16, 11, 13, 32734],[17, 17, 1, 23618],[18, 10, 12, 32701],[18, 11, 15, 32734],[18, 7, 2, 23915],[19, 6, 8, 32503],[18, 8, 10, 32503],[17, 15, 11, 23915],[17, 17, 0, 15393],[19, 8, 11, 23915],[18, 10, 13, 32701],[18, 18, 0, 15393],[20, 7, 2, 23618],[19, 8, 13, 32503],[16, 14, 12, 32734],[18, 15, 15, 23915],[19, 19, 2, 23915],[18, 4, 0, 15393],[19, 5, 6, 23915],[21, 10, 13, 32701],[18, 12, 15, 23915],[18, 9, 0, 15393],[17, 7, 7, 23915],[19, 9, 9, 32503],[18, 9, 13, 32503],[18, 10, 14, 32701],[19, 12, 15, 23915],[17, 19, 0, 15393],[18, 16, 2, 23915],[18, 9, 1, 15393],[20, 7, 3, 23915],[17, 8, 4, 23915],[20, 10, 14, 32701],[17, 16, 1, 23618],[17, 16, 2, 23915],[19, 9, 1, 15393],[19, 6, 3, 23915],[18, 5, 5, 23915],[20, 7, 7, 23915],[19, 6, 9, 23915],[19, 9, 14, 32503],[19, 10, 15, 32701],[17, 16, 3, 23915],[20, 7, 1, 23618],[19, 9, 7, 23915],[21, 17, 13, 32734],[20, 19, 1, 23618],[17, 7, 2, 23915],[20, 12, 11, 23915],[19, 16, 0, 15393],[18, 6, 2, 23915],[18, 8, 8, 32503],[19, 7, 10, 23915],[19, 8, 10, 23915],[21, 14, 13, 32734],[19, 6, 0, 15393],[18, 9, 8, 32503],[17, 10, 12, 32701],[20, 17, 1, 23618],[19, 8, 2, 23915],[17, 7, 1, 23618],[18, 8, 10, 23915],[19, 10, 12, 32701],[17, 13, 11, 32734],[19, 17, 0, 15393],[18, 7, 10, 23915],[17, 14, 11, 32734],[17, 15, 14, 23915],[17, 7, 0, 15393],[19, 9, 12, 23915],[16, 13, 12, 32734],[16, 14, 13, 32734],[19, 16, 15, 32734],[18, 19, 2, 23915],[19, 9, 4, 23915],[20, 7, 2, 23915],[18, 5, 4, 23915],[18, 6, 9, 23915],[18, 7, 9, 32503],[19, 13, 10, 32701],[16, 15, 12, 23915],[19, 9, 15, 32503],[18, 8, 12, 32503],[17, 19, 1, 23618],[18, 9, 1, 23618],[18, 9, 7, 23915],[16, 16, 12, 32734],[20, 8, 1, 23618],[18, 6, 8, 32503],[19, 10, 10, 32701],[18, 15, 10, 23915],[21, 17, 12, 32734],[18, 9, 12, 23915],[20, 18, 3, 23915],[18, 10, 11, 32701],[18, 16, 0, 23915],[20, 7, 4, 23915],[20, 7, 5, 23915],[17, 10, 11, 32701],[17, 18, 1, 23618],[17, 8, 2, 23915],[19, 6, 5, 23915],[19, 8, 10, 32503],[21, 16, 12, 32734],[18, 16, 0, 15393],[18, 5, 6, 23915],[20, 10, 11, 32701],[18, 12, 11, 23915],[18, 17, 0, 15393],[18, 19, 3, 23915],[19, 7, 0, 15393],[19, 6, 6, 23915],[18, 8, 9, 32503],[21, 13, 12, 32734],[19, 15, 15, 23915],[20, 19, 0, 15393],[20, 18, 2, 23915],[19, 4, 2, 23915],[19, 9, 3, 23915],[20, 8, 4, 23915],[18, 6, 7, 23915],[19, 7, 9, 32503],[21, 14, 12, 32734],[20, 17, 14, 32734],[18, 7, 10, 32503],[18, 10, 10, 32701],[18, 12, 10, 23915],[16, 17, 12, 32734],[18, 4, 1, 23618],[20, 16, 0, 15393],[19, 9, 10, 32503],[17, 10, 13, 32701],[18, 13, 15, 32734],[19, 8, 6, 23915],[18, 9, 11, 32503],[19, 14, 15, 32734],[17, 18, 0, 15393],[17, 17, 1, 32734],[19, 6, 2, 23618],[18, 7, 9, 32503],[19, 7, 11, 32503],[16, 11, 12, 32734],[17, 13, 14, 32734],[18, 6, 3, 23915],[20, 13, 14, 32734],[19, 19, 0, 15393],[20, 8, 1, 15393],[18, 6, 4, 23915],[19, 6, 10, 32503],[18, 9, 15, 32503],[18, 13, 10, 32701],[21, 15, 12, 23915],[21, 16, 13, 32734],[17, 8, 6, 23915],[19, 7, 8, 32503],[20, 10, 12, 32701],[18, 5, 0, 15393],[18, 9, 2, 23915],[20, 8, 6, 23915],[18, 7, 12, 32503],[17, 14, 14, 32734],[17, 19, 2, 23915],[19, 4, 0, 15393],[18, 5, 2, 23915],[17, 8, 3, 23915],[20, 16, 14, 32734],[18, 19, 0, 15393],[18, 4, 2, 23915],[19, 5, 5, 23915],[18, 11, 10, 32701],[19, 5, 4, 23915],[18, 9, 5, 23915],[19, 5, 8, 32503],[18, 8, 10, 32503],[19, 12, 10, 23915],[16, 12, 13, 23915],[19, 19, 1, 23618],[19, 8, 0, 15393],[17, 8, 0, 15393],[18, 5, 2, 23618],[20, 10, 13, 32701],[20, 19, 2, 23915],[19, 8, 8, 32503],[17, 16, 0, 15393],[19, 6, 2, 23915],[18, 7, 9, 23915],[18, 9, 14, 32503],[19, 11, 10, 32701],[16, 16, 13, 32734],[19, 9, 11, 32503],[20, 16, 1, 23618],[17, 8, 5, 23915],[18, 5, 8, 32503],[18, 6, 10, 32503],[19, 14, 10, 32701],[20, 17, 3, 23915],[17, 11, 11, 32734],[21, 13, 13, 32734],[19, 16, 1, 23618],[19, 7, 0, 23915],[18, 4, 2, 23618],[18, 5, 3, 23915],[20, 7, 6, 23915],[21, 11, 12, 32734],[20, 11, 14, 32734],[20, 18, 0, 15393],[20, 8, 0, 15393],[19, 5, 3, 23915],[20, 17, 2, 23915],[18, 8, 0, 15393],[20, 8, 3, 23915],[18, 9, 4, 23915],[17, 8, 7, 23915],[18, 9, 9, 32503],[18, 8, 13, 32503],[19, 10, 14, 32701],[17, 7, 4, 23915],[19, 6, 7, 23915],[19, 8, 14, 32503],[18, 10, 15, 32701],[17, 8, 1, 15393],[17, 8, 1, 23618],[19, 7, 10, 32503],[19, 8, 12, 32503],[18, 16, 3, 23915],[18, 10, 10, 32503],[17, 16, 14, 32734],[19, 9, 12, 23915],[19, 16, 3, 23915],[19, 5, 1, 23618],[18, 4, 6, 23915],[19, 10, 11, 32701],[21, 15, 13, 23915],[19, 19, 3, 23915],[19, 6, 1, 23618],[19, 6, 4, 23915],[20, 8, 5, 23915],[19, 15, 10, 23915],[21, 12, 13, 23915],[20, 19, 3, 23915],[20, 7, 0, 15393],[17, 12, 14, 23915],[18, 5, 1, 23618],[19, 7, 2, 23915],[17, 7, 6, 23915],[19, 11, 11, 32734],[20, 17, 0, 15393],[19, 9, 8, 32503],[20, 18, 1, 23618],[19, 8, 10, 32503],[21, 10, 12, 32701],[20, 13, 11, 32734],[16, 13, 13, 32734],[19, 4, 1, 23618],[18, 6, 6, 23915],[18, 7, 8, 32503],[21, 11, 13, 32734],[18, 16, 1, 23618],[17, 19, 3, 23915],[18, 6, 0, 15393],[19, 9, 6, 23915],[18, 7, 11, 32503],[21, 12, 12, 23915],[18, 14, 15, 32734],[17, 17, 2, 32734],[18, 6, 2, 23915],[17, 7, 3, 23915],[19, 8, 9, 32503],[18, 6, 5, 23915],[20, 8, 7, 23915],[18, 8, 14, 32503],[16, 17, 13, 32734],[19, 5, 0, 15393],[19, 5, 2, 23618],[18, 8, 11, 23915],[16, 12, 12, 23915],[17, 11, 14, 32734],[19, 13, 15, 32734],[20, 14, 14, 32734],[20, 16, 2, 23915],[19, 9, 0, 15393],[19, 5, 2, 23915],[18, 5, 7, 23915],[17, 10, 14, 32701],[18, 6, 1, 23618],[20, 8, 2, 23915],[20, 11, 11, 32734],[20, 12, 14, 23915],[19, 7, 12, 32503],[19, 10, 13, 32701],[18, 16, 15, 32734],[19, 18, 0, 15393],[17, 18, 2, 23915],[18, 9, 3, 23915],[19, 5, 7, 23915],[19, 9, 13, 32503],[19, 16, 2, 23915],[19, 4, 2, 23618],[18, 8, 2, 23915],[16, 10, 13, 32701],[20, 14, 11, 32734],[19, 11, 15, 32734],[19, 9, 5, 23915],[18, 9, 10, 32503],[16, 15, 13, 23915],[17, 17, 14, 32734],[18, 17, 0, 23915],[18, 19, 1, 23618],[19, 9, 2, 23915],[18, 9, 6, 23915],[19, 9, 10, 23915],[20, 15, 11, 23915],[20, 15, 14, 23915],[16, 10, 12, 32701]]";
var example4 =
'[[19, 12, 11, 23915],[17, 11, 13, 32734],[18, 7, 0, 15393],[19, 9, 1, 23618],[17, 7, 5, 23915],[18, 14, 10, 32701],[20, 16, 3, 23915],[19, 4, 6, 23915],[17, 12, 11, 23915],[16, 11, 13, 32734],[17, 17, 1, 23618],[18, 10, 12, 32701],[18, 11, 15, 32734],[18, 7, 2, 23915],[19, 6, 8, 32503],[18, 8, 10, 32503],[17, 15, 11, 23915],[17, 17, 0, 15393],[19, 8, 11, 23915],[18, 10, 13, 32701],[18, 18, 0, 15393],[20, 7, 2, 23618],[19, 8, 13, 32503],[16, 14, 12, 32734],[18, 15, 15, 23915],[19, 19, 2, 23915],[18, 4, 0, 15393],[19, 5, 6, 23915],[21, 10, 13, 32701],[18, 12, 15, 23915],[18, 9, 0, 15393],[17, 7, 7, 23915],[19, 9, 9, 32503],[18, 9, 13, 32503],[18, 10, 14, 32701],[19, 12, 15, 23915],[17, 19, 0, 15393],[18, 16, 2, 23915],[18, 9, 1, 15393],[20, 7, 3, 23915],[17, 8, 4, 23915],[20, 10, 14, 32701],[17, 16, 1, 23618],[17, 16, 2, 23915],[19, 9, 1, 15393],[19, 6, 3, 23915],[18, 5, 5, 23915],[20, 7, 7, 23915],[19, 6, 9, 23915],[19, 9, 14, 32503],[19, 10, 15, 32701],[17, 16, 3, 23915],[20, 7, 1, 23618],[19, 9, 7, 23915],[21, 17, 13, 32734],[20, 19, 1, 23618],[17, 7, 2, 23915],[20, 12, 11, 23915],[19, 16, 0, 15393],[18, 6, 2, 23915],[18, 8, 8, 32503],[19, 7, 10, 23915],[19, 8, 10, 23915],[21, 14, 13, 32734],[19, 6, 0, 15393],[18, 9, 8, 32503],[17, 10, 12, 32701],[20, 17, 1, 23618],[19, 8, 2, 23915],[17, 7, 1, 23618],[18, 8, 10, 23915],[19, 10, 12, 32701],[17, 13, 11, 32734],[19, 17, 0, 15393],[18, 7, 10, 23915],[17, 14, 11, 32734],[17, 15, 14, 23915],[17, 7, 0, 15393],[19, 9, 12, 23915],[16, 13, 12, 32734],[16, 14, 13, 32734],[19, 16, 15, 32734],[18, 19, 2, 23915],[19, 9, 4, 23915],[20, 7, 2, 23915],[18, 5, 4, 23915],[18, 6, 9, 23915],[18, 7, 9, 32503],[19, 13, 10, 32701],[16, 15, 12, 23915],[19, 9, 15, 32503],[18, 8, 12, 32503],[17, 19, 1, 23618],[18, 9, 1, 23618],[18, 9, 7, 23915],[16, 16, 12, 32734],[20, 8, 1, 23618],[18, 6, 8, 32503],[19, 10, 10, 32701],[18, 15, 10, 23915],[21, 17, 12, 32734],[18, 9, 12, 23915],[20, 18, 3, 23915],[18, 10, 11, 32701],[18, 16, 0, 23915],[20, 7, 4, 23915],[20, 7, 5, 23915],[17, 10, 11, 32701],[17, 18, 1, 23618],[17, 8, 2, 23915],[19, 6, 5, 23915],[19, 8, 10, 32503],[21, 16, 12, 32734],[18, 16, 0, 15393],[18, 5, 6, 23915],[20, 10, 11, 32701],[18, 12, 11, 23915],[18, 17, 0, 15393],[18, 19, 3, 23915],[19, 7, 0, 15393],[19, 6, 6, 23915],[18, 8, 9, 32503],[21, 13, 12, 32734],[19, 15, 15, 23915],[20, 19, 0, 15393],[20, 18, 2, 23915],[19, 4, 2, 23915],[19, 9, 3, 23915],[20, 8, 4, 23915],[18, 6, 7, 23915],[19, 7, 9, 32503],[21, 14, 12, 32734],[20, 17, 14, 32734],[18, 7, 10, 32503],[18, 10, 10, 32701],[18, 12, 10, 23915],[16, 17, 12, 32734],[18, 4, 1, 23618],[20, 16, 0, 15393],[19, 9, 10, 32503],[17, 10, 13, 32701],[18, 13, 15, 32734],[19, 8, 6, 23915],[18, 9, 11, 32503],[19, 14, 15, 32734],[17, 18, 0, 15393],[17, 17, 1, 32734],[19, 6, 2, 23618],[18, 7, 9, 32503],[19, 7, 11, 32503],[16, 11, 12, 32734],[17, 13, 14, 32734],[18, 6, 3, 23915],[20, 13, 14, 32734],[19, 19, 0, 15393],[20, 8, 1, 15393],[18, 6, 4, 23915],[19, 6, 10, 32503],[18, 9, 15, 32503],[18, 13, 10, 32701],[21, 15, 12, 23915],[21, 16, 13, 32734],[17, 8, 6, 23915],[19, 7, 8, 32503],[20, 10, 12, 32701],[18, 5, 0, 15393],[18, 9, 2, 23915],[20, 8, 6, 23915],[18, 7, 12, 32503],[17, 14, 14, 32734],[17, 19, 2, 23915],[19, 4, 0, 15393],[18, 5, 2, 23915],[17, 8, 3, 23915],[20, 16, 14, 32734],[18, 19, 0, 15393],[18, 4, 2, 23915],[19, 5, 5, 23915],[18, 11, 10, 32701],[19, 5, 4, 23915],[18, 9, 5, 23915],[19, 5, 8, 32503],[18, 8, 10, 32503],[19, 12, 10, 23915],[16, 12, 13, 23915],[19, 19, 1, 23618],[19, 8, 0, 15393],[17, 8, 0, 15393],[18, 5, 2, 23618],[20, 10, 13, 32701],[20, 19, 2, 23915],[19, 8, 8, 32503],[17, 16, 0, 15393],[19, 6, 2, 23915],[18, 7, 9, 23915],[18, 9, 14, 32503],[19, 11, 10, 32701],[16, 16, 13, 32734],[19, 9, 11, 32503],[20, 16, 1, 23618],[17, 8, 5, 23915],[18, 5, 8, 32503],[18, 6, 10, 32503],[19, 14, 10, 32701],[20, 17, 3, 23915],[17, 11, 11, 32734],[21, 13, 13, 32734],[19, 16, 1, 23618],[19, 7, 0, 23915],[18, 4, 2, 23618],[18, 5, 3, 23915],[20, 7, 6, 23915],[21, 11, 12, 32734],[20, 11, 14, 32734],[20, 18, 0, 15393],[20, 8, 0, 15393],[19, 5, 3, 23915],[20, 17, 2, 23915],[18, 8, 0, 15393],[20, 8, 3, 23915],[18, 9, 4, 23915],[17, 8, 7, 23915],[18, 9, 9, 32503],[18, 8, 13, 32503],[19, 10, 14, 32701],[17, 7, 4, 23915],[19, 6, 7, 23915],[19, 8, 14, 32503],[18, 10, 15, 32701],[17, 8, 1, 15393],[17, 8, 1, 23618],[19, 7, 10, 32503],[19, 8, 12, 32503],[18, 16, 3, 23915],[18, 10, 10, 32503],[17, 16, 14, 32734],[19, 9, 12, 23915],[19, 16, 3, 23915],[19, 5, 1, 23618],[18, 4, 6, 23915],[19, 10, 11, 32701],[21, 15, 13, 23915],[19, 19, 3, 23915],[19, 6, 1, 23618],[19, 6, 4, 23915],[20, 8, 5, 23915],[19, 15, 10, 23915],[21, 12, 13, 23915],[20, 19, 3, 23915],[20, 7, 0, 15393],[17, 12, 14, 23915],[18, 5, 1, 23618],[19, 7, 2, 23915],[17, 7, 6, 23915],[19, 11, 11, 32734],[20, 17, 0, 15393],[19, 9, 8, 32503],[20, 18, 1, 23618],[19, 8, 10, 32503],[21, 10, 12, 32701],[20, 13, 11, 32734],[16, 13, 13, 32734],[19, 4, 1, 23618],[18, 6, 6, 23915],[18, 7, 8, 32503],[21, 11, 13, 32734],[18, 16, 1, 23618],[17, 19, 3, 23915],[18, 6, 0, 15393],[19, 9, 6, 23915],[18, 7, 11, 32503],[21, 12, 12, 23915],[18, 14, 15, 32734],[17, 17, 2, 32734],[18, 6, 2, 23915],[17, 7, 3, 23915],[19, 8, 9, 32503],[18, 6, 5, 23915],[20, 8, 7, 23915],[18, 8, 14, 32503],[16, 17, 13, 32734],[19, 5, 0, 15393],[19, 5, 2, 23618],[18, 8, 11, 23915],[16, 12, 12, 23915],[17, 11, 14, 32734],[19, 13, 15, 32734],[20, 14, 14, 32734],[20, 16, 2, 23915],[19, 9, 0, 15393],[19, 5, 2, 23915],[18, 5, 7, 23915],[17, 10, 14, 32701],[18, 6, 1, 23618],[20, 8, 2, 23915],[20, 11, 11, 32734],[20, 12, 14, 23915],[19, 7, 12, 32503],[19, 10, 13, 32701],[18, 16, 15, 32734],[19, 18, 0, 15393],[17, 18, 2, 23915],[18, 9, 3, 23915],[19, 5, 7, 23915],[19, 9, 13, 32503],[19, 16, 2, 23915],[19, 4, 2, 23618],[18, 8, 2, 23915],[16, 10, 13, 32701],[20, 14, 11, 32734],[19, 11, 15, 32734],[19, 9, 5, 23915],[18, 9, 10, 32503],[16, 15, 13, 23915],[17, 17, 14, 32734],[18, 17, 0, 23915],[18, 19, 1, 23618],[19, 9, 2, 23915],[18, 9, 6, 23915],[19, 9, 10, 23915],[20, 15, 11, 23915],[20, 15, 14, 23915],[16, 10, 12, 32701]]'
var example5 = "[[20,15,0,26624],[19,15,0,26624],[31,15,0,26624],[0,15,0,26624],[18,15,0,26624],[17,15,0,26624],[16,15,0,26624],[15,15,0,26624],[14,15,0,26624],[13,15,0,26624],[12,15,0,26624],[11,15,0,26624],[10,15,0,26624],[9,15,0,26624],[8,15,0,26624],[7,15,0,26624],[6,15,0,26624],[5,15,0,26624],[3,15,0,26624],[4,15,0,26624],[1,15,0,26624],[2,15,0,26624],[21,15,0,26624],[22,15,0,26624],[23,15,0,26624],[24,15,0,26624],[25,15,0,26624],[26,15,0,26624],[27,15,0,26624],[28,15,0,26624],[29,15,0,26624],[30,15,0,26624],[21,16,0,26624],[21,17,0,26624],[21,18,0,26624],[21,19,0,26624],[21,20,0,26624],[21,21,0,26624],[21,22,0,26624],[21,23,0,26624],[21,24,0,26624],[22,24,0,26624],[23,24,0,26624],[24,24,0,26624],[25,24,0,26624],[26,24,0,26624],[27,24,0,26624],[17,14,0,26624],[17,13,0,26624],[17,12,0,26624],[17,11,0,26624],[17,10,0,26624],[17,9,0,26624],[16,9,0,26624],[15,9,0,26624],[14,9,0,26624],[13,9,0,26624],[12,9,0,26624],[11,9,0,26624],[11,8,0,26624],[11,7,0,26624],[11,6,0,26624],[11,5,0,26624],[11,4,0,26624],[12,4,0,26624],[13,4,0,26624],[14,4,0,26624],[15,4,0,26624],[15,3,0,26624],[15,2,0,26624],[15,1,0,26624],[15,0,0,26624],[28,24,0,26624],[29,24,0,26624],[30,24,0,26624],[31,24,0,26624],[21,15,1,26624],[21,15,2,26624],[21,15,3,26624],[21,15,4,26624],[21,15,5,26624],[21,15,6,26624],[21,15,7,26624],[21,14,7,26624],[21,13,7,26624],[21,12,7,26624],[21,11,7,26624],[21,10,7,26624],[21,9,7,26624],[21,8,7,26624],[20,8,7,26624],[19,8,7,26624],[18,8,7,26624],[17,8,7,26624],[16,8,7,26624],[15,8,7,26624],[15,8,8,26624],[15,8,9,26624],[15,8,10,26624],[15,8,11,26624],[16,8,12,26624],[15,8,12,26624],[17,8,12,26624],[18,8,12,26624],[19,8,12,26624],[20,8,12,26624],[21,8,12,26624],[21,9,12,26624],[21,12,12,26624],[21,13,12,26624],[21,14,12,26624],[21,15,12,26624],[21,10,12,26624],[21,11,12,26624],[22,15,12,26624],[23,15,12,26624],[24,15,12,26624],[25,15,12,26624],[26,15,12,26624],[28,15,12,26624],[29,15,12,26624],[27,15,12,26624],[29,15,13,26624],[29,15,14,26624],[29,15,15,26624],[29,15,16,26624],[29,16,16,26624],[29,17,16,26624],[29,18,16,26624],[29,19,16,26624],[29,20,16,26624],[29,21,16,26624],[29,22,16,26624],[29,23,16,26624],[29,24,16,26624],[29,25,16,26624],[28,25,16,26624],[27,25,16,26624],[26,25,16,26624],[25,25,16,26624],[24,25,16,26624],[23,25,16,26624],[22,25,16,26624],[22,24,16,26624],[22,23,16,26624],[22,22,16,26624],[22,21,16,26624],[22,20,16,26624],[22,19,16,26624],[22,12,16,26624],[22,13,16,26624],[22,14,16,26624],[22,15,16,26624],[22,18,16,26624],[22,17,16,26624],[22,16,16,26624],[22,11,16,26624],[22,10,16,26624],[22,9,16,26624],[22,8,16,26624],[22,7,16,26624],[22,6,16,26624],[22,5,16,26624],[21,5,16,26624],[20,5,16,26624],[19,5,16,26624],[18,5,16,26624],[17,5,16,26624],[16,5,16,26624],[15,5,16,26624],[14,5,16,26624],[13,5,16,26624],[12,5,16,26624],[11,5,16,26624],[10,5,16,26624],[9,5,16,26624],[8,5,16,26624],[7,5,16,26624],[7,6,16,26624],[7,7,16,26624],[7,8,16,26624],[7,9,16,26624],[7,10,16,26624],[7,11,16,26624],[7,12,16,26624],[7,13,16,26624],[7,14,16,26624],[7,15,16,26624],[7,16,16,26624],[7,17,16,26624],[7,18,16,26624],[7,19,16,26624],[7,20,16,26624],[7,21,16,26624],[7,22,16,26624],[8,22,16,26624],[9,22,16,26624],[10,22,16,26624],[11,22,16,26624],[12,22,16,26624],[13,22,16,26624],[14,22,16,26624],[15,22,16,26624],[16,22,16,26624],[16,22,17,26624],[16,22,18,26624],[16,22,19,26624],[16,22,20,26624],[16,22,21,26624],[16,22,22,26624],[16,22,23,26624],[16,22,24,26624],[16,21,25,26624],[16,22,25,26624],[16,20,25,26624],[16,19,25,26624],[16,18,25,26624],[16,17,25,26624],[16,16,25,26624],[17,16,25,26624],[18,16,25,26624],[19,16,25,26624],[20,16,25,26624],[21,16,25,26624],[22,16,25,26624],[23,16,25,26624],[23,15,25,26624],[23,13,25,26624],[23,12,25,26624],[23,11,25,26624],[23,9,25,26624],[23,10,25,26624],[23,14,25,26624],[23,8,25,26624],[23,7,25,26624],[23,7,26,26624],[23,7,27,26624],[23,7,28,26624],[23,7,29,26624],[22,7,29,26624],[21,7,29,26624],[20,7,29,26624],[19,7,29,26624],[18,7,29,26624],[17,7,29,26624],[16,7,29,26624],[15,7,29,26624],[14,7,29,26624],[13,7,29,26624],[13,7,30,26624],[13,7,31,26624],[12,7,31,26624],[11,7,31,26624],[10,7,31,26624],[9,7,31,26624],[8,7,31,26624],[8,7,30,26624],[8,7,29,26624],[8,7,28,26624],[8,7,27,26624],[7,7,27,26624],[6,7,27,26624],[5,7,27,26624],[4,7,27,26624],[3,7,27,26624],[2,7,27,26624],[1,7,27,26624],[0,7,27,26624]]";
var example5 =
'[[20,15,0,26624],[19,15,0,26624],[31,15,0,26624],[0,15,0,26624],[18,15,0,26624],[17,15,0,26624],[16,15,0,26624],[15,15,0,26624],[14,15,0,26624],[13,15,0,26624],[12,15,0,26624],[11,15,0,26624],[10,15,0,26624],[9,15,0,26624],[8,15,0,26624],[7,15,0,26624],[6,15,0,26624],[5,15,0,26624],[3,15,0,26624],[4,15,0,26624],[1,15,0,26624],[2,15,0,26624],[21,15,0,26624],[22,15,0,26624],[23,15,0,26624],[24,15,0,26624],[25,15,0,26624],[26,15,0,26624],[27,15,0,26624],[28,15,0,26624],[29,15,0,26624],[30,15,0,26624],[21,16,0,26624],[21,17,0,26624],[21,18,0,26624],[21,19,0,26624],[21,20,0,26624],[21,21,0,26624],[21,22,0,26624],[21,23,0,26624],[21,24,0,26624],[22,24,0,26624],[23,24,0,26624],[24,24,0,26624],[25,24,0,26624],[26,24,0,26624],[27,24,0,26624],[17,14,0,26624],[17,13,0,26624],[17,12,0,26624],[17,11,0,26624],[17,10,0,26624],[17,9,0,26624],[16,9,0,26624],[15,9,0,26624],[14,9,0,26624],[13,9,0,26624],[12,9,0,26624],[11,9,0,26624],[11,8,0,26624],[11,7,0,26624],[11,6,0,26624],[11,5,0,26624],[11,4,0,26624],[12,4,0,26624],[13,4,0,26624],[14,4,0,26624],[15,4,0,26624],[15,3,0,26624],[15,2,0,26624],[15,1,0,26624],[15,0,0,26624],[28,24,0,26624],[29,24,0,26624],[30,24,0,26624],[31,24,0,26624],[21,15,1,26624],[21,15,2,26624],[21,15,3,26624],[21,15,4,26624],[21,15,5,26624],[21,15,6,26624],[21,15,7,26624],[21,14,7,26624],[21,13,7,26624],[21,12,7,26624],[21,11,7,26624],[21,10,7,26624],[21,9,7,26624],[21,8,7,26624],[20,8,7,26624],[19,8,7,26624],[18,8,7,26624],[17,8,7,26624],[16,8,7,26624],[15,8,7,26624],[15,8,8,26624],[15,8,9,26624],[15,8,10,26624],[15,8,11,26624],[16,8,12,26624],[15,8,12,26624],[17,8,12,26624],[18,8,12,26624],[19,8,12,26624],[20,8,12,26624],[21,8,12,26624],[21,9,12,26624],[21,12,12,26624],[21,13,12,26624],[21,14,12,26624],[21,15,12,26624],[21,10,12,26624],[21,11,12,26624],[22,15,12,26624],[23,15,12,26624],[24,15,12,26624],[25,15,12,26624],[26,15,12,26624],[28,15,12,26624],[29,15,12,26624],[27,15,12,26624],[29,15,13,26624],[29,15,14,26624],[29,15,15,26624],[29,15,16,26624],[29,16,16,26624],[29,17,16,26624],[29,18,16,26624],[29,19,16,26624],[29,20,16,26624],[29,21,16,26624],[29,22,16,26624],[29,23,16,26624],[29,24,16,26624],[29,25,16,26624],[28,25,16,26624],[27,25,16,26624],[26,25,16,26624],[25,25,16,26624],[24,25,16,26624],[23,25,16,26624],[22,25,16,26624],[22,24,16,26624],[22,23,16,26624],[22,22,16,26624],[22,21,16,26624],[22,20,16,26624],[22,19,16,26624],[22,12,16,26624],[22,13,16,26624],[22,14,16,26624],[22,15,16,26624],[22,18,16,26624],[22,17,16,26624],[22,16,16,26624],[22,11,16,26624],[22,10,16,26624],[22,9,16,26624],[22,8,16,26624],[22,7,16,26624],[22,6,16,26624],[22,5,16,26624],[21,5,16,26624],[20,5,16,26624],[19,5,16,26624],[18,5,16,26624],[17,5,16,26624],[16,5,16,26624],[15,5,16,26624],[14,5,16,26624],[13,5,16,26624],[12,5,16,26624],[11,5,16,26624],[10,5,16,26624],[9,5,16,26624],[8,5,16,26624],[7,5,16,26624],[7,6,16,26624],[7,7,16,26624],[7,8,16,26624],[7,9,16,26624],[7,10,16,26624],[7,11,16,26624],[7,12,16,26624],[7,13,16,26624],[7,14,16,26624],[7,15,16,26624],[7,16,16,26624],[7,17,16,26624],[7,18,16,26624],[7,19,16,26624],[7,20,16,26624],[7,21,16,26624],[7,22,16,26624],[8,22,16,26624],[9,22,16,26624],[10,22,16,26624],[11,22,16,26624],[12,22,16,26624],[13,22,16,26624],[14,22,16,26624],[15,22,16,26624],[16,22,16,26624],[16,22,17,26624],[16,22,18,26624],[16,22,19,26624],[16,22,20,26624],[16,22,21,26624],[16,22,22,26624],[16,22,23,26624],[16,22,24,26624],[16,21,25,26624],[16,22,25,26624],[16,20,25,26624],[16,19,25,26624],[16,18,25,26624],[16,17,25,26624],[16,16,25,26624],[17,16,25,26624],[18,16,25,26624],[19,16,25,26624],[20,16,25,26624],[21,16,25,26624],[22,16,25,26624],[23,16,25,26624],[23,15,25,26624],[23,13,25,26624],[23,12,25,26624],[23,11,25,26624],[23,9,25,26624],[23,10,25,26624],[23,14,25,26624],[23,8,25,26624],[23,7,25,26624],[23,7,26,26624],[23,7,27,26624],[23,7,28,26624],[23,7,29,26624],[22,7,29,26624],[21,7,29,26624],[20,7,29,26624],[19,7,29,26624],[18,7,29,26624],[17,7,29,26624],[16,7,29,26624],[15,7,29,26624],[14,7,29,26624],[13,7,29,26624],[13,7,30,26624],[13,7,31,26624],[12,7,31,26624],[11,7,31,26624],[10,7,31,26624],[9,7,31,26624],[8,7,31,26624],[8,7,30,26624],[8,7,29,26624],[8,7,28,26624],[8,7,27,26624],[7,7,27,26624],[6,7,27,26624],[5,7,27,26624],[4,7,27,26624],[3,7,27,26624],[2,7,27,26624],[1,7,27,26624],[0,7,27,26624]]'
models = [
{
name: 'maybe tree',
model: example1
},
{
name: 'double rainbow',
model: example2
},
{
name: 'alien fighter',
model: example3
},
{
name: 'unfinished pipe',
model: example4
},
{
name: 'escheresque pipes',
model: example5
}
];
{
name: 'maybe tree',
model: example1,
},
{
name: 'double rainbow',
model: example2,
},
{
name: 'alien fighter',
model: example3,
},
{
name: 'unfinished pipe',
model: example4,
},
{
name: 'escheresque pipes',
model: example5,
},
]

@@ -1,35 +0,34 @@

Cubes = function (canvasNode, config) {
Cubes = function(canvasNode, config) {
if (typeof module !== 'undefined' && module.exports) {
this.commonJS = true;
this.Isomer = require('isomer');
this.commonJS = true
this.Isomer = require('./isomer')
} else {
this.Isomer = Isomer
}
else {
this.Isomer = Isomer;
}
this.Shape = this.Isomer.Shape;
this.Point = this.Isomer.Point;
this.Color = this.Isomer.Color;
this.Shape = this.Isomer.Shape
this.Point = this.Isomer.Point
this.Color = this.Isomer.Color
this.gridSizeX = config.x || 32;
this.gridSizeY = config.y || 32;
this.gridSizeZ = config.z || 32;
this.gridSizeX = config.x || 32
this.gridSizeY = config.y || 32
this.gridSizeZ = config.z || 32
this.sliceX = 0;
this.sliceY = 0;
this.sliceZ = 0;
this.sliceX = 0
this.sliceY = 0
this.sliceZ = 0
this.rotationIndex = 0;
this.slow = config.slow || 0;
this.rotationIndex = 0
this.slow = config.slow || 0
this.sceneData = [];
this.sceneDataLength = 0;
this.faceIndices = {};
this.faceDistances = {};
this.renderData = [];
this.sceneData = []
this.sceneDataLength = 0
this.faceIndices = {}
this.faceDistances = {}
this.renderData = []
this.iso = new this.Isomer(canvasNode, {
scale: (config.scale || 10.0),
originX: (config.originX || null),
originY: (config.originY || this.gridSizeZ * 2 * 10),
scale: config.scale || 10.0,
originX: config.originX || null,
originY: config.originY || this.gridSizeZ * 2 * 10,
lightPosition: new this.Isomer.Vector(

@@ -39,51 +38,51 @@ config.lightX || 3,

config.lightZ || 1
)
});
),
})
this.clickDetection = config.clickDetection || false;
this.clickDetection = config.clickDetection || false
if (this.clickDetection) {
// this.clickBuffer = new Int16Array(this.iso.canvas.width * this.iso.canvas.height);
this.clickBuffer = {};
this.clickBuffer = {}
}
this.iso.colorDifference = config.colorDifference || 0.10;
this.iso.colorDifference = config.colorDifference || 0.10
this.planeXY = config.planeXY || true;
this.planeXY = config.planeXY || true
this._adds = 0;
};
this._adds = 0
}
Cubes.prototype.hexToRgb = function (hex) {
hex = hex.replace(/[^0-9A-F]/gi, '');
var bigint = parseInt(hex, 16);
Cubes.prototype.hexToRgb = function(hex) {
hex = hex.replace(/[^0-9A-F]/gi, '')
var bigint = parseInt(hex, 16)
return {
r: (bigint >> 16) & 255,
g: (bigint >> 8) & 255,
b: bigint & 255
};
b: bigint & 255,
}
}
Cubes.prototype.rgbToHex = function (r, g, b) {
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1);
Cubes.prototype.rgbToHex = function(r, g, b) {
return '#' + ((1 << 24) + (r << 16) + (g << 8) + b).toString(16).slice(1)
}
Cubes.prototype.isoColor = function (hex) {
var rgb = this.hexToRgb(hex);
return new this.Color(rgb.r, rgb.g, rgb.b);
Cubes.prototype.isoColor = function(hex) {
var rgb = this.hexToRgb(hex)
return new this.Color(rgb.r, rgb.g, rgb.b)
}
Cubes.prototype.randomByte = function () {
return Math.random() * 256 | 0;
};
Cubes.prototype.randomByte = function() {
return (Math.random() * 256) | 0
}
Cubes.prototype.randomColor = function () {
return new this.Color(this.randomByte(), this.randomByte(), this.randomByte());
Cubes.prototype.randomColor = function() {
return new this.Color(this.randomByte(), this.randomByte(), this.randomByte())
}
Cubes.prototype.renderScene = function () {
var sliceZ = this.sliceZ;
var gridX = this.gridSizeX;
var gridY = this.gridSizeY;
var gridZ = this.gridSizeZ;
Cubes.prototype.renderScene = function() {
var sliceZ = this.sliceZ
var gridX = this.gridSizeX
var gridY = this.gridSizeY
var gridZ = this.gridSizeZ

@@ -94,36 +93,25 @@ // this.iso.scene = [];

this.iso.add(
this.Shape.Prism(
new this.Point(0, 0, -1),
gridX,
gridY,
1
),
this.Shape.Prism(new this.Point(0, 0, -1), gridX, gridY, 1),
new this.Color(200, 200, 200)
// , true
);
)
}
var renderQueue = [];
var renderQueue = []
// Pull only front-facing cubes from faceIndices
for (var i = 0, ii = this.renderData.length; i < ii; i++) {
var rd = this.renderData[i];
renderQueue.push(this.sceneData[this.faceIndices[rd.index]]);
var rd = this.renderData[i]
renderQueue.push(this.sceneData[this.faceIndices[rd.index]])
}
// Sort cubes so they render in the right order
renderQueue.sort(this._cubeSorter);
renderQueue.sort(this._cubeSorter)
// Render cubes in queue, non-blocking
if (this.slow) {
this.slowRender(renderQueue, this.slow);
this.slowRender(renderQueue, this.slow)
} else {
setTimeout(this.render.bind(this), 0, renderQueue)
}
else {
if (this.clickDetection) {
this.render(renderQueue, this._renderClickBuffer);
}
else {
this.render(renderQueue);
}
}

@@ -134,38 +122,38 @@ // For next-generation Isomer.

return renderQueue.length;
return renderQueue.length
}
Cubes.prototype._cubeSorter = function (a, b) {
if (a.x > b.x) return -1;
if (a.x < b.x) return 1;
if (a.y > b.y) return -1;
if (a.y < b.y) return 1;
if (a.z < b.z) return -1;
if (a.z > b.z) return 1;
return 0;
Cubes.prototype._cubeSorter = function(a, b) {
if (a.x > b.x) return -1
if (a.x < b.x) return 1
if (a.y > b.y) return -1
if (a.y < b.y) return 1
if (a.z < b.z) return -1
if (a.z > b.z) return 1
return 0
}
Cubes.prototype._renderClickBuffer = function (that, shapeQueue) {
var width = that.iso.canvas.width;
var height = that.iso.canvas.height;
var shape = null;
var quad = null;
var point = null;
var id = null;
var points = null;
Cubes.prototype._renderClickBuffer = function(shapeQueue) {
var width = this.iso.canvas.width
var height = this.iso.canvas.height
var shape = null
var quad = null
var point = null
var id = null
var points = null
for (var sh = 0, shh = shapeQueue.length; sh < shh; sh += 2) {
shape = shapeQueue[sh];
id = shapeQueue[sh + 1];
shape = shapeQueue[sh]
id = shapeQueue[sh + 1]
for (var q = 0, qq = shape.length; q < qq; q++) {
quad = shape[q];
var points = [];
quad = shape[q]
var points = []
for (var p = 0, pp = quad.length; p < pp; p++) {
point = quad[p];
points.push(point.x, point.y);
point = quad[p]
points.push(point.x, point.y)
}
that._fillQuad(that, points, id);
this._fillQuad(points, id)
}

@@ -175,42 +163,52 @@ }

Cubes.prototype._fillQuad = function (that, points, id) {
that._rasterTri(that, {
x: points[0],
y: points[1]
}, {
x: points[2],
y: points[3]
}, {
x: points[4],
y: points[5]
}, id);
Cubes.prototype._fillQuad = function(points, id) {
this._rasterTri(
{
x: points[0],
y: points[1],
},
{
x: points[2],
y: points[3],
},
{
x: points[4],
y: points[5],
},
id
)
that._rasterTri(that, {
x: points[4],
y: points[5]
}, {
x: points[6],
y: points[7]
}, {
x: points[0],
y: points[1]
}, id);
this._rasterTri(
{
x: points[4],
y: points[5],
},
{
x: points[6],
y: points[7],
},
{
x: points[0],
y: points[1],
},
id
)
}
// http://www.sunshine2k.de/coding/java/TriangleRasterization/TriangleRasterization.html
Cubes.prototype._rasterTri = function (that, vt1, vt2, vt3, id) {
var maxX = Math.max(vt1.x, Math.max(vt2.x, vt3.x));
var minX = Math.min(vt1.x, Math.min(vt2.x, vt3.x));
var maxY = Math.max(vt1.y, Math.max(vt2.y, vt3.y));
var minY = Math.min(vt1.y, Math.min(vt2.y, vt3.y));
Cubes.prototype._rasterTri = function(vt1, vt2, vt3, id) {
var maxX = Math.max(vt1.x, Math.max(vt2.x, vt3.x))
var minX = Math.min(vt1.x, Math.min(vt2.x, vt3.x))
var maxY = Math.max(vt1.y, Math.max(vt2.y, vt3.y))
var minY = Math.min(vt1.y, Math.min(vt2.y, vt3.y))
var vs1 = {
x: vt2.x - vt1.x,
y: vt2.y - vt1.y
};
y: vt2.y - vt1.y,
}
var vs2 = {
x: vt3.x - vt1.x,
y: vt3.y - vt1.y
};
y: vt3.y - vt1.y,
}

@@ -221,10 +219,10 @@ for (var x = minX; x <= maxX; x++) {

x: x - vt1.x,
y: y - vt1.y
};
y: y - vt1.y,
}
var s = that._crossProduct(q, vs2) / that._crossProduct(vs1, vs2);
var t = that._crossProduct(vs1, q) / that._crossProduct(vs1, vs2);
var s = this._crossProduct(q, vs2) / this._crossProduct(vs1, vs2)
var t = this._crossProduct(vs1, q) / this._crossProduct(vs1, vs2)
if ((s >= 0) && (t >= 0) && (s + t <= 1)) {
that._drawPixel(that, x, y, id);
if (s >= 0 && t >= 0 && s + t <= 1) {
this._drawPixel(x, y, id)
}

@@ -235,66 +233,67 @@ }

Cubes.prototype._crossProduct = function (a, b) {
return a.x * b.y - a.y * b.x;
Cubes.prototype._crossProduct = function(a, b) {
return a.x * b.y - a.y * b.x
}
Cubes.prototype._drawPixel = function (that, x, y, id) {
var index = that._indexCanvas(Math.floor(x), Math.floor(y), that);
that.clickBuffer[index] = id;
Cubes.prototype._drawPixel = function(x, y, id) {
var index = this._indexCanvas(Math.floor(x), Math.floor(y))
this.clickBuffer[index] = id
}
Cubes.prototype.render = function (rq, cb) {
setTimeout(function (that, rq, cb) {
var cube = null;
var shape = null;
var result = null;
if (cb) var shapeQueue = [];
for (var j = 0, jj = rq.length; j < jj; j++) {
cube = rq[j];
Cubes.prototype.render = function(rq) {
var cube = null
var shape = null
var result = null
var shapeQueue = []
shape = that.Shape.Prism(
new that.Point(cube.x, cube.y, cube.z)
);
for (var j = 0, jj = rq.length; j < jj; j++) {
cube = rq[j]
result = that.iso.add(
shape,
cube.color ? that.isoColor(cube.color) : null
// , true
);
shape = this.Shape.Prism(new this.Point(cube.x, cube.y, cube.z))
if (cb) shapeQueue.push(result, cube.index);
}
if (cb) {
cb(that, shapeQueue);
};
}, 0, this, rq, cb);
result = this.iso.add(
shape,
cube.color ? this.isoColor(cube.color) : null
// , true
)
if (this.clickDetection) shapeQueue.push(result, cube.index)
}
if (shapeQueue.length) {
this._renderClickBuffer(shapeQueue)
}
}
Cubes.prototype.slowRender = function (rq, speed) {
var cube = null;
Cubes.prototype.slowRender = function(rq, speed) {
for (var j = 0, jj = rq.length; j < jj; j++) {
setTimeout(function (that, rq, j) {
cube = rq[j];
that.iso.add(
that.Shape.Prism(
new that.Point(cube.x, cube.y, cube.z)
),
cube.color ? that.isoColor(cube.color) : null
// , true
);
}, j * speed, this, rq, j);
setTimeout(
function(rq, j) {
var cube = null
cube = rq[j]
this.iso.add(
this.Shape.Prism(new this.Point(cube.x, cube.y, cube.z)),
cube.color ? this.isoColor(cube.color) : null
// , true
)
}.bind(this),
j * speed,
rq,
j
)
}
}
Cubes.prototype.insert = function (cube) {
var dist = Math.min(cube.x, cube.y, this.gridSizeZ - cube.z);
Cubes.prototype.insert = function(cube) {
var dist = Math.min(cube.x, cube.y, this.gridSizeZ - cube.z)
var fx = cube.x - dist;
var fy = cube.y - dist;
var fz = this.gridSizeZ - cube.z - dist;
var fx = cube.x - dist
var fy = cube.y - dist
var fz = this.gridSizeZ - cube.z - dist
var index = this._index(cube.x, cube.y, cube.z);
var faceIndex = this._index(fx, fy, fz);
var index = this._index(cube.x, cube.y, cube.z)
var faceIndex = this._index(fx, fy, fz)
if (!this.faceIndices[faceIndex]) {
this.faceDistances[faceIndex] = Infinity;
this.faceDistances[faceIndex] = Infinity
this.renderData.push({

@@ -304,34 +303,33 @@ x: fx,

z: fz,
index: faceIndex
});
index: faceIndex,
})
}
if (dist <= this.faceDistances[faceIndex]) {
this.faceIndices[faceIndex] = index;
this.faceDistances[faceIndex] = dist;
this.faceIndices[faceIndex] = index
this.faceDistances[faceIndex] = dist
}
cube.index = index;
cube.index = index
this.sceneData[index] = cube;
this.sceneDataLength++;
this.sceneData[index] = cube
this.sceneDataLength++
}
Cubes.prototype.click = function (x, y) {
var canvasIndex = this._indexCanvas(x, y);
var index = this.clickBuffer[canvasIndex];
return this.sceneData[index];
Cubes.prototype.click = function(x, y) {
var canvasIndex = this._indexCanvas(x, y)
var index = this.clickBuffer[canvasIndex]
return this.sceneData[index]
}
Cubes.prototype._index = function (x, y, z) {
return this.gridSizeZ * this.gridSizeZ * z + this.gridSizeY * y + x + 1;
Cubes.prototype._index = function(x, y, z) {
return this.gridSizeZ * this.gridSizeZ * z + this.gridSizeY * y + x + 1
}
Cubes.prototype._indexCanvas = function (x, y, that) {
that = this || that;
return that.iso.canvas.height * y + x;
Cubes.prototype._indexCanvas = function(x, y) {
return this.iso.canvas.height * y + x
}
if (Cubes.commonJS) {
module.exports = Cubes;
module.exports = Cubes
}
{
"name": "cubes",
"version": "0.2.0",
"description": "An isometric graphics management library.",
"version": "0.2.1",
"description": "A full-featured JavaScript canvas isometric graphics library",
"main": "cubes.js",
"scripts": {
"test": "meteor test-packages ./"
"test": "ava",
"start": "node --harmony dev",
"dev": "nodemon --harmony --ignore client,dist"
},

@@ -19,5 +21,6 @@ "repository": {

"homepage": "https://github.com/cryptoquick/cubes",
"dependencies": {
"isomer": "^0.2.5"
"devDependencies": {
"ava": "^0.19.1",
"budo": "^10.0.3"
}
}

@@ -7,7 +7,7 @@ # Cubes

- Meteor
- Frontend JS
- Browserify
## Planned Support
- Browserify
- Full source

@@ -35,3 +35,6 @@ - Minified distribution with sourcemap

- 0.5
- Transparent cubes
- Backend rendering
- 0.6
- Large scene support

@@ -38,0 +41,0 @@ ## Configuration

Sorry, the diff of this file is not supported yet

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